easy RAM allocation [message #47365] |
Fri, 03 August 2012 08:49 |
votsalo
Messages: 26 Registered: December 2011 Location: Greece
|
Junior Member |
|
|
I've been using openvz with Proxmox for several months now but I still don't know how to increase the RAM of a container using only command-line tools (preferrably openvz tools). When I had to increase the memory from the command line, I resorted to making a template of the container, destroying the old container and then relaunching it from its template with new memory parameters using pvectl create -memory.
The wiki points out to the Setting_UBC_parameters page, but I find it too complicated. Why do I need to know about kmemsize, privvmpages, physpages, vmgarpages, oomgarpages? That's at least 5 parameters and each one has barrier and limit. When I want to install more RAM in a standalone linux system I just shut it down, plug in a RAM module and start it up again. That's it. The OS simply detects how much RAM is available on the machine and just uses it. I never had to specify any parameters. Why can't it be as simple as this with openvz? Proxmox does it through the UI, but I don't always have the UI available. On my production machine I've disabled the root password and therefore the UI, so I do everything from the command line.
There must be a good reason why these parameters are there, but could there be a vzctl set option that takes just a desired ram size and sets reasonable ubc parameters from it?
|
|
|