Throttle The Disk I/O Rate: Limit disk I/O for rsync Tool
Q. I run a backup script called /root/backup.sh which runs rsync command. However, rsync makes a lots of disk I/O and network I/O. I'd like to reduce both disk I/O and network I/O. I've 10Mbps server connection and 160GiB SATA hard disk. How do reduce disk I/O so that the entire system doesn't die or become unresponsive?
A. This is well known issue. There are two methods to control or throttle the disk and network I/O rate under UNIX / Linux.
Method # 1: Limit I/O bandwidth
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/
Method # 2: Take control of I/O bandwidth using ionice utility
ionice command provide more control as compare to nice command. This program sets the io scheduling class and priority for a program or script. You can totally control disk i/o. Please see following article for detailed examples:
E-mail this to a friend
Printable version
Related Other Helpful FAQs:
- What are the different RAID levels for Linux / UNIX and Windows Server?
- Linux Boot Disk under Redhat or Fedora Linux
- How To Find Hard Disk Revolutions Per Minute (RPM) Speed From A Shell Prompt
- Linux create an installation boot disk
- Linux copy data from a floppy to hard disk
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: bandwidth management, bandwidth throttle software, bandwidth throttling, disk bandwidth throttling, hard disk, limit bandwidth, linux bandwidth throttling, outburst, per second, throttle bandwidth, throttle network bandwidth




Recent Comments
Yesterday ~ 7 Comments
Yesterday ~ 2 Comments
Yesterday ~ 3 Comments
Yesterday ~ 3 Comments
09/05/2008 12:28 pm (2 days ago) ~ 70 Comments