OpenVZ Forum


Home » General » Support » Allocate memory to a VE
icon5.gif  Allocate memory to a VE [message #21410] Mon, 08 October 2007 10:02 Go to next message
mccharlet is currently offline  mccharlet
Messages: 15
Registered: October 2007
Location: Switzerland
Junior Member
Hi,

This my first installation of openvz.

I can't find to allocate memory to a VE.

For exemple, i want allocate 180Mo to my VE 101

Tanks


Thanks

Sorry for my english

mccharlet

http://www.ateliernetcreation.com

[Updated on: Mon, 08 October 2007 16:03]

Report message to a moderator

Re: Allocate memory to a VE [message #21423 is a reply to message #21410] Mon, 08 October 2007 20:33 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
whenever someone says "I can't" but doesn't include an error message, its not clear what the problem is. Is the problem with your level of understanding or is it a technical problem? If the latter, send us the command and output you are seeing.

-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Allocate memory to a VE [message #21424 is a reply to message #21423] Mon, 08 October 2007 20:59 Go to previous messageGo to next message
mccharlet is currently offline  mccharlet
Messages: 15
Registered: October 2007
Location: Switzerland
Junior Member
Hi,

Sorry this not "I can't" but "i don't know"

I find this commande for allocate 128Mo
page = 128*1024*1024/4096 ---> 32768

vzctl set 102 --privvmpages 32768:32768 --oomguarpages 32768:32768 --physpages 32768:32768 --vmguarpages 32768:32768 --save

And this for the memory information on the VE
vzctl set 102 --meminfo pages:32768 --save

But on the VE, swap memory as zero
102:~# free
total used free shared buffers cached
Mem: 65536 13300 52236 0 0 0
-/+ buffers/cache: 13300 52236
Swap: 0 0 0


How to allocate swap file?


Thanks

Sorry for my english

mccharlet

http://www.ateliernetcreation.com
Re: Allocate memory to a VE [message #21425 is a reply to message #21424] Mon, 08 October 2007 21:04 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
swapping is handled by the HN; the proc/meminfo file is adjusted by the meminfo option to vzctl and it seems swap is not adjustable, so it just displays 0. in the VE context, you do not know or have control over how much of your memory is in physical memory and in disk swap. it could all be in one or the other, or in both. The VE is clueless about where its memory is actually stored.



-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
icon14.gif  Re: Allocate memory to a VE [message #21470 is a reply to message #21425] Tue, 09 October 2007 16:39 Go to previous messageGo to next message
mccharlet is currently offline  mccharlet
Messages: 15
Registered: October 2007
Location: Switzerland
Junior Member
Thanks



Thanks

Sorry for my english

mccharlet

http://www.ateliernetcreation.com
Re: Allocate memory to a VE [message #21500 is a reply to message #21410] Wed, 10 October 2007 01:14 Go to previous message
m1ndless is currently offline  m1ndless
Messages: 1
Registered: October 2007
Junior Member
I concur?
Previous Topic: application on host
Next Topic: Problems receiving multicast data in VE (using IGMP snooping)
Goto Forum:
  


Current Time: Mon Aug 19 14:07:04 GMT 2024

Total time taken to generate the page: 0.03116 seconds