Re: [Dovecot] OpenBSD and too many open files

2007-08-07 Thread Bryan Vyhmeister
On Aug 7, 2007, at 11:15 AM, Brad wrote: I already passed this around for review and it has been commited. http://marc.info/?l=openbsd-cvs&m=118648637312063&w=2 Great! Thank you very much. Bryan

Re: [Dovecot] OpenBSD and too many open files

2007-08-07 Thread Brad
On Tue, 7 Aug 2007 10:05:32 -0700 Bryan Vyhmeister <[EMAIL PROTECTED]> wrote: > On Aug 1, 2007, at 4:22 PM, Bryan Vyhmeister wrote: > > > On Aug 1, 2007, at 11:09 AM, Quentin Garnier wrote: > > > >> Well, the problem is Christos did some other stuff in that commit > >> than > >> just fixing the

Re: [Dovecot] OpenBSD and too many open files

2007-08-07 Thread Bryan Vyhmeister
On Aug 7, 2007, at 10:29 AM, Quentin Garnier wrote: Well, I have not had a single instance of the "Too many files" error since. Everything is working smoothly. I'll see about getting the patch into OpenBSD if possible. I'll get that tutorial done as well. I'll send a mail to [EMAIL PROTECTED]

Re: [Dovecot] OpenBSD and too many open files

2007-08-07 Thread Bryan Vyhmeister
On Aug 1, 2007, at 4:22 PM, Bryan Vyhmeister wrote: On Aug 1, 2007, at 11:09 AM, Quentin Garnier wrote: Well, the problem is Christos did some other stuff in that commit than just fixing the bug. Try the attached patch. Thank you for the patch. It applied cleanly and I have a kernel tha

Re: [Dovecot] OpenBSD and too many open files

2007-08-01 Thread Bryan Vyhmeister
On Aug 1, 2007, at 11:09 AM, Quentin Garnier wrote: Well, the problem is Christos did some other stuff in that commit than just fixing the bug. Try the attached patch. Thank you for the patch. It applied cleanly and I have a kernel that reflects the patch running right now. So far so good.

Re: [Dovecot] OpenBSD and too many open files

2007-08-01 Thread Quentin Garnier
On Wed, Aug 01, 2007 at 10:56:26AM -0700, Bryan Vyhmeister wrote: > On Aug 1, 2007, at 10:37 AM, Quentin Garnier wrote: > > >On Wed, Aug 01, 2007 at 07:01:35PM +0200, Quentin Garnier wrote: > >[...] > >>Which does look like what is experienced here. Now, I don't know > >>if we > >>can locate ea

Re: [Dovecot] OpenBSD and too many open files

2007-08-01 Thread Bryan Vyhmeister
On Aug 1, 2007, at 10:37 AM, Quentin Garnier wrote: On Wed, Aug 01, 2007 at 07:01:35PM +0200, Quentin Garnier wrote: [...] Which does look like what is experienced here. Now, I don't know if we can locate easily what fix needs to be applied to OpenBSD. Check if this applies to OpenBSD: ht

Re: [Dovecot] OpenBSD and too many open files

2007-08-01 Thread Quentin Garnier
On Wed, Aug 01, 2007 at 07:01:35PM +0200, Quentin Garnier wrote: [...] > Which does look like what is experienced here. Now, I don't know if we > can locate easily what fix needs to be applied to OpenBSD. Check if this applies to OpenBSD: http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/kern/sys_pipe

Re: [Dovecot] OpenBSD and too many open files

2007-08-01 Thread Quentin Garnier
On Wed, Aug 01, 2007 at 07:52:33PM +0300, Timo Sirainen wrote: > On 1.8.2007, at 19.43, Quentin Garnier wrote: > > >FWIW, I've stopped using dovecot's kqueue code quite some time ago > >because it would leak one fd almost every login, leading to the > >kind of > >situation you experience. I wis

Re: [Dovecot] OpenBSD and too many open files

2007-08-01 Thread Bryan Vyhmeister
On Aug 1, 2007, at 9:52 AM, Timo Sirainen wrote: On 1.8.2007, at 19.43, Quentin Garnier wrote: FWIW, I've stopped using dovecot's kqueue code quite some time ago because it would leak one fd almost every login, leading to the kind of situation you experience. I wish I had the time to debug

Re: [Dovecot] OpenBSD and too many open files

2007-08-01 Thread Timo Sirainen
On 1.8.2007, at 19.43, Quentin Garnier wrote: FWIW, I've stopped using dovecot's kqueue code quite some time ago because it would leak one fd almost every login, leading to the kind of situation you experience. I wish I had the time to debug that, but unfortunately... I thought this happen

Re: [Dovecot] OpenBSD and too many open files

2007-08-01 Thread Bryan Vyhmeister
On Aug 1, 2007, at 9:41 AM, Timo Sirainen wrote: You didn't say which process got the "too many files" error, but usually it's the Dovecot master process. Could you show the exact error message so I can be sure? Here you showed only imap, imap- login and pop3-login processes, not dovecot pro

Re: [Dovecot] OpenBSD and too many open files

2007-08-01 Thread Quentin Garnier
On Wed, Aug 01, 2007 at 09:36:49AM -0700, Bryan Vyhmeister wrote: > On Aug 1, 2007, at 9:25 AM, Quentin Garnier wrote: > > >Sounds more like a file descriptor leak. Check fstat output so see > >what > >kind of descriptors are leaked, how fast, etc. > > Thank you for your quick response. Unfort

Re: [Dovecot] OpenBSD and too many open files

2007-08-01 Thread Timo Sirainen
On 1.8.2007, at 19.36, Bryan Vyhmeister wrote: On Aug 1, 2007, at 9:25 AM, Quentin Garnier wrote: Sounds more like a file descriptor leak. Check fstat output so see what kind of descriptors are leaked, how fast, etc. Thank you for your quick response. Unfortunately, I restarted dovecot

Re: [Dovecot] OpenBSD and too many open files

2007-08-01 Thread Bryan Vyhmeister
On Aug 1, 2007, at 9:25 AM, Quentin Garnier wrote: Sounds more like a file descriptor leak. Check fstat output so see what kind of descriptors are leaked, how fast, etc. Thank you for your quick response. Unfortunately, I restarted dovecot this morning and so this probably isn't very help

Re: [Dovecot] OpenBSD and too many open files

2007-08-01 Thread Quentin Garnier
On Wed, Aug 01, 2007 at 09:19:11AM -0700, Bryan Vyhmeister wrote: > I posted some questions a few months back and received lots of great > help in getting my dovecot/postfix/LDAP setup working. Initially, I > ran into the pipe failed too many open files error. I am running this > setup on Ope