BackupPC-users

Re: [BackupPC-users] How to nice IO ?

2010-05-20 01:57:18
Subject: Re: [BackupPC-users] How to nice IO ?
From: "Tyler J. Wagner" <tyler AT tolaris DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Thu, 20 May 2010 07:55:29 +0200
On Thursday 20 May 2010 02:09:02 Sam Przyswa wrote:
> Tyler J. Wagner a écrit :
> > On Wednesday 19 May 2010 17:52:29 Sam Przyswa wrote:
> >> When the BackupPC_nightly processes are running the SSH login take a
> >> very long time to get the prompt and then the machine is very slow to
> >> execute task, how to nice these processes ?
> >
> > My RsyncClientCmd looks like this:
> >
> > $sshPath -q -x -l root $host /usr/bin/nice -n 19 /usr/bin/ionice -c 3
> > $rsyncPath $argList+
> >
> > That uses nice level 19 and ionice 3 (idle disk).
> 
> So I modifed BackupPC line 474 as:
> 
> my $cmd = ["/usr/bin/nice -n 19 /usr/bin/ionice -c 3
> $BinDir/BackupPC_nightly"];
> 
> But nothing changed when the BackupPC_nightly processes are started all
> my others apps are frozen !?

I'm sorry, I misunderstood.  I thought you wanted the clients to have minimal 
impact during backup, not the server.

When it is running, you can find out the nice level of BackupPC_nightly with 
top, and the ionice level with "ionice -p PID".  Replace PID with the process 
ID of BackupPC_nightly.

The best way to make your server more responsive is to add RAM (for disk 
caching), and reduce other functions.  My server runs only two things: 
BackupPC, and syslog-ng (as a network store for all my servers).  It can 
handle 3 simultaneous backups, but SSH login is 150% slower during peak hours.

Tyler

-- 
"The belief in immortality has always seemed cowardly to me. When very
young I learned that all things die, and all that we wish of good must
be won on this earth or not at all."
   -- Anne Smedley

------------------------------------------------------------------------------

_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>