The numbers are represented in pages. Please, read the following links:http://wiki.openvz.org/Proc/user_beancountershttp://wiki.openvz.org/Setting_UBC_parameters
Edit: Is it just me or are these wiki entries written in a foreign language. Don't feel bad if you didn't get it the first time. It took me several reads to comprehend what OpenVZ was saying.
As you can see, you should use pages as limit.
If you want to set 1GB as limit, then you need to do the following math:
1 page = 4096 bytes (4kbytes)
1GB = 8,589,934,592 bytes
8,589,934,592 bytes /4096 bytes (1 page) = 2097152 pages
As result of this, for example, you have the following:
vzctl set 1001 --vmguarpages 2097152:2097152 --save
vzctl set 1001 --oomguarpages 2097152:2097152 --save
vzctl set 1001 --privvmpages 2097152:2097152 --save
Or if you're running a current kernel, you can do the following:
vzctl set 1001 --vmguarpages 1G:2G--save
vzctl set 1001 --oomguarpages 1G:2G--save
vzctl set 1001 --privvmpages 1G:2G--save
__________________:: ReadyWire Multimedia Solutions - Now offering Master WHMReseller