Paparaciz, thank you for your reply.
When I set CPU Units to be 0, I received this error:
[root@skywalker conf]# vzctl restart 101
Warning at /etc/vz/conf/101.conf:36: invalid value for CPUUNITS ("0"), skipped
Restarting container
Stopping container ...
Container was stopped
Container is unmounted
Starting container ...
Container is mounted
Adding IP address(es): 216.245.217.125 216.245.217.126 64.31.32.133 64.31.32.134
Setting CPU limit: 90
Setting CPU units: 1000
Setting CPUs: 8
Container start in progress...
"Setting CPU units: 1000"
My CT file:
##############################################
## SIMUZO OpenVZ Default Configuration File ##
##############################################
ONBOOT="yes"
# UBC parameters (in form of barrier:limit)
KMEMSIZE="2147483647:2147483647"
LOCKEDPAGES="999999:999999"
PRIVVMPAGES="792576"
SHMPAGES="792576"
NUMPROC="32567:32567"
PHYSPAGES="0:2147483647"
VMGUARPAGES="792576"
OOMGUARPAGES="792576"
NUMTCPSOCK="7999992:7999992"
NUMFLOCK="999999:999999"
NUMPTY="255:255"
NUMSIGINFO="1024:1024"
NUMSIGINFO="1024:1024"
TCPSNDBUF="214748160:396774400"
TCPRCVBUF="214748160:396774400"
OTHERSOCKBUF="214748160:396774400"
DGRAMRCVBUF="214748160:396774400"
NUMOTHERSOCK="7999992:7999992"
DCACHESIZE="2147483647:2147483647"
NUMFILE="23999976:23999976"
AVNUMPROC="180:180"
NUMIPTENT="999999:999999"
# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="419430400:419430400"
DISKINODES="48000000:48000000"
QUOTATIME="0"
# CPU fair sheduler parameter
CPUUNITS="0"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
OSTEMPLATE="centos-5-x86_64"
ORIGIN_SAMPLE="vps.basic"
IP_ADDRESS="xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx"
HOSTNAME="hostname"
NAMESERVER="208.115.254.242 208.115.254.250"
QUOTAUGIDLIMIT="10000"
IOPRIO="0"
CPULIMIT="90"
CPUS="8"
When I set CPUS=4
Total processors: 4
Processor #1
Vendor
GenuineIntel
Name
Intel(R) Xeon(R) CPU E31230 @ 3.20GHz
Speed
359.190 MHz
Cache
8192 KB
Processor #2
Vendor
GenuineIntel
Name
Intel(R) Xeon(R) CPU E31230 @ 3.20GHz
Speed
359.190 MHz
Cache
8192 KB
Processor #3
Vendor
GenuineIntel
Name
Intel(R) Xeon(R) CPU E31230 @ 3.20GHz
Speed
359.190 MHz
Cache
8192 KB
Processor #4
Vendor
GenuineIntel
Name
Intel(R) Xeon(R) CPU E31230 @ 3.20GHz
Speed
359.190 MHz
Cache
8192 KB
CPUS=2
Total processors: 2
Processor #1
Vendor
GenuineIntel
Name
Intel(R) Xeon(R) CPU E31230 @ 3.20GHz
Speed
1438.602 MHz
Cache
8192 KB
Processor #2
Vendor
GenuineIntel
Name
Intel(R) Xeon(R) CPU E31230 @ 3.20GHz
Speed
719.301 MHz
Cache
8192 KB
CPUS=1
Total processors: 1
Processor #1
Vendor
GenuineIntel
Name
Intel(R) Xeon(R) CPU E31230 @ 3.20GHz
Speed
1438.602 MHz
Cache
8192 KB
I cannot understand..
[Updated on: Mon, 19 December 2011 09:07]
Report message to a moderator