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 next 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.
Re: vzctl set changes configuration on the fly? [message #28926 is a reply to message #28925] Tue, 01 April 2008 14:56 Go to previous messageGo to next message
mihde is currently offline  mihde
Messages: 12
Registered: February 2007
Junior Member
I am having the same problem here, on a Debian Etch HN running just a few VEs. It did work a while ago, and I think this changed after some ovz Kernel Update. (Unfortunateley I do not know which one...)

Kernel is at the moment:
Linux xxx 2.6.18-ovz-028stab053.5-smp #1 SMP Sat Mar 1 20:36:11 UTC 2008 x86_64 GNU/Linux

vzctl is 3.0.22-1dso1, Kernel and other OpenVZ Software is taken from the great debian.systs.org

Is there any information we can provide for further investigation? Should we file a bugreport?

Kind Regards
Maik


Re: vzctl set changes configuration on the fly? [message #28929 is a reply to message #28925] Tue, 01 April 2008 23:09 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

which vzctl version do you use?

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: vzctl set changes configuration on the fly? [message #28935 is a reply to message #28929] Wed, 02 April 2008 03:55 Go to previous messageGo to next message
pva0xd is currently offline  pva0xd
Messages: 24
Registered: February 2008
Junior Member

That is gentoo Linux with th following versions of software installed:
vz ~ # vzctl --version
vzctl version 3.0.22
vz ~ # uname -a
Linux vz 2.6.18-028stab053 #1 Mon Feb 18 16:33:59 MSK 2008 x86_64 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux
vz ~ # lsmod
Module                  Size  Used by
simfs                   5776  3
vznetdev               22696  6
vzrst                 126880  0
vzcpt                 101808  0
vzdquota               42600  3 [permanent]
vzmon                  36624  6 vznetdev,vzrst,vzcpt
vzdev                   4360  3 vznetdev,vzdquota,vzmon


Just in case, kernel config is in attachment.
  • Attachment: config.gz
    (Size: 7.24KB, Downloaded 353 times)
Re: vzctl set changes configuration on the fly? [message #28939 is a reply to message #28935] Wed, 02 April 2008 07:10 Go to previous messageGo to next message
Mr.Ash is currently offline  Mr.Ash
Messages: 42
Registered: September 2007
Member
try to use

vzctl set 101 --privvmpages 250M:300M --save --setmod restart


Yours Truly,
Ash
Re: vzctl set changes configuration on the fly? [message #28941 is a reply to message #28939] Wed, 02 April 2008 07:26 Go to previous messageGo to next message
pva0xd is currently offline  pva0xd
Messages: 24
Registered: February 2008
Junior Member

Does not change anythig: Shocked

vz ~ # vzctl set 101 --privvmpages 250M:300M --setmode restart --save
UB limits were set successefully
Saved parameters for VE 101
vz ~ # vzctl enter 101
entered into VE 101
cacti / # free -m
             total       used       free     shared    buffers     cached
Mem:           750        144        605          0          0          0
-/+ buffers/cache:        144        605
Swap:            0          0          0


And dmesg is clear. The only thing which helps is vzctl stop 101 && vzctl start 101...
Re: vzctl set changes configuration on the fly? [message #28944 is a reply to message #28941] Wed, 02 April 2008 07:49 Go to previous messageGo to next message
Mr.Ash is currently offline  Mr.Ash
Messages: 42
Registered: September 2007
Member
cat /etc/sysconfig/vz-scripts/101.conf

result?
Re: vzctl set changes configuration on the fly? [message #28945 is a reply to message #28944] Wed, 02 April 2008 08:13 Go to previous messageGo to next message
pva0xd is currently offline  pva0xd
Messages: 24
Registered: February 2008
Junior Member

Location of config file is different, but here it is:

vz ~ # cat /etc/vz/conf/101.conf
#  Copyright (C) 2000-2007 SWsoft. All rights reserved.
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#

VERSION="2"

ONBOOT="yes"

# UBC parameters (in form of barrier:limit)
# Primary parameters
AVNUMPROC="40:40"
NUMPROC="65:65"
NUMTCPSOCK="80:80"
NUMOTHERSOCK="80:80"
VMGUARPAGES="25600:28160"
# Secondary parameters
KMEMSIZE="10485760:12582912"
TCPSNDBUF="319488:524288"
TCPRCVBUF="319488:524288"
OTHERSOCKBUF="132096:336896"
DGRAMRCVBUF="132096:132096"
OOMGUARPAGES="133120:9223372036854775807"
# Auxiliary parameters
LOCKEDPAGES="32:32"
SHMPAGES="8192:8192"
PRIVVMPAGES="76800:81920"
NUMFILE="2048:2048"
NUMFLOCK="100:110"
NUMPTY="16:16"
NUMSIGINFO="256:256"
DCACHESIZE="1048576:1097728"

PHYSPAGES="0:9223372036854775807"
NUMIPTENT="128:128"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="4097152:4306868"
DISKINODES="400000:420000"
QUOTATIME="0"

# CPU fair sheduler parameter
CPUUNITS="100000"
OFFLINE_MANAGEMENT="yes"
HOSTNAME="cacti.rcline.ru"
IP_ADDRESS="172.16.0.41"
CPULIMIT="90"
Re: vzctl set changes configuration on the fly? [message #28946 is a reply to message #28945] Wed, 02 April 2008 08:19 Go to previous messageGo to next message
Mr.Ash is currently offline  Mr.Ash
Messages: 42
Registered: September 2007
Member
try this
vzctl set 101 --privvmpages 262144:262144 --save --setmod restart
i think error 250M:300M
Re: vzctl set changes configuration on the fly? [message #28949 is a reply to message #28946] Wed, 02 April 2008 08:53 Go to previous messageGo to next message
pva0xd is currently offline  pva0xd
Messages: 24
Registered: February 2008
Junior Member

Mr.Ash wrote on Wed, 02 April 2008 12:19

try this
vzctl set 101 --privvmpages 262144:262144 --save --setmod restart
i think error 250M:300M


Does not make any difference. And If I do with 250M:300M and vzctl stop/start after that container has new values, as it should.
Re: vzctl set changes configuration on the fly? [message #28957 is a reply to message #28949] Wed, 02 April 2008 13:04 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

I confirm that this is a bug in vzctl. I have reopened OpenVZ bug #623; add yourself into Cc for this bug if you want to track its progress. Hopefully it will be fixed soon.

http://bugzilla.openvz.org/show_bug.cgi?id=623


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: vzctl set changes configuration on the fly? [message #29866 is a reply to message #28946] Mon, 28 April 2008 06:01 Go to previous message
chubaka is currently offline  chubaka
Messages: 9
Registered: April 2008
Junior Member

Mr.Ash wrote on Wed, 02 April 2008 03:19

try this
vzctl set 101 --privvmpages 262144:262144 --save --setmod restart
i think error 250M:300M



this helped me
Previous Topic: Install errors
Next Topic: openvz template with Java/Tomcat?
Goto Forum:
  


Current Time: Mon Mar 04 01:05:58 GMT 2024

Total time taken to generate the page: 0.02610 seconds