Details
-
Type: Bug
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Fix Version/s: OpenVZ-legacy
-
Component/s: Containers::Userspace
-
Security Level: Public
-
Environment:Operating System: RHEL/CentOS 5
Platform: x86_64 (AMD64)
-
External issue URL:
-
External issue ID:2251
Description
I read about the --ram and --swap flags that were introduced in vzctl 3.0.30 on http://openvz.livejournal.com/39765.html and decided to use them to upgrade the memory for a container using the following commands:
----
# vzctl set 101 --ram 6G --swap 3G --save
# vzctl set 101 --kmemsize unlimited --dcachesize unlimited --lockedpages unlimited --save
# vzctl restart 101
----
After this running top in the container shows it has 8 GB RAM (all of the RAM available on the host node) instead of 6 GB, and 20 GB swap space (all of the swap space available on the host node) instead of 3 GB.
----
# vzctl set 101 --ram 6G --swap 3G --save
# vzctl set 101 --kmemsize unlimited --dcachesize unlimited --lockedpages unlimited --save
# vzctl restart 101
----
After this running top in the container shows it has 8 GB RAM (all of the RAM available on the host node) instead of 6 GB, and 20 GB swap space (all of the swap space available on the host node) instead of 3 GB.