[EMAIL PROTECTED] said:
+> Ok, I understand that the kernal manages both the process
+> distribution.  But let's say I am running 10 game servers (for
+> instance) which do not support smp. Does Linux-smp distribute the load
+> over both processors?  Or does it assign 1 proc here 1 proc there,
+> etc?  Is there a way for me to help Linux :0] ?

The kernel will do his best to distribute the load evenly between 
all processes.

+> As far as top is concerned, I am just wondering if there is a program
+> that splits the processor % up.....the version I have reports 3
+> processes that are utilizing the cpu the most (the rest are negligable
+> or less than 2% of the processor). Process1 = 49.4% Process2=33.4%
+> Process3=27.8%

That's simply a matter of how the programs are written. If you use
multiple threads where possible, you can achieve much higher overall throughput 
for a program. - If you have 10 programs, all written the same way, all
using threads, this would make the most use of any SMP system.

But, as it usually is, if you have only single-threaded applications,
you *may* have better luck 

+> Now, I am no math whiz, but if you add that up, you get 110.6%!  So,
+> whats up with that?  I take it for granted that top just sees both
+> processors as having a top of 100%, giving the smp system a 200%
+> total.  But, I would like to see utilization broken up amongst both
+> processors, so process1=24.7%proc1 24.7%proc2 (guestimation)
+> process2=16.7%proc1 16.7%proc2 (guestimation) process3=13.9%proc1
+> 13.9%proc2 (guestimation) so that I can get a general idea of how the
+> non-smp software is being allocated by the kernel.  Is there any
+> utility out that can break down processes on both processors, or will
+> have to script my own......

If you really want to see your system sweat, just recompile your kernel.
But don't forget to use the parameter "-j". Use "-j" without any additional
numbers. - And I guess, for the first time, you will eat your heart to see
what load your system will be able to take! - For the first time, you
will see, what your system *really* is able to do.

You want some more of this? - Try recompiling ghostscript with "make -j"!
:-)

After that, you'll know that your system is with a load of 110% running
almost idle. It is bored!

If you want 200% CPU-usage, give your system something to do! ;-)

Put some more load onto it!

+> Thanks again!!! -Andy

Best regards,
        Herbert




"Those who do not understand Unix are condemned to reinvent it, poorly."
- Henry Spencer

-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/dmentre/smp-howto/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]

Reply via email to