[Dovecot] dovecot-auth file descriptor usage

Steven F Siirila sfs at tc.umn.edu
Fri Jan 5 19:55:38 UTC 2007


In dovecot-auth (rc15) we experienced problems when the file descriptors
reached 256 (due to a Solaris fdopen() call described previously).
The issue was that there was one file descriptor being used for every
imap-login and pop3-login process (in our environment of SSL-only that
means one for every active IMAP and POP connection).

Mods were made (and appear in rc16) to close out the descriptor in question
after using it during authentication (as I understand it).  However, I am
still seeing plenty of file descriptors left open in rc16 (one per session).
For example, on a Solaris 9 server with 9 IMAP connections open here is
an lsof excerpt of dovecot-auth:

dovecot-a 26071 root    7u  unix       105,136     0t79     3190 /devices/pseudo/tl at 0:ticots->/var/opt/dovecot/run/dovecot/login/default (0x3000d084250)
dovecot-a 26071 root    8u  unix       105,140     0t80     3190 /devices/pseudo/tl at 0:ticots->/var/opt/dovecot/run/dovecot/login/default (0x3c9c4227b68)
dovecot-a 26071 root    9u  unix       105,149     0t79     3190 /devices/pseudo/tl at 0:ticots->/var/opt/dovecot/run/dovecot/login/default (0x3cbaa7680b8)
dovecot-a 26071 root   10u  unix       105,266     0t79     3190 /devices/pseudo/tl at 0:ticots->/var/opt/dovecot/run/dovecot/login/default (0x3cbaa765d48)
dovecot-a 26071 root   11u  unix       105,160     0t79     3190 /devices/pseudo/tl at 0:ticots->/var/opt/dovecot/run/dovecot/login/default (0x3cbaa7667e0)
dovecot-a 26071 root   12u  unix       105,255     0t79     3190 /devices/pseudo/tl at 0:ticots->/var/opt/dovecot/run/dovecot/login/default (0x3cbaa769288)
dovecot-a 26071 root   13r  DOOR         265,0      0t0       50 /var/run (swap) (door to nscd[7752])
dovecot-a 26071 root   14u  unix       105,258     0t79     3190 /devices/pseudo/tl at 0:ticots->/var/opt/dovecot/run/dovecot/login/default (0x30002dc4008)
dovecot-a 26071 root   15u  unix       105,282     0t80     3190 /devices/pseudo/tl at 0:ticots->/var/opt/dovecot/run/dovecot/login/default (0x30003185738)
dovecot-a 26071 root   16u  unix       105,141     0t80     3190 /devices/pseudo/tl at 0:ticots->/var/opt/dovecot/run/dovecot/login/default (0x30003185ac8)

With the modification made, shouldn't these no longer accumulate?

-- 

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