The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixing cpuwatch limit while cpbackup not possible.

Discussion in 'Data Protection' started by fenixer, Feb 25, 2009.

  1. fenixer

    fenixer Well-Known Member

    Joined:
    Feb 23, 2007
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    Hello.....

    While cpbackup, I do a "ps" and have:

    Well...... I need to configure that "14" limit, but:

    Also at tweak settings there is not any 14 anywhere......
    "The load average above the number of cpus at which logs file processing should be suspended (default 0)" is 6.

    "The load average that will cause the server status to appear red (leave blank for default, whole numbers only)" is 6 also.

    So........ where could I configure that maximum load por cpuwatch executed by cpbackup???

    Thanks.
     
  2. fenixer

    fenixer Well-Known Member

    Joined:
    Feb 23, 2007
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    Hi....... it seems to be these lines of /scripts/cpbackup:

    The interested parameter is: "$cpunum.0"

    This is the one controlling the maximun load to pause working on proccess...

    But...... what is cpunum.0?????????????

    Could I simply overwrite and set "10" by example?
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    If you look at the top of the script you will notice:

    Code:
    my $cpunum       = cPScript::Cpu::getcpucount();
    

    Cpu::getcpucount retrieves the number of processors from /proc/cpuinfo on Linux systems. Then the value of extracpus, which is the Tweak Setting The load average above the number of cpus at which logs file processing should be suspended, is added to the number.
     
  4. MMarko

    MMarko Well-Known Member

    Joined:
    Apr 18, 2005
    Messages:
    316
    Likes Received:
    0
    Trophy Points:
    16
    Would be great if "The load average above the number of cpus at which logs file processing should be suspended (default 0)" could use negative integer number.
     

Share This Page