View Single Post
Old 15th October 2013, 21:59   #16  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by benwaggoner View Post
Is there much overhead in terms of CPU or RAM use with multithreading? For example, if I was encoding 36 individual identical streams simultaneously, would I see total fps throughput and RAM utilization go down significantly if I encoded each with --threads 1 instead of the implicit default of 36 threads for each instance (1296 threads! I'd like THAT workstation...)
Running just one thread (+ 1 input thread) is slightly more efficient than the default because of processor scheduling, threading code in x264, etc. I just ran a test:
1 thread: 5.5 fps @ 25% CPU usage
Auto (6 threads): 20.2 fps @ 100% CPU usage

So, running 4 simultaneous encodings with "--threads 1" is more efficient but uses more memory - however - in separate processes.
Running 36 simultaneous processes is probably more a problem for the hard drive serving your sources (although with a fast SSD maybe not so much).

Last edited by Groucho2004; 16th October 2013 at 01:24.
Groucho2004 is offline   Reply With Quote