OpenVZ Forum


Home » General » Support » *SOLVED* process count and stable kernel
*SOLVED* process count and stable kernel [message #12664] Sun, 06 May 2007 21:44 Go to next message
leofs is currently offline  leofs
Messages: 2
Registered: May 2007
Junior Member
Hi,

I think it's a bug, but not found in bugzilla, just to be sure I will speak about it here and then report it if needed.

In some VE, the number of processes seems to be wrong:

VPSID NPROC STATUS IP_ADDR HOSTNAME
1001 63 running xx.yy.136.88 promo.yop.com
1002 12 running xx.yy.138.6 video.yop.com
1003 24 running xx.yy.136.86 db.yop.com
1004 13 running xx.yy.137.206 forum.yop.com
1005 12 running xx.yy.137.2 devel.yop.com
[root@main.yop.com ~] # vzctl exec 1001 ps aux | wc -l
13
[root@main.yop.com ~] # vzctl exec 1002 ps aux | wc -l
14
[root@main.yop.com ~] # vzctl exec 1003 ps aux | wc -l
17
[root@main.yop.com ~] # vzctl exec 1004 ps aux | wc -l
15
[root@main.yop.com ~] # vzctl exec 1005 ps aux | wc -l

Like you see, the number is false in 1001, 1003 but correct in the other, can be some reason for that ?

I run 2.6.18-028stab023 on debian etch.

My second question is what stable kernel to choose knowing that a new one is released every 3 days... I plan to keep the 2.6.18-028stab023 but that problem said me to upgrade Smile I admin my server remotly and it is in production now, so I didn't want to try every release.

Thank you.

Regard.

Leo

[Updated on: Tue, 08 May 2007 07:19] by Moderator

Report message to a moderator

Re: process count and stable kernel [message #12672 is a reply to message #12664] Mon, 07 May 2007 07:16 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

Quote:


[root@main.yop.com ~] # vzlist
VPSID NPROC STATUS IP_ADDR HOSTNAME
1001 63 running xx.yy.136.88 promo.yop.com
1002 12 running xx.yy.138.6 video.yop.com
1003 24 running xx.yy.136.86 db.yop.com
1004 13 running xx.yy.137.206 forum.yop.com
1005 12 running xx.yy.137.2 devel.yop.com

[root@main.yop.com ~] # vzctl exec 1001 ps aux | wc -l
13
[root@main.yop.com ~] # vzctl exec 1002 ps aux | wc -l
14
[root@main.yop.com ~] # vzctl exec 1003 ps aux | wc -l
17
[root@main.yop.com ~] # vzctl exec 1004 ps aux | wc -l
15
[root@main.yop.com ~] # vzctl exec 1005 ps aux | wc -l


Like you see, the number is false in 1001, 1003 but correct in the other, can be some reason for that ?



As you probably know `ps aux` command outputs only processes, but not threads. And `vzlist` command shows all processes number including threads number in VE. You can try to give:
HN# vzctl exec 1001 ps -eLf | wc -l
command to get all processes number in VE and compare it to `vzlist` output.

Thanks,
Vasily
Re: process count and stable kernel [message #12692 is a reply to message #12672] Mon, 07 May 2007 12:44 Go to previous messageGo to next message
leofs is currently offline  leofs
Messages: 2
Registered: May 2007
Junior Member
You are right. Thanks.

Can I keep the 2.6.18-028stab023 or I should update the the latest stab ?

Leo
Re: process count and stable kernel [message #12720 is a reply to message #12692] Tue, 08 May 2007 07:19 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
There are two reasonable strategies:
- always use the latest kernel
- update kernel only if something doesn't work

Both of them have some advantages and disadvantages. So it is probably a matter of taste Wink

I personally prefer 1st strategy.
Previous Topic: iptables ConnLimit
Next Topic: no routing - /dev/fd/62: No such file or directory
Goto Forum:
  


Current Time: Mon Jun 17 06:28:08 GMT 2024

Total time taken to generate the page: 0.03909 seconds