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.

Server load abysmal during backups / updates

Discussion in 'General Discussion' started by cothrun, Aug 15, 2005.

  1. cothrun

    cothrun Member

    Joined:
    Oct 22, 2003
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    One of the Cpanel/WHM servers I help admin is bogging down hard doing the nightly backups and updates. Load registers between 5 and 10 on a single CPU box and even named is timing out, much less Apache and PHP and whatnot. During the day loads are usually below 0.10.

    This has become most obvious after the RPM database got locked and none of the updates ran for a few days. By the time I became aware of the issue swap was filling up and there were hundreds of processes stuck waiting for the locks to clear. I deleted the locks, rebuilt the RPM database and killed hundreds of processes, could I have managed to kill something useful?

    Drives are IDE, backup is being done to another hard drive in the same box, so I suspect part of the problem may be I/O issues. Any good ways to measure this?

    I'm considering rebooting the server, but I'd rather figure out what is going on.
     
  2. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    check to make sure DMA is on

    /sbin/hdparam /dev/hda
     
  3. cothrun

    cothrun Member

    Joined:
    Oct 22, 2003
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    /dev/hda:
    multcount = 16 (on)
    IO_support = 0 (default 16-bit)
    unmaskirq = 0 (off)
    using_dma = 1 (on)
    keepsettings = 0 (off)
    readonly = 0 (off)
    readahead = 8 (on)
    geometry = 4865/255/63, sectors = 78165360, start = 0

    /dev/hdb:
    multcount = 16 (on)
    IO_support = 0 (default 16-bit)
    unmaskirq = 0 (off)
    using_dma = 1 (on)
    keepsettings = 0 (off)
    readonly = 0 (off)
    readahead = 8 (on)
    geometry = 4865/255/63, sectors = 78165360, start = 0

    DMA is on
     
  4. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Lately it's gotten allot worse and effects the whole server.

    Can we have take longer but run a little gentler on the server? maybe spit the archives for big sites.
     
  5. cothrun

    cothrun Member

    Joined:
    Oct 22, 2003
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Partial Solution

    Running /scripts/cpbackup from the console led me to a partial solution, the backups are taking so much resources because they are backing up giant mail files. The default mail file for the highest traffic domain on the server was approaching 2GB and the spam file was approaching another 1GB. I deleted these, recreated the files with the right permissions and owner:group and backups are running much better.
     
Loading...

Share This Page