OpenVZ Forum


Home » General » Support » Processes are wrong
Processes are wrong [message #7608] Wed, 18 October 2006 23:24 Go to next message
eugeniopacheco is currently offline  eugeniopacheco
Messages: 40
Registered: November 2005
Member
Hi,

I'm having a little problem with processes on a VPS. My node OS is FC 4 and the VPS is running on Debian-3.1-minimal. This is what's happening:

[root@server ~]# vzlist
VPSID NPROC STATUS IP_ADDR HOSTNAME
... ... ... ... ...
114 84 running x.x.x.x ShellCenter.Org

[root@server ~]# vzmemcheck -Av
Output values in Mbytes
veid LowMem LowMem RAM MemSwap MemSwap Alloc Alloc Alloc
util commit util util commit util commit limit
101 2.15 11.38 60.22 61.59 155.56 194.08 155.56 560.59
102 0.29 11.38 3.99 4.00 155.56 4.88 155.56 560.59
103 2.52 11.38 37.00 38.59 155.56 401.73 155.56 560.59
104 2.79 11.38 40.83 41.10 155.56 105.50 155.56 560.59
105 0.61 34.14 14.93 15.03 934.16 16.82 934.16 1063.22
106 1.06 11.38 34.13 34.38 155.56 168.35 155.56 560.59
107 0.27 11.38 4.03 4.03 155.56 4.95 155.56 560.59
108 2.82 11.38 71.31 72.47 155.56 307.97 155.56 560.59
109 0.29 11.38 4.01 4.09 155.56 4.97 155.56 560.59
110 1.80 11.38 30.82 31.26 155.56 105.88 155.56 560.59
111 0.32 11.38 6.99 7.19 155.56 8.73 155.56 560.59
114 3.47 11.38 73.78 74.10 155.56 409.11 155.56 560.59
------------------------------------------------------------ -------------
Summary: 18.38 159.32 382.05 387.84 2645.27 1732.95 2645.27 7229.76
325.00 325.00 1499.00 4700.00 4700.00 4700.00 4700.00 4700.00


[root@server ~]# vzctl exec 114 ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1504 488 ? Ss Oct07 0:11 init [2]
nobody 9347 0.0 0.0 2340 1152 ? Ss Oct07 0:00 proftpd: (accepting connections)
root 9489 0.0 0.0 1560 596 ? Ss Oct07 0:29 /sbin/syslogd
root 9578 0.0 0.0 3468 1532 ? Ss Oct07 0:56 /usr/sbin/sshd
daemon 9589 0.0 0.0 1684 628 ? Ss Oct07 0:00 /usr/sbin/atd
root 9598 0.0 0.0 1756 712 ? Ss Oct07 0:00 /usr/sbin/cron
fifabra 21905 0.0 0.1 12368 2728 ? S Oct09 0:28 ./eggdrop conf.FBRASIL
fifabra 21908 0.0 0.1 12364 2692 ? S Oct09 0:23 ./eggdrop conf.FBR
fifabra 21912 0.0 0.1 12360 2616 ? S Oct09 0:26 ./eggdrop conf.FIFAMANIA
fifabra 21916 0.0 0.1 12504 2824 ? S Oct09 0:48 ./eggdrop conf.PARCEIROS
guthin 23633 0.0 0.1 12220 2648 ? S Oct09 0:16 ./eggdrop teresina.conf
guthin 23691 0.0 0.1 12220 2712 ? S Oct09 0:18 ./eggdrop niteroi.conf
juniorr 15862 0.0 0.1 12376 2800 ? S Oct09 0:37 ./eggdrop kryptoniano.conf
juniorr 15868 0.0 0.1 12376 2672 ? S Oct09 0:19 ./eggdrop lost1.conf
juniorr 15934 0.0 0.1 12372 2664 ? S Oct09 0:18 ./eggdrop lost3.conf
hostage 12189 0.0 0.1 12444 2736 ? S Oct09 4:51 ./eggdrop conf.Hostage
hostage 12192 0.0 0.1 12360 2608 ? S Oct09 3:28 ./eggdrop conf.WebHost
hostage 12195 0.0 0.1 12360 2616 ? S Oct09 3:20 ./eggdrop conf.AgitoJovem
hostage 12198 0.0 0.1 12360 2636 ? S Oct09 3:43 ./eggdrop conf.http
guthin 1437 0.0 0.2 12500 3136 ? S Oct09 0:50 ./eggdrop -m flamengo.conf
erasmov 32507 0.0 0.2 13420 3720 ? S Oct11 0:07 ./eggdrop conf.Caxias
erasmov 32520 0.0 0.1 12504 2808 ? S Oct11 0:10 ./eggdrop conf.Info_Caxias
erasmov 32546 0.0 0.2 13604 4012 ? S Oct11 0:35 ./eggdrop conf.wall
canalir 13648 0.0 0.1 12624 2688 ? S Oct12 0:22 ./eggdrop conf.ANDRE_DOS_ANJOS_OFFline
canalir 20093 0.0 0.3 14732 4876 ? S Oct12 0:21 ./eggdrop conf.CanaL_IRCplugado
juniorr 25620 0.0 0.1 12368 2768 ? S Oct12 0:20 ./eggdrop -m downloads.conf
juninho 11994 0.0 0.1 40444 2568 ? S Oct12 0:01 ./sc_serv
dj 12179 0.0 0.5 26760 8148 ? S Oct12 0:00 ./dj juninho.conf
juniorr 28550 0.0 0.1 12368 2672 ? S Oct14 0:06 ./eggdrop lost2.conf
nescau 11991 0.0 0.4 16932 7348 ? S Oct16 0:55 ./eggdrop conf.ShellCenter
nescau 15848 0.0 0.1 12508 2816 ? S Oct16 0:05 ./eggdrop conf.Brigadeiro
orpheus 15983 0.0 0.2 13188 3664 ? S Oct16 0:03 ./eggdrop -m RebeldeS.conf
orpheus 17412 0.0 0.2 13172 3700 ? S Oct16 0:05 ./eggdrop -m Rebelde.conf
nicole 21748 0.0 0.1 37716 1780 ? S Oct16 0:00 ./sc_serv
thiagoc 20284 0.0 0.2 5604 4348 ? Ss Oct17 0:01 ./ircd
thiagoc 22523 0.0 0.3 7320 5728 ? S Oct17 0:01 ./services
niccole 15446 0.0 0.1 12356 2720 ? S Oct17 0:05 ./eggdrop conf.Imortality
niccole 15449 0.0 0.1 12476 2744 ? S Oct17 0:06 ./eggdrop conf.CaNaL_LeSbIaN
erasmov 13432 0.0 0.1 12492 2760 ? S 00:13 0:02 ./eggdrop conf.PibCaxias
z80 7260 0.0 0.0 2496 1380 ? S 09:44 0:19 ./psybnc psybnc.conf
juniorr 28405 0.0 0.1 12376 2600 ? S 13:00 0:02 ./eggdrop lostzilla.conf
juniorr 28424 0.0 0.1 12368 2664 ? S 13:01 0:00 ./eggdrop lost4.conf
root 7689 0.0 0.3 6868 5412 ? Ss 14:49 0:00 /usr/bin/perl /usr/local/webmin/miniserv.pl /etc/webmin/miniserv.conf
corog 9986 0.0 0.0 2492 1452 ? S 16:58 0:02 ./psybnc
root 4337 0.0 0.0 2492 840 ? Rs 20:57 0:00 ps aux


As you can see, there are only 45 processes running on this VPS, on vzlist it shows 84. The processes that are running on this VPS are not so consuming that his 560MB of virtual memory shouldn't suffice.

Here's his user_beancounters:

[root@server ~]# vzctl exec 114 cat /proc/user_beancounters
Version: 2.5
uid resource held maxheld barrier limit failcnt
114: kmemsize 3392992 5070267 5682216 6250437 0
lockedpages 0 0 277 277 0
privvmpages 103900 140683 125454 140599 31769
shmpages 0 3632 22145 22145 0
dummy 0 0 0 0 0
numproc 85 125 266 266 0
physpages 18019 33204 0 2147483647 0
vmguarpages 0 0 36909 2147483647 0
oomguarpages 18101 33284 36909 2147483647 0
numtcpsock 85 143 266 266 0
numflock 2 6 220 242 0
numpty 0 4 26 26 0
numsiginfo 1 14 1024 1024 0
tcpsndbuf 82436 841492 804536 1894072 32457829
tcprcvbuf 0 404016 804536 1894072 0
othersockbuf 75316 122104 402268 1491804 0
dgramrcvbuf 0 22280 402268 402268 0
numothersock 46 92 266 266 0
dcachesize 370336 484575 1234765 1271808 0
numfile 1305 1724 2208 2208 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
numiptent 10 10 66 66 0


Is it possible that OpenVZ is mixing processes from one VPS to another by mistake?

What should I do to fix it?

Thanks in advance,

Eugenio Pacheco
Re: Processes are wrong [message #7612 is a reply to message #7608] Thu, 19 October 2006 05:57 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
`ps aux` does not show threads. `ps -eLf` does it.
Re: Processes are wrong [message #7630 is a reply to message #7608] Thu, 19 October 2006 10:41 Go to previous messageGo to next message
eugeniopacheco is currently offline  eugeniopacheco
Messages: 40
Registered: November 2005
Member
Hi,

Thanks a lot for your answer. Now it makes sense. I tried ps -eLf and it showed all threads and I counted them up to be the same shown in vzlist.

But isn't the memory being accounted wrong? With only a few eggdrops, one ircd, one shoutcast and one ircservices it is using more than half of the memory.. Currently it is using 341MB out of 560MB

[root@server ~]# vzmemcheck -Av
Output values in Mbytes
veid LowMem LowMem RAM MemSwap MemSwap Alloc Alloc Alloc
util commit util util commit util commit limit
101 2.15 11.38 60.16 61.61 155.56 193.90 155.56 560.59
102 0.29 11.38 4.00 4.01 155.56 4.89 155.56 560.59
103 2.52 11.38 35.34 36.93 155.56 400.32 155.56 560.59
104 1.60 4.25 33.48 33.49 28.25 165.56 28.25 213.52
105 1.01 34.14 15.79 15.89 934.16 17.73 934.16 1063.22
106 1.01 11.38 32.80 33.05 155.56 167.24 155.56 560.59
107 0.28 11.38 4.00 4.00 155.56 4.91 155.56 560.59
108 3.43 11.38 90.49 93.75 155.56 398.09 155.56 560.59
109 0.29 11.38 4.02 4.10 155.56 4.97 155.56 560.59
110 1.78 11.38 30.87 31.31 155.56 105.86 155.56 560.59
111 0.32 11.38 6.99 7.19 155.56 8.73 155.56 560.59
114 2.80 11.38 63.67 64.03 155.56 341.53 155.56 560.59
------------------------------------------------------------ -------------
Summary: 17.49 152.19 381.61 389.36 2517.96 1813.73 2517.96 6882.69
325.00 325.00 1499.00 4700.00 4700.00 4700.00 4700.00 4700.00

And here's a ps aux and ps -eLf:

[root@server ~]# vzctl exec 114 ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1504 488 ? Ss Oct07 0:11 init [2]
nobody 9347 0.0 0.0 2340 1152 ? Ss Oct07 0:00 proftpd: (accepting connections)
root 9489 0.0 0.0 1560 596 ? Ss Oct07 0:30 /sbin/syslogd
root 9578 0.0 0.0 3468 1532 ? Ss Oct07 0:57 /usr/sbin/sshd
daemon 9589 0.0 0.0 1684 628 ? Ss Oct07 0:00 /usr/sbin/atd
root 9598 0.0 0.0 1756 712 ? Ss Oct07 0:00 /usr/sbin/cron
juninho 11994 0.0 0.1 40444 2568 ? S Oct12 0:01 ./sc_serv
dj 12179 0.0 0.5 26760 8892 ? S Oct12 0:00 ./dj juninho.conf
nicole 21748 0.0 0.1 37716 1744 ? S Oct16 0:00 ./sc_serv
thiagoc 20284 0.0 0.2 5604 4348 ? Ss Oct17 0:01 ./ircd
thiagoc 22523 0.0 0.3 7320 5748 ? S Oct17 0:01 ./services
z80 7260 0.0 0.0 2616 1476 ? S Oct18 0:39 ./psybnc psybnc.conf
root 7689 0.0 0.3 6868 5412 ? Ss Oct18 0:00 /usr/bin/perl /usr/local/webmin/miniserv.pl /etc/webmin/miniserv.conf
corog 9986 0.0 0.0 2492 1452 ? S Oct18 0:03 ./psybnc
nescau 9631 0.0 0.4 16812 7136 ? S Oct18 0:06 ./eggdrop conf.ShellCenter
nescau 9635 0.0 0.1 12368 2600 ? S Oct18 0:00 ./eggdrop conf.Brigadeiro
erasmov 15592 0.0 0.1 12648 3012 ? S Oct18 0:00 ./eggdrop conf.Caxias
erasmov 15606 0.0 0.1 12360 2688 ? S Oct18 0:00 ./eggdrop conf.Info_Caxias
erasmov 15617 0.0 0.2 13408 3796 ? S Oct18 0:01 ./eggdrop conf.wall
erasmov 15634 0.0 0.1 12488 2768 ? S Oct18 0:00 ./eggdrop conf.PibCaxias
hostage 19692 0.0 0.1 12492 2720 ? S Oct18 0:13 ./eggdrop conf.Hostage
hostage 19695 0.0 0.1 12360 2604 ? S Oct18 0:07 ./eggdrop conf.WebHost
hostage 19698 0.0 0.1 12360 2608 ? S Oct18 0:09 ./eggdrop conf.AgitoJovem
hostage 19701 0.0 0.1 12360 2612 ? S Oct18 0:08 ./eggdrop conf.http
guthin 24388 0.0 0.1 12236 2792 ? S 00:48 0:02 ./eggdrop flamengo.conf
guthin 24397 0.0 0.1 12220 2644 ? S 00:48 0:00 ./eggdrop niteroi.conf
guthin 24410 0.0 0.1 12220 2600 ? S 00:49 0:00 ./eggdrop -m teresina.conf
orpheus 25798 0.0 0.2 13052 3472 ? S 00:55 0:00 ./eggdrop Rebelde.conf
orpheus 25808 0.0 0.2 12948 3316 ? S 00:56 0:00 ./eggdrop RebeldeS.conf
niccole 28316 0.0 0.1 12360 2704 ? S 01:18 0:00 ./eggdrop conf.Imortality
niccole 28319 0.0 0.1 12480 2716 ? S 01:18 0:00 ./eggdrop conf.CaNaL_LeSbIaN
canalir 29916 0.0 0.2 12920 3260 ? S 01:26 0:00 ./eggdrop conf.CanaL_IRCplugado
canalir 29919 0.0 0.1 12488 2752 ? S 01:26 0:00 ./eggdrop conf.ANDRE_DOS_ANJOS_OFFline
fifabra 5449 0.0 0.1 12360 2600 ? S 07:20 0:00 ./eggdrop conf.FBR
fifabra 5452 0.0 0.1 12364 2668 ? S 07:20 0:00 ./eggdrop conf.FBRASIL
fifabra 5458 0.0 0.1 12232 2604 ? S 07:20 0:00 ./eggdrop conf.FIFAMANIA
fifabra 5461 0.0 0.1 12364 2672 ? S 07:20 0:00 ./eggdrop conf.PARCEIROS
root 14591 0.0 0.0 2492 840 ? Rs 08:36 0:00 ps aux


[root@server ~]# vzctl exec 114 ps -eLf
UID PID PPID LWP C NLWP STIME TTY TIME CMD
root 1 0 1 0 1 Oct07 ? 00:00:11 init [2]
nobody 9347 1 9347 0 1 Oct07 ? 00:00:00 proftpd: (accepting connections)
root 9489 1 9489 0 1 Oct07 ? 00:00:30 /sbin/syslogd
root 9578 1 9578 0 1 Oct07 ? 00:00:57 /usr/sbin/sshd
daemon 9589 1 9589 0 1 Oct07 ? 00:00:00 /usr/sbin/atd
root 9598 1 9598 0 1 Oct07 ? 00:00:00 /usr/sbin/cron
juninho 11994 1 11994 0 5 Oct12 ? 00:00:01 ./sc_serv
juninho 11994 1 11995 0 5 Oct12 ? 00:00:40 ./sc_serv
juninho 11994 1 11996 0 5 Oct12 ? 00:03:50 ./sc_serv
juninho 11994 1 11997 0 5 Oct12 ? 00:00:31 ./sc_serv
juninho 11994 1 11998 0 5 Oct12 ? 00:00:00 ./sc_serv
dj 12179 1 12179 0 3 Oct12 ? 00:00:00 ./dj juninho.conf
dj 12179 1 12180 4 3 Oct12 ? 06:09:31 ./dj juninho.conf
dj 12179 1 12181 0 3 Oct12 ? 00:00:02 ./dj juninho.conf
nicole 21748 1 21748 0 5 Oct16 ? 00:00:00 ./sc_serv
nicole 21748 1 21749 0 5 Oct16 ? 00:00:12 ./sc_serv
nicole 21748 1 21750 0 5 Oct16 ? 00:01:18 ./sc_serv
nicole 21748 1 21751 0 5 Oct16 ? 00:00:12 ./sc_serv
nicole 21748 1 21752 0 5 Oct16 ? 00:00:00 ./sc_serv
thiagoc 20284 1 20284 0 1 Oct17 ? 00:00:01 ./ircd
thiagoc 22523 1 22523 0 1 Oct17 ? 00:00:01 ./services
z80 7260 1 7260 0 1 Oct18 ? 00:00:39 ./psybnc psybnc.conf
root 7689 1 7689 0 1 Oct18 ? 00:00:00 /usr/bin/perl /usr/local/webmin/miniserv.pl /etc/webmin/miniserv.conf
corog 9986 1 9986 0 1 Oct18 ? 00:00:03 ./psybnc
nescau 9631 1 9631 0 2 Oct18 ? 00:00:06 ./eggdrop conf.ShellCenter
nescau 9631 1 9632 0 2 Oct18 ? 00:00:00 ./eggdrop conf.ShellCenter
nescau 9635 1 9635 0 2 Oct18 ? 00:00:00 ./eggdrop conf.Brigadeiro
nescau 9635 1 9636 0 2 Oct18 ? 00:00:00 ./eggdrop conf.Brigadeiro
erasmov 15592 1 15592 0 2 Oct18 ? 00:00:00 ./eggdrop conf.Caxias
erasmov 15592 1 15593 0 2 Oct18 ? 00:00:00 ./eggdrop conf.Caxias
erasmov 15606 1 15606 0 2 Oct18 ? 00:00:00 ./eggdrop conf.Info_Caxias
erasmov 15606 1 15607 0 2 Oct18 ? 00:00:00 ./eggdrop conf.Info_Caxias
erasmov 15617 1 15617 0 2 Oct18 ? 00:00:01 ./eggdrop conf.wall
erasmov 15617 1 15618 0 2 Oct18 ? 00:00:00 ./eggdrop conf.wall
erasmov 15634 1 15634 0 2 Oct18 ? 00:00:00 ./eggdrop conf.PibCaxias
erasmov 15634 1 15635 0 2 Oct18 ? 00:00:00 ./eggdrop conf.PibCaxias
hostage 19692 1 19692 0 2 Oct18 ? 00:00:13 ./eggdrop conf.Hostage
hostage 19692 1 19693 0 2 Oct18 ? 00:00:01 ./eggdrop conf.Hostage
hostage 19695 1 19695 0 2 Oct18 ? 00:00:07 ./eggdrop conf.WebHost
hostage 19695 1 19696 0 2 Oct18 ? 00:00:00 ./eggdrop conf.WebHost
hostage 19698 1 19698 0 2 Oct18 ? 00:00:09 ./eggdrop conf.AgitoJovem
hostage 19698 1 19699 0 2 Oct18 ? 00:00:00 ./eggdrop conf.AgitoJovem
hostage 19701 1 19701 0 2 Oct18 ? 00:00:08 ./eggdrop conf.http
hostage 19701 1 19702 0 2 Oct18 ? 00:00:00 ./eggdrop conf.http
guthin 24388 1 24388 0 2 00:48 ? 00:00:02 ./eggdrop flamengo.conf
guthin 24388 1 24389 0 2 00:48 ? 00:00:00 ./eggdrop flamengo.conf
guthin 24397 1 24397 0 2 00:48 ? 00:00:00 ./eggdrop niteroi.conf
guthin 24397 1 24398 0 2 00:48 ? 00:00:00 ./eggdrop niteroi.conf
guthin 24410 1 24410 0 2 00:49 ? 00:00:00 ./eggdrop -m teresina.conf
guthin 24410 1 24411 0 2 00:49 ? 00:00:00 ./eggdrop -m teresina.conf
orpheus 25798 1 25798 0 2 00:55 ? 00:00:00 ./eggdrop Rebelde.conf
orpheus 25798 1 25799 0 2 00:55 ? 00:00:00 ./eggdrop Rebelde.conf
orpheus 25808 1 25808 0 2 00:56 ? 00:00:00 ./eggdrop RebeldeS.conf
orpheus 25808 1 25809 0 2 00:56 ? 00:00:00 ./eggdrop RebeldeS.conf
niccole 28316 1 28316 0 2 01:18 ? 00:00:00 ./eggdrop conf.Imortality
niccole 28316 1 28317 0 2 01:18 ? 00:00:00 ./eggdrop conf.Imortality
niccole 28319 1 28319 0 2 01:18 ? 00:00:00 ./eggdrop conf.CaNaL_LeSbIaN
niccole 28319 1 28320 0 2 01:18 ? 00:00:00 ./eggdrop conf.CaNaL_LeSbIaN
canalir 29916 1 29916 0 2 01:26 ? 00:00:00 ./eggdrop
...

Re: Processes are wrong [message #7640 is a reply to message #7630] Thu, 19 October 2006 11:48 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
As far as I undestand, you're afraid of this number:

114 2.80 11.38 63.67 64.03 155.56 341.53 155.56 560.59

If so, then everything is ok. This number doesn't show how much memory this VE use! This number equals how much memory VE in question allocated!

Usually applications allocate much memory but use only ~25% of it.
You can read a bit more about it on this wiki page: http://wiki.openvz.org/Privvmpages#privvmpages


HTH,
vass.+
Previous Topic: high load spikes average of 80
Next Topic: *SOLVED* SSH with single ip address?
Goto Forum:
  


Current Time: Sat Jul 13 23:49:03 GMT 2024

Total time taken to generate the page: 0.02154 seconds