Limit backup I/O bandwidth

Limit backup I/O bandwidth

Category : How-to

Get Social!

proxmox_logoWhen backing up in Proxmox, especially on the lower end of the server market, the backup process can cause your system to almost grind to a halt. Luckily, there is a config change which we can make to limit the bandwidth of the backup process to make sure there is sufficient bandwidth for everything else.

The setting cannot be changed using the web gui, you must log into your Proxmox server using SSH. Once you have logged in, open the config file:

vi /etc/vzdump.conf

Find the line which contains bwlimit, remove the hash and append the value of KB/s which you would like the backup limiting to. The below example limits the backup process to 40000 KB/s.

bwlimit 40000

To calculate how many KB/s you need will take trial and error to see what affect speeds have on your system. Something which is helpful however, is converting MBs (Megabytes) into KB/s (Kilobytes). The formula is simple – just multiply the MB value by 1024 as there are 1024 KB in a MB.

MB/s * 1024 = KB/s

If you want a transfer speed of 10 MB/s you would use a bwlimit value of 10240 as the below example shows.

10 MB/s * 1024 = 10240 KB/s


2 Comments

Jarrod

11-Jun-2013 at 4:13 am

Great writeup. A small problem though- VZDump’s bwlimit uses KBps, not Kbps. Setting it to 40000 is equivelent to 40MBps, rather than your suggested 5MBps (see http://pve.proxmox.com/wiki/Vzdump_manual).

    james.coyle

    12-Jun-2013 at 12:00 pm

    Thanks for the correction, Jerrod. Would a value of 40000 KB/s not be around 39 MB/s (40000/1024)?

Leave a Reply

Visit our advertisers

Quick Poll

Do you use ZFS on Linux?

Visit our advertisers