[Dovecot] dovecot-auth file descriptor usage

Steven F Siirila sfs at tc.umn.edu
Wed Jan 17 18:57:58 UTC 2007


On Wed, Jan 17, 2007 at 08:54:53PM +0200, Timo Sirainen wrote:
> On Wed, 2007-01-17 at 12:50 -0600, Steven F Siirila wrote:
> >  1. set login_process_count = 1 and restart dovecot
> >  2. Determine pid of the one imap-login above (pid 25814)
> >  3. Truss -f that process, waiting for the first child process to start,
> >     and extract the pid of that process, and run "pfiles" on that pid:
> > 
> > 	( truss -f -p 25814 | & fgrep -v 25814: | head -1 | sed -e 's/:.*//' -e 's/^/pfiles /' > x ) ; sh -x x > pfiles.out
> > 
> > The contents of the pfiles.out file is:
> > 
> > 26738:	imap
> 
> I guess something went wrong, because this is from a different PID and
> from an imap process, not imap-login :)

Doh!  Here's another one (took 3 more trials to nab one):

29058:	imap-login
  Current rlimit: unlimited file descriptors
   0: S_IFSOCK mode:0666 dev:293,0 ino:63436 uid:0 gid:0 size:0
      O_RDWR|O_NONBLOCK
	SOCK_STREAM
	SO_REUSEADDR,SO_KEEPALIVE,SO_SNDBUF(49152),SO_RCVBUF(49152),IP_NEXTHOP(0.0.192.0)
	sockname: AF_INET 0.0.0.0  port: 143
   1: S_IFSOCK mode:0666 dev:293,0 ino:42189 uid:0 gid:0 size:0
      O_RDWR|O_NONBLOCK
	SOCK_STREAM
	SO_REUSEADDR,SO_KEEPALIVE,SO_SNDBUF(49152),SO_RCVBUF(49152),IP_NEXTHOP(0.0.192.0)
	sockname: AF_INET 0.0.0.0  port: 993
   2: S_IFIFO mode:0000 dev:295,0 ino:2456463 uid:0 gid:1 size:0
      O_RDWR
   3: S_IFSOCK mode:0666 dev:293,0 ino:37418 uid:0 gid:0 size:0
      O_RDWR
	SOCK_STREAM
	SO_SNDBUF(16384),SO_RCVBUF(5120)
	sockname: AF_UNIX 
   4: S_IFCHR mode:0644 dev:287,0 ino:99614726 uid:0 gid:3 rdev:190,1
      O_RDONLY|O_LARGEFILE FD_CLOEXEC
      /devices/pseudo/random at 0:urandom

-- 

Steven F. Siirila			Office: Lind Hall, Room 130B
Internet Services			E-mail: sfs at umn.edu
Office of Information Technology	Voice: (612) 626-0244
University of Minnesota			Fax: (612) 626-7593


More information about the dovecot mailing list