Comskip goes multi thread

Where all the announcements go
Post Reply
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Comskip goes multi thread

Post by erik »

Build 0.81.017 available in the early access area has the first multi threaded decoder.
Add
thread_count=2
to your config.ini for the fastest multiple comskip decoding.
When only running one instance of comskip on a multicore CPU you can set
thread_count=4
for even faster processing.
KeepingItCuttingEdge
Posts: 1
Joined: Tue Feb 07, 2012 2:14 am
Location: Georgia, USA
Contact:

Re: Comskip goes multi thread

Post by KeepingItCuttingEdge »

Does this go into the comskip.ini?
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: Comskip goes multi thread

Post by erik »

Yes.
Jator
Posts: 0
Joined: Wed Feb 29, 2012 1:45 am

Re: Comskip goes multi thread

Post by Jator »

Erik,

Thanks for all your hard work on this wonderful tool. Can you elaborate on the values in the followng ini setting?

thread_count=?

Does the value represent the number of cores to be used in a single instance, for example:

A Quad Core CPU:

One instance to use up to 100% of CPU = thread_count=4

Two instances to use up to 50% of CPU = thread_count=2

So, in my case, if I have a Six Core Phenom II, to utilize a single instance to use 100% of my CPU, I would set the following:

thread_count=6

Or if I wanted to use up to 2 concurrent sessions, I would have to use the following:

thread_count=3

Or, in the same scenario immediatley above (2 sessions), can I keep thread_count=6, and the 2 sessions would simply be sharing the 6 cores vs. the 2 sessions having dedicated 3 cores each?

Sorry, hopefully this make sense.

Jay
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: Comskip goes multi thread

Post by erik »

The thread_count is the number of threads each instance of comskip will use to process.

So 3 instances with thread_count set to 2 will use all 6 cores to the max
Actually thay will stay at 80% as the thread switching incurs some delays so if you realy want to fully load all cores you need to "overload" it.
Jator
Posts: 0
Joined: Wed Feb 29, 2012 1:45 am

Re: Comskip goes multi thread

Post by Jator »

Then I am guessing it is better to do 6 threads for my machine to maximize the instances where it is only doing 1 scan. If there are 2 scans going, they will simply be competing for the same 6 cores, and thus getting 50% of the time of the 6 cores (or slightly less due to other resources being utilized).
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: Comskip goes multi thread

Post by erik »

Indeed
Post Reply