Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Many threads

sharpeye
Beginner
176 Views
For each session Media SDK creates additional threads (4 in my case).
The decoding of 3 streams leads to the creation of the 12 additional threads.
Is it possible to avoid creating unnecessary threads?
Thanks in advance.


0 Kudos
4 Replies
IDZ_A_Intel
Employee
176 Views
Hi sharpeye,

There is no way of controlling the number of internal threads allocated per session.

The number of threads used per session depends on the number of logical cores your platform has. Media SDK will allocate one thread per logical core (per session).

Do you have any specific reason for wanting to decrease the number of active threads in your workload?

Regards,
Petter
sharpeye
Beginner
176 Views
Hi Petter,

Then I start 8 threads of the decompression, Media SKD start 32 threads addition. Many of them is innactive. I think 4 threads (one thread per logical core) is enough for all joined sessions in the application.

Regards,
sharpeye
sharpeye
Beginner
176 Views
Hi Petter,

Then I start 8 threads of the decompression, Media SKD start 32 threads addition. Many of them is innactive. I think 4 threads (one thread per logical core) is enough for all joined sessions in the application.

Regards,
sharpeye
IDZ_A_Intel
Employee
176 Views
Hi sharpeye,

In the case you Join the sessions the threads from the sessions that were joined with the main session will be idle and will not impact performance. These threads cannot be removed since we have to support the Disjoin operation.

Regards,
Petter
Reply