Results 1 to 8 of 8

Thread: High load during restore

  1. #1
    Join Date
    Jul 2011
    Posts
    30

    High load during restore

    I restored a backup which it's size was 4G,
    During the restore , server's load reached 200.
    Why the load goes such high during the restore?
    What should I do to avoid it?

    Any help would be much appreciated.

  2. #2
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    Hello,

    Is it a VPS? I guess your disk subsystem is very busy there, and that makes slow all other processes... What does top show in the moment of restoring and before it?
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

  3. #3
    Join Date
    Jul 2011
    Posts
    30
    No, It's dedicated with 8G Memory and 4 core cpu, I restored the file again to see what the top is showing,
    The system is not busy before and after the restore and average load is about 0.5 ,
    This time server's load reached to 370!
    The top command shows "gzip -d" as most active process during the high load period.
    Doesn't DA support cpuwatch as cPanel does?

  4. #4
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    If you want to get help on these forums, you'd better follow the recommendations, and give the output of the top. As without that with the same certainty of a success you can Google. The first 5 lines of top might help us to help you.
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

  5. #5
    Join Date
    Jul 2011
    Posts
    30
    Here is the screenshot from top, atop and htop during the high load:

    http://axgig.com/images/56037659577353485506.png
    http://axgig.com/images/09288932842246419258.png

    Regards

  6. #6
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    You've got 85% wa (wa = Waiting for I/O), your HDD is too busy, and that makes slow all the other processes. You might need to check your HDD(s) with smartmontools, and/or replace them.
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

  7. #7
    Join Date
    Aug 2009
    Posts
    122
    I've the same issue but during the backup,
    I got many clients with more than 25 GB of files,
    Doesn't DirectAdmin support something like cpuwatch of cPanel?

  8. #8
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    By default no, it does not support anything like cpuwatch. Though all tasks are being done with nice. So you might want to suggest it as feature.

    Here I found a script, which can be modified a little to consider current LA and "pause tar`ing"

    Code:
    #!/bin/bash
    
    # Usage:
    # slowcmd.sh tar cf ~/backup.tar /usr/src/linux-2.6.25
    
    "$@" &
    PID=$!
    echo "PID is $PID"
    TOGGLE='Resume'
    RUN_SECONDS=2
    PAUSE_SECONDS=10
    
    function procnumber () {
        echo `ps ax | awk -v var=$1 '{if($1==var){printf("%d", $1)}}'`
    }
    
    while [ "$PID" != "" ]; do
        if [ "$TOGGLE" = "Pause" ]; then
    	echo "Stopping PID $PID"
    	kill -s STOP $PID
    	sleep "$PAUSE_SECONDS"
    	TOGGLE='Resume'
        else
    	echo "Resuming PID $PID"
    	kill -s CONT $PID
    	sleep "$RUN_SECONDS"
    	PID=$(procnumber $PID)
    	TOGGLE='Pause'
        fi
    done
    Anyway on this bases one can try to write a wrapper to tar binary, and use it on directadmin powered server
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

Similar Threads

  1. High load, low CPU use, low memory use, high %iowait (%wa)
    By Duboux in forum System-Level Technical Discussion
    Replies: 11
    Last Post: 04-16-2012, 06:26 AM
  2. high load avg
    By hmarei in forum MySQL / PHP
    Replies: 1
    Last Post: 08-30-2009, 03:28 PM
  3. High Load
    By RackSystems in forum Apache (WWW)
    Replies: 7
    Last Post: 11-13-2006, 08:04 PM
  4. HIGH CPU load...
    By sng in forum General Technical Discussion & Troubleshooting
    Replies: 3
    Last Post: 10-30-2006, 01:57 PM
  5. High CPU Load
    By poox in forum General Technical Discussion & Troubleshooting
    Replies: 7
    Last Post: 10-03-2006, 06:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •