<div>Hi,</div>
<div>I was able to build oprofile and get it working on DM6446.</div>
<div>But I am not getting consistent numbers with oprofile. For case 1, I am getting CPU load around 12-14%, i.e 2-3% variation across runs.</div>
<div>Is this expected? </div>
<div>Also in case 1, most of the CPU is spent in gstreamer libraries (libgstreamer-0.10.so.0.21.0, libgstbase-0.10.so.0.21.0, <a href="http://libpthread-0.10.so">libpthread-0.10.so</a>, libgobject-2.0.so.0.2105.0, libglib-2.0.so.0.2105.0) and audiotestsrc is taking around 0.2% of total (for silence case).</div>
<div> </div>
<div>I also tried --disable-debug, --disable-gst-debug, --disable-trace --disable-alloc-trace options while configuring the gstreamer.</div>
<div>With this build I got reduction of around 50% in gstreamer loading (out of 8% CPU load in one of the test case). This should help in reducing overall system load in final application.<br></div>
<div>Thanks,</div>
<div>Viraj<br> </div>
<div class="gmail_quote">On Tue, Oct 13, 2009 at 1:56 AM, Stefan Kost <span dir="ltr"><<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Michael Smith schrieb:<br>
<div class="im">> On Wed, Oct 7, 2009 at 10:49 PM, Viraj Karandikar <<a href="mailto:virajk@gmail.com">virajk@gmail.com</a>> wrote:<br>>> Hi,<br>>><br>>> I am seeing some strange behaviour while doing CPU load measurement when<br>
>> running gstreamer.<br>>> I am relying on uptime and idle time give by "cat /proc/uptime" to calculate<br>>> CPU load.<br>>> We have implemented custom audio source (dalsrc) and sink (dalsink) plugins<br>
>> for our board (ARM9E on TI DM6446).<br>>> I am using gstreamer-0.10.24.<br>>><br>>> I have following two cases:<br>>><br>>> Case 1:<br>>> gst-launch audiotestsrc wave=silence is_live=true blocksize=160 !<br>
>> audio/x-raw-int,rate=8000,depth=16,channels=2,width=16,signed=\(boolean\)TRUE,endianness=\(int\)1234<br>>> ! dalsink<br>>> Average CPU load over 5 minutes : 18%<br>><br>> As well as your cpu usage measurement technique being pretty<br>
> inaccurate, it's not surprising that audiotestsrc is slow - it's a<br>> test element, and has has absolutely no optimisation done, or even any<br>> attempt to make it vaguely ok. It's probably just doing something<br>
> stupid for the silence case.<br><br></div>Well, it actually has bben optimized somewhat. Especially for silence it<br>*shouldn't* do much. But anyway the only way to find out would be to run e.g.<br>oprofile on it (its available on arm too).<br>
<br>A slightly better version to check the load would imho be to use sync=false on<br>the sink and run the example with time. Then see which version is finished earlier.<br><font color="#888888"><br>Stefan<br></font>
<div>
<div></div>
<div class="h5"><br>><br>> Additionally, the first case is a live source - your second isn't.<br>> Those aren't very directly comparable. There might be something that's<br>> slower because of that.<br>
><br>> Mike<br>><br>> ------------------------------------------------------------------------------<br>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA<br>> is the only developer event you need to attend this year. Jumpstart your<br>
> developing skills, take BlackBerry mobile applications to market and stay<br>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!<br>> <a href="http://p.sf.net/sfu/devconference" target="_blank">http://p.sf.net/sfu/devconference</a><br>
> _______________________________________________<br>> gstreamer-devel mailing list<br>> <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br><br>------------------------------------------------------------------------------<br>Come build with us! The BlackBerry(R) Developer Conference in SF, CA<br>is the only developer event you need to attend this year. Jumpstart your<br>
developing skills, take BlackBerry mobile applications to market and stay<br>ahead of the curve. Join us from November 9 - 12, 2009. Register now!<br><a href="http://p.sf.net/sfu/devconference" target="_blank">http://p.sf.net/sfu/devconference</a><br>
_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all">
<div></div><br>-- <br>- Viraj<br>Reality is merely an illusion, albeit a very persistent one.<br>