hi all we're using rsync to backup our web server at the moment using it in a cron job the server we are using to receive all the sync files is a live but not heavily used linux machine but rsync still takes up more resources than we want it to it takes up to 95% (fluctuating) cpu load and a fair bit of memory too the cron job uses nice -19 rsync but that doesn't seem to do anything, is there anyway to make it use like 5% cpu or something? thanks dave
dtra wrote:> hi all > > we're using rsync to backup our web server at the moment using it in a > cron job > the server we are using to receive all the sync files is a live but > not heavily used linux machine > but rsync still takes up more resources than we want it to > it takes up to 95% (fluctuating) cpu load and a fair bit of memory too > > the cron job uses nice -19 rsync > but that doesn't seem to do anything, is there anyway to make it use > like 5% cpu or something? > > thanks > dave >sorry, one more thing, on the server we are getting the files from, max connections is set to 1 but when i go to top on the backup server, i can see several instances of rsync running eg. every twenty minutes a new rsync starts running that's not how it's meant to work, does anyone know how i can make it so that if one rsync instance is still going, then the next one shouldn't start up?
dtra wrote:> but rsync still takes up more resources than we want it to > it takes up to 95% (fluctuating) cpu load and a fair bit of memory too > > the cron job uses nice -19 rsync > but that doesn't seem to do anything, is there anyway to make it use > like 5% cpu or something?If the other uses of your machine consume 5% of the CPU, then rsync will be free to use 95% of the CPU regardless of priority. And that's a Good Thing: you're getting your money's worth for the machine. However, you may wish to check the man page for "nice". If you really did what you wrote you did, you didn't do what you think you did <grin>. - Andrew
dtra wrote:> hi all > > we're using rsync to backup our web server at the moment using it in a > cron job > the server we are using to receive all the sync files is a live but > not heavily used linux machine > but rsync still takes up more resources than we want it to > it takes up to 95% (fluctuating) cpu load and a fair bit of memory too > > the cron job uses nice -19 rsync > but that doesn't seem to do anything, is there anyway to make it use > like 5% cpu or something? > > thanks > dave >sorry, one more thing, on the server we are getting the files from, max connections is set to 1 but when i go to top on the backup server, i can see several instances of rsync running eg. every twenty minutes a new rsync starts running that's not how it's meant to work, does anyone know how i can make it so that if one rsync instance is still going, then the next one shouldn't start up? -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
I would suggest that your script that calls the various rsync commands creates a lockfile and whatever script that is spawning off the additional rsync processes waits until this lockfile is gone before doing anything. Ray On Thu, May 26, 2005 at 10:52:41AM +1000, dtra wrote:> dtra wrote: > > >hi all > > > >we're using rsync to backup our web server at the moment using it in a > >cron job > >the server we are using to receive all the sync files is a live but > >not heavily used linux machine > >but rsync still takes up more resources than we want it to > >it takes up to 95% (fluctuating) cpu load and a fair bit of memory too > > > >the cron job uses nice -19 rsync > >but that doesn't seem to do anything, is there anyway to make it use > >like 5% cpu or something? > > > >thanks > >dave > > > sorry, one more thing, on the server we are getting the files from, max > connections is set to 1 > but when i go to top on the backup server, i can see several instances > of rsync running > eg. every twenty minutes a new rsync starts running > that's not how it's meant to work, does anyone know how i can make it so > that > if one rsync instance is still going, then the next one shouldn't start up? > > -- > To unsubscribe or change options: > https://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html >-- Ray Van Dolson Linux/Unix Systems Administrator Digital Path, Inc. -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html