OpenVZ Forum


Home » General » Support » vzsplit
vzsplit [message #25253] Tue, 18 December 2007 23:25 Go to next message
tomp is currently offline  tomp
Messages: 64
Registered: August 2007
Member
Hi

Why does vzsplit create config files that allow overcommitment of memory (allocation of memory that is) even when the -s 0 switch is used to ignore swap space?

I ran the command, vzsplit -n 25 -s0, created a VE based on this config, and the output of vzcalc is below:

Resource Current(%) Promised(%) Max(%)
Low Mem 0.18 4.20 4.20
Total RAM 1.86 n/a n/a
Mem + Swap 0.87 1.90 n/a
Alloc. Mem 1.88 1.90 8.15
Num. Proc 0.03 n/a 1.14

IF alloc mem if =~8% then 25*8% is 200% allocation!
Re: vzsplit [message #25254 is a reply to message #25253] Tue, 18 December 2007 23:40 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
Where do you see 8%?

Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: vzsplit [message #25255 is a reply to message #25253] Tue, 18 December 2007 23:54 Go to previous messageGo to next message
tomp is currently offline  tomp
Messages: 64
Registered: August 2007
Member
8.15 in Max column for Alloc. Mem
Re: vzsplit [message #25258 is a reply to message #25255] Wed, 19 December 2007 03:53 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
Makes sense to me. It will allow up to 8% of the memory, only if it is available. Overcommited would be to allow 8% of guaranteed.

Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: vzsplit [message #25321 is a reply to message #25258] Thu, 20 December 2007 13:27 Go to previous message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
We believe that memory allocation overcommit is safe, because usually applications do not use all the allocated memory:
http://wiki.openvz.org/UBC_systemwide_configuration#Limiting _memory_allocations
Previous Topic: high system cputime %
Next Topic: *Resolved* Bandwidth Limit for VEs?
Goto Forum:
  


Current Time: Sat Jul 13 22:02:10 GMT 2024

Total time taken to generate the page: 0.02598 seconds