Submitted by pcfreak30 on Wed, 02/19/2014 - 16:31
When setting/getting ram, PHYSPAGES should be used instead. You may actually just want to use the --ram switch which allows you specify the size like "--ram 1G" or "--ram 1024M".
PRIVVMPAGES was used in the past based on googling, but the --ram switch is now setting PHYSPAGES instead. the free command does not reflect the set memory presently due to using PRIVVMPAGES.
Thanks.
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Wed, 02/19/2014 - 21:19 Comment #1
Thanks, that's an excellent suggestion.
What actually is the difference between the limit set with
--ram
and--privvmpages
though?Submitted by pcfreak30 on Wed, 02/19/2014 - 21:21 Comment #2
Read: https://forum.openvz.org/index.php?t=msg&goto=153&
And I just know to use PHYSPAGES as thats what --ram changes and its the only way "free" command is updated to reflect it.
Also I dont see any explicit option for vswap?
Submitted by pcfreak30 on Wed, 02/19/2014 - 21:22 Comment #3
Opps, misread your question. I dont think there is a difference, but if OpenVZ decides to change the internals again I see "--ram" as a "meta" switch that will auto-handle the correct way to do it.
Submitted by JamieCameron on Wed, 02/19/2014 - 21:26 Comment #4
Ok, in future releases we will set --ram at the same time as --privvmpages
Submitted by Issues on Wed, 03/05/2014 - 21:31 Comment #5
Automatically closed -- issue fixed for 2 weeks with no activity.