HowTo modify parameters in /etc/sysconfig/vz-scripts/ve-vps conf file [message #21417] |
Mon, 08 October 2007 17:59 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
![](http://new-forum.openvz.org/images/custom_avatars/1214.gif) |
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 #21421 is a reply to message #21417] |
Mon, 08 October 2007 19:13 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
![](http://new-forum.openvz.org/images/custom_avatars/1214.gif) |
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 Go to previous message](/theme/ovz3/images/up.png) |
![](https://forum.openvz.org/images/custom_avatars/125.jpg) |
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
|
|
|