<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I'm Meng Xu, a PhD student at the PRECISE lab at the University of Pennsylvania.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I'm trying to measure the context switch overhead with the feather trace tool on Freescale IMX6 ARM board. The board has 1GB RAM and 4 cores. </div><div class="gmail_default">I followed the description at <a href="https://wiki.litmus-rt.org/litmus/Tracing">https://wiki.litmus-rt.org/litmus/Tracing</a>.<br>I measured the context switch overhead with the command:<br><br>ST_TRACE_PATH=/dev/shm<br>ST_TRACE_NAME=GSN-EDF<br>OH_EVENTS="CXS_START CXS_END"<br>ftcat /dev/litmus/ft_cpu_trace0 ${OH_EVENTS} > ${ST_TRACE_PATH}/oh-${ST_TRACE_NAME}-0.bin &<br>ftcat /dev/litmus/ft_cpu_trace1 ${OH_EVENTS} > ${ST_TRACE_PATH}/oh-${ST_TRACE_NAME}-1.bin &<br>ftcat /dev/litmus/ft_cpu_trace2 ${OH_EVENTS} > ${ST_TRACE_PATH}/oh-${ST_TRACE_NAME}-2.bin &<br>ftcat /dev/litmus/ft_cpu_trace3 ${OH_EVENTS} > ${ST_TRACE_PATH}/oh-${ST_TRACE_NAME}-3.bin &<br><br>I run a rtspin RT task under GSN-EDF scheduler for 20 seconds and then combine the bin files as one "oh-GSN-EDF-all.bin ".</div><div class="gmail_default">When I use ft2csv command to parse the bin file, it shows no complete events. </div><br># ft2csv CXS oh-GSN-EDF-all.bin<br>Total : 11936<br>Skipped : 1<br>Avoided : 0<br>Complete : 0<br>Incomplete : 4941<br>Non RT : 0<br>Interleaved : 0<br>Interrupted : 1033<div><br></div><div><div class="gmail_default" style="font-size:small">I tried to increase the buffer size of the overhead trace to a larger value, but it cannot be larger than 1024MB since RAM size is only 1024MB. </div><div class="gmail_default" style="font-size:small">/dev/shm has size 512MB.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I also observe that there may be some memory leaking in the feather trace?</div><div class="gmail_default" style="font-size:small">When I boot the system, there is about 800MB free memory.</div><div class="gmail_default" style="font-size:small">After I run the feather trace, the free memory becomes 538MB. (ftcat has been killed already at this time.)</div><div class="gmail_default" style="font-size:small"><br></div></div><div><div class="gmail_default" style="font-size:small">The commit point I used is 7f051e3fa168eb60386b0e8d970551c06696befb, which is committed by Bjorn on Jun 12th, 2014.</div>
<br></div><div><div class="gmail_default" style="font-size:small"><b>My question is:</b></div><div class="gmail_default" style="font-size:small">Did I configure anything wrong that cause no complete event is recorded?</div><div class="gmail_default" style="font-size:small">Do you have any suggestion/advice on how I can get the complete events?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I have tried to set the ftcat to highest priority under FIFO scheduler, it didn't solve the problem. </div><div class="gmail_default" style="font-size:small">I was suspecting it is because the buffer is not consumed by ftcat fast enough so that the old events are overwritten by new events. However, I only run on rtspin task which leave at least 3 full cores idle to consume the buffer. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thank you very much for your time and help in this question!</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">best,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Meng</div><br>-----------<br>Meng Xu<br>PhD Student in Computer and Information Science<br>University of Pennsylvania<br><a href="http://www.cis.upenn.edu/~mengxu/" target="_blank">http://www.cis.upenn.edu/~mengxu/</a></div>
</div>