cpu utilization and balanced in linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amarniit
    New Member
    • Sep 2009
    • 13

    cpu utilization and balanced in linux

    Hi Everyone,

    I have a problem for Linux Server (CentOS) i have 4 CPUs in my server but when i checked only one CPU uses show 30% and more.

    Now i want balance all my load on all four CPUs like if i have 40% load on server thn it should be 10-10% on each CPU.

    So please help me how can i set or fix that ecah of my cpu will take equal balance....

    like :
    cpu 1: 10%
    cpu 2: 10%
    cpu 3: 10%
    cpu 4: 10%


    but this time i am getting like
    cpu 1: 40%
    cpu 2: 0%
    cpu 3: 0%
    cpu 4: 0%


    Skype: amarniit
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    Normally the operating system will handle balancing the load between CPUs by itself as far as possible; as it isn't doing this here I wouldn't be surprised if it is mainly running one big task that isn't multi-core ready. If this is the case there's little you can do without switching the program or alternatively updating it.

    You could try using a tool like Cgroups which allows you to modify the resources attributed to various tasks; I have never used this myself though, so I can't say for sure if it will work or how to set it up. I'm sure you can find instructions on that online though.

    Comment

    Working...