1834506 Members
3175 Online
110068 Solutions
New Discussion

Re: cpu load

 
KO kwang tae
Advisor

cpu load

i have two cpu in L class server

and i am running a program made by C

processes are defined in inittab.

if i started processes manually,

cpu load : 0 cpu : 80~90%
1 cpu : 20~30%

why does it occur such a way?

help me~~
2 REPLIES 2
Patrick Wallek
Honored Contributor

Re: cpu load

Unless your program is written to be multi-threaded it will only use 1 CPU at a time.
Rajeev  Shukla
Honored Contributor

Re: cpu load

Does the CPU load remain always fixed for CPU0 till the process finishes, or have a look at process using top to see if the load shifts to CPU1 and back...

The other important thing is is the program compiled on this machine or someother machine. Because this can make a lot of difference on the performance of C programs if they are not compiled on same 64bit machine.