OpenVZ Forum


Home » General » Support » *SOLVED* /proc pid number off-by-one? ... 2.6.18-028test003.1
Re: /proc pid number off-by-one? ... 2.6.18-028test003.1 [message #8311 is a reply to message #8310] Tue, 14 November 2006 17:35 Go to previous messageGo to previous message
John Kelly is currently offline  John Kelly
Messages: 97
Registered: May 2006
Location: Palmetto State
Member
A race between SIGTERM and startproc is what I thought too. But then I put "sleep 1" between killproc and startproc, and the problem still happens.

The zombie pid is not the old pid that was killed; the old pid number is much lower (not just one lower); I can see that before killing it. The zombie pid is somehow related to the new instance of sendmail, though I am not sure how.

As another data point:

This moring I was using a debian etch VE, running aptitude interactively to install a package. But after downloading, it stalled, and went no further. Then I used another session to look with "ps ax" and I saw another zombie:

  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:00 init [2]
 9359 ?        Ss     0:00 /sbin/syslogd
 9365 ?        Ss     0:00 /sbin/klogd -x
 9377 ?        Ssl    0:00 /usr/sbin/named -u bind
 9401 ?        Ss     0:00 /usr/sbin/sshd
 9405 ?        Ss     0:00 /usr/sbin/vsftpd
 9411 ?        Ss     0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayal
 9432 ?        Ss     0:00 /usr/sbin/cron
19964 ?        Ss     0:00 sshd: root@pts/0
19967 pts/0    Ss     0:00 -bash
21510 ?        Ss     0:00 sshd: root@pts/2
21513 pts/2    Ss     0:00 -bash
31876 pts/2    Zl+    0:08 [aptitude] <defunct>
31964 pts/0    R+     0:00 ps ax

This never happened to me before, with debian aptitude. Maybe there is some 2.6.18 kernel regression related to PIDs and zombies, but I don't know how to analyze it further.



 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Confixx on openvz VPS
Next Topic: VPS route prob
Goto Forum:
  


Current Time: Tue Aug 06 04:54:45 GMT 2024

Total time taken to generate the page: 0.03266 seconds