This is a well-known issue. There are two methods to control or throttle the disk and network I/O rate under UNIX / Linux while using the rsync command.
How To Keep rsync From Using All Your Bandwidth on Linux/Unix/BSD Server
Method # 1: Limit I/O bandwidth using rsync command
The --bwlimit option limit I/O bandwidth. You need to set bandwidth using KBytes per second. For example, limit I/O banwidth to 10000KB/s (9.7MB/s), enter:
# rsync --delete --numeric-ids --relative --delete-excluded --bwlimit=10000 /path/to/source /path/to/dest/
OR
# rsync -av --delete --numeric-ids --relative --delete-excluded \
--bwlimit=10000 \
/var/www/html vivek@server1.cyberciti.biz:/backups
Method # 2: Take control of I/O bandwidth using ionice utility
The ionice command sets the io scheduling class and priority for a program or script. You can totally control disk i/o. See the following article for detailed examples:
🐧 8 comments so far... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
Thanks
Check your grammar…. ionice command provide more control as compare to nice command.
should read:
The ‘ionice’ command provide more control as compare to the ‘nice’ command
r3dk1ng
redking… it’s as “compared to” not “as compare” to… check your grammar too if you wanna complain :)
@anon, if you’re going to use quotes to illustrate the difference between original and corrective syntax, then you should use the quotes around the same group of words. Let me fix your poor correction to redking.
Should be “as compared to”, not “as compare to”
But then again, redking also missed pluralizing of provides.
Here is the final corrected sentence that both of you screwed up:
The ionice command provides more control as compared to the nice command.
You are welcome.
Guys!!!!
Please shut up and fix your own garden any time.
@ asdf@asdf.tld
Actually, I believe that punctuation should precede a quotes symbol. So this would be correct:
Should be, “as compared to,” not, “as compare to.”
I mention this only because I find the corrections funny. Please feel free to correct my correction of the corrected correction.
Hilarious ! English as she is spoke.
Thank you
server load due to rsync was driving me mad