Set I/O limit for OpenVz container

From vpsget wiki
Jump to: navigation, search

The original wiki: http://openvz.org/I/O_limits

To take a look if I/O limit set for some container you can run next command:

cat /etc/vz/conf/1786.conf  | grep IOLIMIT

If you see output like this:

IOLIMIT="1048576"

Means I/O limit set to 1Mb for specified container.


Set I/O limit :

vzctl set 1786 --iolimit 1M --save

You can also modify this value in container config file /etc/vz/conf/<CTID>