Re: Limiting CPU for tasks on HN ? [message #33202 is a reply to message #33199] |
Sun, 28 September 2008 06:24 |
geejay
Messages: 11 Registered: May 2008
|
Junior Member |
|
|
Maratrus,
vzcpucheck -v
VEID CPUUNITS
-------------------------
0 1000
102 83333
Current CPU utilization: 84333
Power of the node: 159866
there is only one VPS on the HN which has been allocated 80000 CPUUNITS
If I do a copy of several GB on the HN the VPS becomes unresponsive. The VPS is running a VoIP application, Asterisk.
SIP clients cannot initiate new calls while the copying on the HN happens. Typically the VPS would use maximum 2% CPU to initiate a call. So there should not be any problem with resources. Beancounters also show that everything is running fine. Also I can see that the VPS receives the SIP messages over the network, but Asterisk stalls and does not process the call. IMVHO the CPU scheduler does not work.
Something is definitely not working as suggested in the Openvz manual.
How can debug this problem ?
I should perhaps mention that the VPS was converted from a physical machine. On startup it throws the following error:
Sep 28 08:26:49 onl3 sysctl: error: unknown error 1 setting key 'kernel.sysrq'
Sep 28 08:26:49 onl3 sysctl: error: unknown error 1 setting key 'kernel.core_uses_pid'
Sep 28 08:26:49 online rc.sysinit: Configuring kernel parameters: failed
However on the HN systcl shows no errors:
sysctl -p
net.ipv4.ip_forward = 1
kernel.shmmax = 4294967295
kernel.msgmax = 65536
kernel.msgmnb = 65536
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.default.proxy_arp = 0
kernel.sysrq = 1
net.ipv4.conf.default.forwarding = 1
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.all.send_redirects = 0
kernel.shmall = 268435456
net.ipv4.conf.default.send_redirects = 1
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
cat /proc/user_beancounters
Version: 2.5
uid resource held maxheld barrier limit failcnt
102: kmemsize 3265249 4588138 11055923 11377049 0
lockedpages 0 0 3000 3000 0
privvmpages 18487 34351 250000 250000 0
shmpages 1293 1309 21504 21504 0
dummy 0 0 0 0 0
numproc 57 67 240 240 0
physpages 9821 24879 0 2147483647 0
vmguarpages 0 0 33792 2147483647 0
oomguarpages 9821 24879 200000 2147483647 0
numtcpsock 9 23 360 360 0
numflock 4 10 188 206 0
numpty 2 2 16 16 0
numsiginfo 0 9 256 256 0
tcpsndbuf 87204 229160 1720320 2703360 0
tcprcvbuf 147456 326676 1720320 2703360 0
othersockbuf 34240 174280 1126080 2097152 0
dgramrcvbuf 0 32412 500000 500000 0
numothersock 22 32 360 360 0
dcachesize 0 0 3409920 3624960 0
numfile 1389 1546 9312 9312 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
numiptent 26 26 128 128 0
[Updated on: Sun, 28 September 2008 06:36] Report message to a moderator
|
|
|