OpenVZ Forum


Home » General » Support » HowTo modify parameters in /etc/sysconfig/vz-scripts/ve-vps conf file
HowTo modify parameters in /etc/sysconfig/vz-scripts/ve-vps conf file [message #21417] Mon, 08 October 2007 17:59 Go to next message
andyreed is currently offline  andyreed
Messages: 6
Registered: February 2007
Location: Minneapolis, MN
Junior Member
I split my dedicated server resources for 3 VEs. These 3 VEs share 2 x 160GB HDs RAID1, and 2GB RAM Memeory, respectively.

---------- My conf file ----------
CLASSID="2"
VERSION="2"

# Primary parameters
VMGUARPAGES="32770:32770"

# Secondary parameters
DGRAMRCVBUF="1318528:1318528"
OOMGUARPAGES="31250:31250"
OTHERSOCKBUF="1318528:2440832"
PRIVVMPAGES="500000:750000"
TCPRCVBUF="2637056:3759360"
TCPSNDBUF="2637056:3759360"

# Auxiliary parameters
CPULIMIT="300"
CPUUNITS="7370"
DCACHESIZE="8525184:9525184"
DISKINODES="55781934:55960128"
DISKSPACE="5208598:59714458"
IPTENTRIES="3000:4000"
KMEMSIZE="60252800:121278080"
LOCKEDPAGES="550:550"
NUMFILE="20000:25000"
NUMFLOCK="438:481"
NUMOTHERSOCK="10000:12000"
NUMPROC="700:1000"
NUMPTY="100:200"
NUMSIGINFO="1024:1024"
NUMTCPSOCK="1000:2000"
PHYSPAGES="0:2147483647"
SHMPAGES="400000:512000"

But, when I validate the my conf file, I get the following error message:

Error: barrier should be equal to limit for numproc (currently, 700:1000)
Error: barrier should be equal to limit for numtcpsock (currently, 1000:2000)
Error: barrier should be equal to limit for numothersock (currently, 10000:12000)
Error: limit should be = 2147483647 for vmguarpages (currently, 32770)
Error: barrier should be <= limit for tcpsndbuf (currently, 2637056:2560000)
Error: barrier should be <= limit for tcprcvbuf (currently, 2637056:2560000)
Error: barrier should be <= limit for othersockbuf (currently, 2637056:2560000)
Error: limit should be = 2147483647 for oomguarpages (currently, 31250)
Error: barrier should be equal to limit for shmpages (currently, 400000:512000)
Error: barrier should be equal to limit for numfile (currently, 20000:25000)
Error: barrier should be equal to limit for numpty (currently, 100:200)
Error: barrier should be equal to limit for numiptent (currently, 3000:4000)

Would you please help me fix the parameters above? Thank you

[Updated on: Mon, 08 October 2007 18:00]

Report message to a moderator

Re: HowTo modify parameters in /etc/sysconfig/vz-scripts/ve-vps conf file [message #21418 is a reply to message #21417] Mon, 08 October 2007 18:16 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
for example:

Error: barrier should be equal to limit for numproc (currently, 700:1000)

means to change:

NUMPROC="700:1000"

to:

NUMPROC="1000:1000"
or
NUMPROC="700:700"


-------------
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: HowTo modify parameters in /etc/sysconfig/vz-scripts/ve-vps conf file [message #21419 is a reply to message #21417] Mon, 08 October 2007 18:38 Go to previous messageGo to next message
andyreed is currently offline  andyreed
Messages: 6
Registered: February 2007
Location: Minneapolis, MN
Junior Member
Tried different values for these parameters, but no go:

Error: limit should be = 2147483647 for vmguarpages (currently, 32770)
Error: tcpsndbuf.lim-tcpsndbuf.bar should be > 2560000 (currently, 1122304)
Error: othersockbuf.lim-othersockbuf.bar should be > 25600000 (currently, 1122304)
Warning: tcprcvbuf.lim-tcprcvbuf.bar should be > 2560000 (currently, 1122304)
Re: HowTo modify parameters in /etc/sysconfig/vz-scripts/ve-vps conf file [message #21420 is a reply to message #21419] Mon, 08 October 2007 18:44 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
well those are of a different problem type. its actually quite clear:

Error: barrier should be <= limit for tcpsndbuf (currently, 2637056:2560000)

2637056:2560000 is wrong
try:
2637056:6660000

or anything where:

(barrier <= limit) && (tcpsndbuf.lim-tcpsndbuf.bar > 2560000)



-------------
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

[Updated on: Mon, 08 October 2007 18:48]

Report message to a moderator

Re: HowTo modify parameters in /etc/sysconfig/vz-scripts/ve-vps conf file [message #21421 is a reply to message #21417] Mon, 08 October 2007 19:13 Go to previous messageGo to next message
andyreed is currently offline  andyreed
Messages: 6
Registered: February 2007
Location: Minneapolis, MN
Junior Member
Two questions:

1. Any body can help validating these values?
2. Do you think these are ideal values for 3 VPSs sharing 3GHZ Dual Core Processor, 2x160GB HDs and 2GB RAM?

# Primary parameters
VMGUARPAGES="310952:2147483647"
ONBOOT="yes"

# Secondary parameters
OOMGUARPAGES="310952:2147483647"
OTHERSOCKBUF="14129288:46897288"

PRIVVMPAGES="310952:342047"
DGRAMRCVBUF="1318528:1318528"

TCPRCVBUF="14129288:30513288"
TCPSNDBUF="14129288:30513288"

# Auxiliary parameters
CPUUNITS="120000"
CPULIMIT="400"

DCACHESIZE="8525184:9525184"
DISKINODES="55781934:55960128"
DISKSPACE="5208598:59714458"

IPTENTRIES="3000:3000"
KMEMSIZE="60252800:121278080"
LOCKEDPAGES="550:550"

NUMFILE="20000:20000"
NUMFLOCK="438:481"
NUMOTHERSOCK="10000:10000"
NUMPROC="1000:1000"
NUMPTY="100:100"
NUMSIGINFO="1024:1024"
NUMTCPSOCK="1000:1000"

PHYSPAGES="0:2147483647"

Thank you!

[Updated on: Mon, 08 October 2007 21:24]

Report message to a moderator

Re: HowTo modify parameters in /etc/sysconfig/vz-scripts/ve-vps conf file [message #21426 is a reply to message #21421] Mon, 08 October 2007 22:30 Go to previous message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
You said you "split" it. Did you use vzsplit? If not, give it a try. It'll produce values that are valid.

Only 3 VPSes on a machine with 2GB of RAM? Are those VPSes running heavy apps or something? You should be able to fit 2 to 3 times that easily... unless you are running a very resource heavy app on one or more of them (like Zimbra for example).


--
TYL, Scott Dowdle
Belgrade, Montana, USA
Previous Topic: some thing like remote desktop
Next Topic: Secure /tmp directory
Goto Forum:
  


Current Time: Fri Sep 06 03:16:12 GMT 2024

Total time taken to generate the page: 0.06405 seconds