[Samba] Duplicate PID
Volker.Lendecke at SerNet.DE
Mon Mar 3 03:34:51 MST 2014
On Mon, Feb 24, 2014 at 07:04:13PM +0200, Einat Ben Ezra wrote:
> I'm using samba version 3.0.37 and i encountered a very strange and
> annoying phenomena
> when 2 different users from 2 different machines are getting the same PID
> from samba.
> (2 windows users that are trying to view documents on the CIFS share).
> I did some google research on this problem and i found the following
> regarding such a problem:
> One can find references to problems like this, possibly affecting
> performance, back in 2001
> I experience that also on an RHEL6 samba server. Is %CPU for pid 17666
> exceptionally high? If you look at the full smbstatus - do you see other
> users with the same PID as user toor? List open files for the process with
> lsof -p 17666 and verify if toor opens other user's files.
> There are at least two theories what is causing this: 1. samba sometimes
> does not update it's state when clients are disconnected
> file locking (when one user accesses files of another user)
> *My questions are:*
> 1.Can someone please throw a light on the problem? explain why this can
> 2. How can i avoid such a problem of duplicate PID?
Two PIDs in the same box is not possible. It could be that
one smbd crashes hard and another smbd takes over the same
PID. But simultaneously -- no, impossible. It is perfectly
legal for one client machine to open a share twice. Later
versions have added the "reset on zero vc" option to deal
better with dead clients, and later versions also have added
provisions to deal properly with recycled PIDs. But we need
more information to see what is really your problem.
With best regards,
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
More information about the samba