tweaking gst_clock_id_compare_func

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

tweaking gst_clock_id_compare_func

srinidhi
Hi,
I ran a gstreamer pipleline using gst-launch and captured profiling data using oprofile.
In the profile report it is seen that gst_clock_id_compare_func is consuming a lot of cpu samples .
Is there any way we can reduce the cpu usage by function gst_clock_id_compare_func by tweaking some gst clock parameters ?

samples  %        image name               app name                 symbol name
1097753815 86.4133  no-vmlinux               no-vmlinux               /no-vmlinux
58865722  4.6338  libgstreamer-0.10.so.0.29.0 libgstreamer-0.10.so.0.29.0 gst_clock_id_compare_func
25241658  1.9870  libgstvideoscale.so      libgstvideoscale.so      _backup_gst_videoscale_orc_resample_bilinear_u8
11303576  0.8898  libglib-2.0.so.0.2200.5  libglib-2.0.so.0.2200.5  g_list_insert_sorted_real

regards
Srinidhi
Reply | Threaded
Open this post in threaded view
|

Re: tweaking gst_clock_id_compare_func

Tim-Philipp Müller-2
On Thu, 2012-11-22 at 00:21 -0800, srinidhi wrote:

Hi,

> I ran a gstreamer pipeline using gst-launch and captured profiling data
> using oprofile.
> In the profile report it is seen that gst_clock_id_compare_func is consuming
> a lot of cpu samples .
> Is there any way we can reduce the cpu usage by function
> gst_clock_id_compare_func by tweaking some gst clock parameters ?

What was the pipeline you benchmarked, and what elements were used in
it? Can we reproduce it somehow?

Did you benchmark an application or a gst-launch pipeline?

What version of GStreamer and plugins did you benchmark? On what system?

I think it's surprising to see that function feature in your profile, I
would've thought that in a normal usage scenario there are only a few
clock entries  in the list at any point, and _wait_async() wouldn't be
called much, if at all.

Do you have custom elements that use the clock API and add entries, or
does your application do that?

Cheers
 -Tim

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: tweaking gst_clock_id_compare_func

srinidhi
In reply to this post by srinidhi
The orprofile dump was not reset and the profile report was not correct.
After resetting and getting new  profile dump , I am not seeing the gst_clock_id_compare_func in oprofile report.

Sorry for the mistake

Thanks
Srinidhi