Hi all,
Recently,I noticed that my gstreamer application take a lot of CPU resource, my platform is Ti dm644X(arm9+dsp), and I have used oprofile to get the following reports when playing a D1 mpeg2 ts file:
[hidden email]# opreport
CPU: CPU with timer interrupt, speed 0 MHz (estimated) Profiling through timer interrupt TIMER:0| samples| %| ------------------ 65757 788983 no-vmlinux 4489 5.3861 libc.so.6 2367 2.8400 libglib-2.0.so.0 2348 2.8172 libgstbase-0.10.so.0 1756 2.1069 libpthread.so.0 1750 2.0997 libgstreamer-0.10.so.0 1419 1.7026 libgobject-2.0.so.0 1160 1.3918 libgstflumpegdemux.so 539 0.6467 libce.so 385 0.4619 libgstaudio-0.10.so.0 354 0.4247 libgstcoreelements.so 291 0.3492 libxml2.so.2 187 0.2244 ld-linux.so.3 175 0.2100 libgthread-2.0.so.0 98 0.1176 libgstadecoder.so 87 0.1044 libgstfbvideosink.so 62 0.0744 libgstgdecoder.so 46 0.0552 oprofiled 39 0.0468 sh 27 0.0324 libgstossaudio.so 3 0.0036 sleep 3 0.0036 librt.so.1 2 0.0024 bash and I have used a 320x240 mpeg2 ts file and a D1 mpeg2 ts file as the source, when use the former,the gstreamer application take 50% of CPU while the later take almost total CPU, so I guses the bottleneck maybe be caused by the flutsdemux....
Is there way to trace into .so file to located the detailed code section? or any other ideas? thank you
Best regards
Volter 22元超值饭面,8.5折纯珍比萨,必胜宅急送网上点餐优惠多 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
you can see which thread took much cpu by "ps", and
locate the modules by log.
ZhaoLiang From: [hidden email] [mailto:[hidden email]] On Behalf Of Volter Yen Sent: Thursday, July 24, 2008 9:57 AM To: [hidden email]; davinci-linux-open-source Subject: [gst-devel] how to check the gstreamer plugins' performancebottleneck Hi all,
Recently,I noticed that my gstreamer application
take a lot of CPU resource, my platform is Ti
dm644X(arm9+dsp), and I have used oprofile to get the following
reports when playing a D1 mpeg2 ts file:
[hidden email]#
opreport
CPU: CPU with timer interrupt, speed 0 MHz (estimated) Profiling through timer interrupt TIMER:0| samples| %| ------------------ 65757 788983 no-vmlinux 4489 5.3861 libc.so.6 2367 2.8400 libglib-2.0.so.0 2348 2.8172 libgstbase-0.10.so.0 1756 2.1069 libpthread.so.0 1750 2.0997 libgstreamer-0.10.so.0 1419 1.7026 libgobject-2.0.so.0 1160 1.3918 libgstflumpegdemux.so 539 0.6467 libce.so 385 0.4619 libgstaudio-0.10.so.0 354 0.4247 libgstcoreelements.so 291 0.3492 libxml2.so.2 187 0.2244 ld-linux.so.3 175 0.2100 libgthread-2.0.so.0 98 0.1176 libgstadecoder.so 87 0.1044 libgstfbvideosink.so 62 0.0744 libgstgdecoder.so 46 0.0552 oprofiled 39 0.0468 sh 27 0.0324 libgstossaudio.so 3 0.0036 sleep 3 0.0036 librt.so.1 2 0.0024 bash and I have used a 320x240 mpeg2 ts file and a D1 mpeg2 ts file as the
source, when use the former,the gstreamer application take 50% of CPU while the
later take almost total CPU, so I guses the bottleneck maybe be caused by the
flutsdemux....
Is there way to trace into .so file to located the
detailed code section? or any other ideas? thank you
Best regards
Volter 22元超值饭面,8.5折纯珍比萨,必胜宅急送网上点餐优惠多 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi Zhao Liang,
I use ps command to get the following results:
[hidden email]# ps -ma
PID TTY TIME CMD 601 pts/0 00:06:35 mpegavdectest07 - - 00:00:02 - - - 00:00:00 - - - 00:00:07 - - - 00:00:02 - - - 00:00:06 - - - 00:00:06 - - - 00:05:58 - - - 00:00:00 - - - 00:00:09 - 635 pts/1 00:00:00 ps - - 00:00:00 - it would not display the object library at all,thus I still cannot locate the modules, is there any optional parameters I forgot? thank you Best regards Volter
22元超值饭面,8.5折纯珍比萨,必胜宅急送网上点餐优惠多 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
ps -aux | grep mpegavdectest07
if you get the thread number, you can find what's this thread by
log or other ways.
Zhao
Liang
From: [hidden email] [mailto:[hidden email]] On Behalf Of Volter Yen Sent: Thursday, July 24, 2008 10:22 AM To: [hidden email]; davinci-linux-open-source Subject: Re: [gst-devel] how to check the gstreamer plugins'performance bottleneck Hi Zhao Liang,
I use ps command to get the following
results:
[hidden email]#
ps -ma
PID TTY TIME CMD 601 pts/0 00:06:35 mpegavdectest07 - - 00:00:02 - - - 00:00:00 - - - 00:00:07 - - - 00:00:02 - - - 00:00:06 - - - 00:00:06 - - - 00:05:58 - - - 00:00:00 - - - 00:00:09 - 635 pts/1 00:00:00 ps - - 00:00:00 - it would not display the object library at all,thus I still cannot locate the modules, is there any optional parameters I forgot? thank you Best regards Volter
22元超值饭面,8.5折纯珍比萨,必胜宅急送网上点餐优惠多 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi zhaoLiang,
thank you help. I use the -L option and gdb ,now I can trace into the desired codes.
Best regards
Votler
在2008-07-24,"Zhao Liang-E3423C" <[hidden email]> 写道:
22元超值饭面,8.5折纯珍比萨,必胜宅急送网上点餐优惠多 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by LIANG ZHAO-2
Hi,
On Thu, Jul 24, 2008 at 10:34:30AM +0800, Zhao Liang-E3423C wrote: > and I have used a 320x240 mpeg2 ts file and a D1 mpeg2 ts file as the source, when use the former,the gstreamer application take 50% of CPU while the later take almost total CPU, so I guses the bottleneck maybe be caused by the flutsdemux.... > Is there way to trace into .so file to located the detailed code section? or any other ideas? thank you use something like: opreport -l libgstflumpegdemux.so -t 5 Gr, Thijs > > Best regards > > Volter > > > ________________________________ > > 22元超值饭面,8.5折纯珍比萨,必胜宅急送网上点餐优惠多 <http://popme.163.com/link/004584_0708_6957.html> > > > > ________________________________ > > 22元超值饭面,8.5折纯珍比萨,必胜宅急送网上点餐优惠多 <http://popme.163.com/link/004584_0708_6957.html> > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |