Specifying CPU core affinity in a gstreamer pipeline?

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

Specifying CPU core affinity in a gstreamer pipeline?

deepanshu
Hi all,

Is there a way to specify the number of CPU a gstreamer pipeline can use? Something similar to cpu=1 in the gst-launch command, means 1 core will be used to processing.

In the Linux system, in C code we can use #include <sched.h> CPU_SET, to run a code on the specific core. How huge can be the impact on performance if using a simple pipeline for video decoding if using single core?

Thanks
Deepanshu
Reply | Threaded
Open this post in threaded view
|

Re: Specifying CPU core affinity in a gstreamer pipeline?

Vinod Kesti
you can use max-threads property of the avdec to fix the number of decoding threads to 1.
But this won't guarantee that it will run on only the CPU. You need to do CPU affinity for that.

On a Normal intel CPU, one can easily decode 720 videos. Full HD may be difficult on few low end CPUs.