On Mon, Dec 15, 2003 at 01:46:32AM -0700, Slepp Lukwai wrote:
> ...
> 
> Of course the -M 3 changes to 2 and 0 in testing. I also tested it
> with and without the buffer program in the list. Another notable
> thing, is that with the newest version .92, -M3 causes three 33%
> usage processes to exist (leaving an entire CPU idle), while M2
> causes two 60% processes to exist. With .90, -Mx causes 2 50-70%
> processes and the rest never do anything.

What program are you using to monitor CPU usage while mpeg2enc runs? 
Some versions of top (if you are using top) report percentages as a
roll-up of the whole SMP machine, so that 3x33% usage really means
99% utilization of the machine, where "the machine" means both
processors combined.  Other versions report a per-cpu percentage
instead of rolling everything together.

Additionally, why kind of memory do you have attached to the cpu's? 
Mpeg encoding is very memory bandwidth hungry to begin with, and with
two cpu's trying to eat at the same trough, a not quite as fast as it
should be memory subsystem can produce results like what you are
seeing.  It's because with the two cpu's trying to run mpeg2enc, they
together oversaturate the memory bus, causing both to wait.  But with
only one mpeg2enc thread running, the entire memory bus bandwidth is
available to that one cpu alone.

FWIW, when my desktop machine was a dual PII-400Mhz box, I almost
always had two mpeg2enc threads eating up 97-98%cpu on both PII
chips.  The few times both cpu's were not fully saturated at mpeg
encoding was when I'd bother them with something silly like browsing
the web with mozilla. :)


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to