03-26-04 04:46 PM
In article <c06e4d68.0403252029.7731059@posting.google.com>,
yls177@hotmail.com (yls177) wrote:
> i do a sar -P ALL -u 1 10
>
> find that one or two cpus are 100% occupied while the rest are all idling.
.
>
> any way to auto load balancing for them?
You didn't specify what OS and version you'er running, so I'll reply in
general. SMP systems _do_ load balance across multiple processors. You
may not have enough of a load to use all the CPUs, especially if your
workload isn't CPU intensive. You may be doing a lot of IO, where
having multiple CPUs won't help you nor can you load balance this. Have
you analyzed your performance and do you know what your bottleneck is
(it's either CPU, IO or memory)?
Having multiple CPUs only benefits you when you have enough compute
bound processes to use them. Also, are your compute-bound processes
multi-threaded? If not, you won't get any gain from running them on
multiple CPU systems. Buy a bigger, faster system instead or rewrite
the application to be multi-threaded.
--
DeeDee, don't press that button! DeeDee! NO! Dee...
[ Post a follow-up to this message ]
|