Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

User Guide/Managing Resources

1,006 bytes added, 13:18, 14 January 2009
added IOPRIO, Configuring Container Disk I/O Priority Level
| Disk
| This group of parameters determines disk quota in OpenVZ. The OpenVZ disk quota is realized on two levels: the per-CT level and the per-user/group level. You can turn on/off disk quota on any level and configure its settings.
| DISK_QUOTA, DISKSPACE, DISKINODES, QUOTATIME, QUOTAUGIDLIMIT, IOPRIO
| [[#Managing Disk Quotas]]
|-
If you do not need the second-level quota statistics, you can omit the <code>–t</code> switch from the <code>vzquota</code> command line.
 
=== Configuring Container Disk I/O Priority Level ===
 
OpenVZ provides you with the capability of configuring the Container disk I/O (input/output) priority level. The higher the Container I/O priority level, the more time the Container will get for its disk I/O activities as compared to the other Containers on the Hardware Node. By default, any Container on the Hardware Node has the I/O priority level set to 4. However, you can change the current Container I/O priority level in the range from 0 to 7 using the <code>--ioprio</code> option of the <code>vzctl set</code> command. For example, you can issue the following command to set the I/O priority of Container 101 to 6:
 
# '''vzctl set 101 --ioprio 6 --save'''
Saved parameters for Container 101
 
To check the I/O priority level currently applied to Container 101, you can execute the following command:
 
# '''grep IOPRIO /etc/vz/conf/101.conf'''
IOPRIO="6"
 
The command output shows that the current I/O priority level is set to 6.
== Managing Container CPU resources ==