Editing User Guide/Managing Resources
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 144: | Line 144: | ||
# Second-level (per-user and per-group) disk quotas are enabled for the given Container; | # Second-level (per-user and per-group) disk quotas are enabled for the given Container; | ||
+ | |||
# The value that you assign to this parameter will be the limit for the number of file owners and groups of this Container, including Linux system users. Note that you will theoretically be able to create extra users of this Container, but if the number of file owners inside the Container has already reached the limit, these users will not be able to own files. | # The value that you assign to this parameter will be the limit for the number of file owners and groups of this Container, including Linux system users. Note that you will theoretically be able to create extra users of this Container, but if the number of file owners inside the Container has already reached the limit, these users will not be able to own files. | ||
Line 153: | Line 154: | ||
Unable to apply new quota values: ugid quota not initialized | Unable to apply new quota values: ugid quota not initialized | ||
Saved parameters for CT 101 | Saved parameters for CT 101 | ||
− | # '''vzctl | + | # '''vzctl stop 101; vzctl start 101''' |
− | + | Stopping CT ... | |
− | Stopping | + | CT was stopped |
− | + | CT is unmounted | |
− | + | Starting CT ... | |
− | Starting | + | CT is mounted |
− | + | Adding IP address(es): 192.168.1.101 | |
− | Adding IP address(es): 192.168. | + | Hostname for CT set: vps101.my.org |
− | + | CT start in progress... | |
− | |||
− | |||
− | |||
=== Setting Up Second-Level Disk Quota Parameters === | === Setting Up Second-Level Disk Quota Parameters === | ||
Line 547: | Line 545: | ||
Config /etc/vz/conf/ve-vps.mytest.conf-sample was created | Config /etc/vz/conf/ve-vps.mytest.conf-sample was created | ||
# '''vzcfgvalidate /etc/vz/conf/ve-vps.mytest.conf-sample''' | # '''vzcfgvalidate /etc/vz/conf/ve-vps.mytest.conf-sample''' | ||
− | Recommendation: kmemsize.lim-kmemsize.bar should be > 253952 (currently, 126391) | + | Recommendation: kmemsize.lim-kmemsize.bar should be > 253952 \ |
+ | (currently, 126391) | ||
Recommendation: dgramrcvbuf.bar should be > 132096 (currently, 93622) | Recommendation: dgramrcvbuf.bar should be > 132096 (currently, 93622) | ||
Line 554: | Line 553: | ||
The number of Containers you can run on the Hardware Node is actually several times greater than the value specified in the command line because Containers normally do not consume all the resources that are guaranteed to them. To illustrate this idea, let us look at the Container created from the configuration produced above: | The number of Containers you can run on the Hardware Node is actually several times greater than the value specified in the command line because Containers normally do not consume all the resources that are guaranteed to them. To illustrate this idea, let us look at the Container created from the configuration produced above: | ||
− | # '''vzctl create 101 --ostemplate | + | # '''vzctl create 101 --ostemplate fedora-core-4 --config vps.mytest''' |
Creating CT private area: /vz/private/101 | Creating CT private area: /vz/private/101 | ||
CT private area was created | CT private area was created | ||
Line 572: | Line 571: | ||
=== Validating Container Configuration === | === Validating Container Configuration === | ||
The system resource control parameters have complex interdependencies. Violation of these interdependencies can be catastrophic for the Container. In order to ensure that a Container does not break them, it is important to validate the CT configuration file before creating CTs on its basis. | The system resource control parameters have complex interdependencies. Violation of these interdependencies can be catastrophic for the Container. In order to ensure that a Container does not break them, it is important to validate the CT configuration file before creating CTs on its basis. | ||
− | + | The typical validation scenario is shown below: | |
− | |||
# '''vzcfgvalidate /etc/vz/conf/101.conf''' | # '''vzcfgvalidate /etc/vz/conf/101.conf''' | ||
Line 579: | Line 577: | ||
Recommendation: dgramrcvbuf.bar should be > 132096 (currently, 65536) | Recommendation: dgramrcvbuf.bar should be > 132096 (currently, 65536) | ||
Recommendation: othersockbuf.bar should be > 132096 (currently, 122880) | Recommendation: othersockbuf.bar should be > 132096 (currently, 122880) | ||
+ | # '''vzctl set 101 --kmemsize 2211840:2359296 --save''' | ||
+ | Saved parameters for CT 101 | ||
+ | # '''vzcfgvalidate /etc/vz/conf/101.conf''' | ||
+ | Recommendation: kmemsize.lim-kmemsize.bar should be > 163840 (currently, 147456) | ||
+ | Recommendation: dgramrcvbuf.bar should be > 132096 (currently, 65536) | ||
+ | Recommendation: othersockbuf.bar should ba > 132096 (currently, 122880) | ||
+ | Validation completed: success | ||
The utility checks constraints on the resource management parameters and displays all the constraint violations found. There can be three levels of violation severity: | The utility checks constraints on the resource management parameters and displays all the constraint violations found. There can be three levels of violation severity: | ||
Line 592: | Line 597: | ||
|} | |} | ||
− | + | In the scenario above, the first run of the vzcfgvalidate utility found a critical error for the kmemsize parameter value. After setting reasonable values for kmemsize, the resulting configuration produced only recommendations, and the Container can be safely run with this configuration. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | In the scenario above, the first run of the | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<noinclude>{{UG/Footer}}</noinclude> | <noinclude>{{UG/Footer}}</noinclude> |