OpenVZ memory management

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

Thanks, that's an excellent suggestion.

What actually is the difference between the limit set with --ram and --privvmpages though?

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.

Ok, in future releases we will set --ram at the same time as --privvmpages

Automatically closed -- issue fixed for 2 weeks with no activity.