OpenVZ Forum


Home » General » Support » vzctl set changes configuration on the fly?
vzctl set changes configuration on the fly? [message #28925] Tue, 01 April 2008 14:27 Go to previous message
pva0xd is currently offline  pva0xd
Messages: 24
Registered: February 2008
Junior Member

Well, I thought that this question was asked many times but I failed to dig answer on this forum...

Whenever VE parameters of running container are changed with vzctl set vied they are supposed to be changed on-fly, and /proc/user_beancounters shows me new values immediately. But inside VE I do not see any changes... Look at this session where I try to change privvmpages without restarting container:

First this are initial values:
vz ~ # grep privvmpages /proc/bc/101/resources
            privvmpages                 36082                49989               192000               204800                    0
vz ~ # vzctl enter 101
entered into VE 101
cacti / # egrep 'Mem(Total|Free)' /proc/meminfo
MemTotal:       768000 kB
MemFree:        621476 kB
cacti / # logout
exited from VE 101


Now if values are changed with vzctl I see changes inside /proc/bc, but there are no changes inside VE:
vz ~ # vzctl set 101 --privvmpages 250M:300M
UB limits were set successefully
WARNING: Settings were not saved and will be resetted to original values on next start (use --save flag)
vz ~ # grep privvmpages /proc/bc/101/resources
            privvmpages                 36529                49989                64000                76800                    0
vz ~ # vzctl enter 101
entered into VE 101
cacti / # egrep 'Mem(Total|Free)' /proc/meminfo
MemTotal:       768000 kB
MemFree:        619696 kB
cacti / # free
             total       used       free     shared    buffers     cached
Mem:        768000     148336     619664          0          0          0
-/+ buffers/cache:     148336     619664
Swap:            0          0          0


free, top /proc/meminfo still show old data. So, should I restart container to apply changes on the fly? I've read on this forum that this is not required, but seems that it is, or... what do I miss? Thank you for your time.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Install errors
Next Topic: openvz template with Java/Tomcat?
Goto Forum:
  


Current Time: Sat Nov 09 03:47:31 GMT 2024

Total time taken to generate the page: 0.03185 seconds