Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-06-2010, 09:24 AM
|
#1
|
Member
Registered: Feb 2010
Posts: 107
Rep:
|
rsync ran by crond strangles bandwidth
Hello,
I have a weird problem.
Rsync works fine if it is ran by me manually; i restrict the upload rate, and the bandwidth doesnt suffer, users and rsync may work at the same time.
But when i set crond to schedule rsync, it doesnt matter if i set the limit rate, if i use "trickle" to limit the upload or whatever, rsync uses the 100% of available bandwidth, making imposible to use the network.
In crond, i exaclty wrote the same command line i use manually which work, and i did program it every 30 minutes, so backups doesnt start before the previous finished.
I dont know what happends... ideas?
Last edited by fdelval; 12-06-2010 at 11:37 AM.
|
|
|
12-07-2010, 01:38 AM
|
#2
|
Senior Member
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339
|
Is it running in the essence by the same user and the same nice value?
|
|
|
12-07-2010, 02:47 AM
|
#3
|
Member
Registered: Feb 2010
Posts: 107
Original Poster
Rep:
|
Quote:
Originally Posted by Reuti
Is it running in the essence by the same user and the same nice value?
|
same user yes
about the nice value, i dont know what it is...
|
|
|
12-07-2010, 04:20 AM
|
#4
|
Senior Member
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339
|
The default is a value of zero for user processes. It should be the same for the processes running by a cron entry, unless you specify it explicitly.
But you can of course try to lower its priority to test it. You have to prefix the command in your cron entry by
Code:
nice -19 your_command_here
which should be a shortcut to
Code:
nice -n 19 your_command_here
and results in a priority of plus 19, i.e. the lowest possible one on Linux (on BSD it would be 20).
|
|
|
12-07-2010, 04:13 PM
|
#5
|
Member
Registered: Feb 2010
Posts: 107
Original Poster
Rep:
|
mmm i dont know, i smell something bad in rsync.
Look, i tryed to synch a 2 gb file over a LAN manually, no cron.
I set --progress --bwlimit=15 because it was set in my script from the last file i put over the internet.
Guess what?
the average uploading rate was: 15MB/sec
The man page says:
--bwlimit=<rate>Kb
So i dont know what is the problem.
|
|
|
12-08-2010, 08:46 AM
|
#7
|
Member
Registered: Feb 2010
Posts: 107
Original Poster
Rep:
|
yes it does
to sum up:
--bwlimit=15
LAN -> 15MB/s
WAN -> 15 KB/s
WAN & cron: -> doesnt work
|
|
|
All times are GMT -5. The time now is 11:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|