[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to limit an IO bound process?



Le samedi 21 avril 2007 21:21, Sven Arvidsson a écrit :
> On Sun, 2007-04-22 at 00:03 +0800, Wei Chen wrote:
> > I know that `nice` can be used for CPU bound
> > programs. What about disk IO bound ones? Is there
> > something similar for them?
>
> There's ionice from the schedutils package, but I don't know how well it
> works.

I use it for my hourly backup with rsnapshot.
Before I do that, I was really annoyed by the backup, now, I'm not anymore.

I combine ionice and nice, I don't know if it's usefull, but I really want my 
backup to be quite.

gilles@guitare:~$ cat /etc/cron.d/rsnapshot
9 *     * * *           root mount /sauvegarde > /dev/null 2>&1
10 *    * * *           root ionice -c3 nice -n19 /usr/bin/rsnapshot horaire
20 23   * * *           root ionice -c3 nice -n19 /usr/bin/rsnapshot quotidien
21 23   * * 0           root ionice -c3 nice -n19 /usr/bin/rsnapshot 
hebdomadaire
22 23   1 * *           root ionice -c3 nice -n19 /usr/bin/rsnapshot mensuel

Attachment: pgpIlM6C6Cliv.pgp
Description: PGP signature


Reply to: