RE: Winbindd limited by select

2003-02-15 Thread Ken Cross
ECTED] -Original Message- From: Michael Steffens [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 15, 2003 11:46 AM To: Ken Cross Cc: 'Mike Sweet'; 'Multiple recipients of list SAMBA-TECHNICAL' Subject: Re: Winbindd limited by select Ken Cross wrote: > I was suggesting

Re: Winbindd limited by select

2003-02-15 Thread Michael Steffens
Ken Cross wrote: I was suggesting the other way around -- the number of winbindd fd's shouldn't be more than the max # of smbd's (well, maybe a *few* more). But if you are having a system hard limit of 1024 FDs per process, for example, which you can't raise via setrlimit, you could only configu

Re: Winbindd limited by select

2003-02-15 Thread Mike Sweet
Ken Cross wrote: My $0.02... Mike Sweet wrote: Sooo, my recommendations are as follows: 1. Provide a configure option (--with-maxfiles or similar) to configure the upper limit you want to support in SAMBA. 2. Provide a smb.conf option to control the max number of file descri

RE: Winbindd limited by select

2003-02-15 Thread Ken Cross
Cc: 'Mike Sweet'; 'Multiple recipients of list SAMBA-TECHNICAL' Subject: Re: Winbindd limited by select Ken Cross wrote: > My $0.02... > > > Mike Sweet wrote: > >>Sooo, my recommendations are as follows: >> >>1. Provide a configure optio

Re: Winbindd limited by select

2003-02-15 Thread Mike Sweet
Michael Steffens wrote: Mike Sweet wrote: Sooo, my recommendations are as follows: 1. Provide a configure option (--with-maxfiles or similar) to configure the upper limit you want to support in SAMBA. 2. Provide a smb.conf option to control the max number of file descripto

Re: Winbindd limited by select

2003-02-15 Thread Michael Steffens
Ken Cross wrote: My $0.02... Mike Sweet wrote: Sooo, my recommendations are as follows: 1. Provide a configure option (--with-maxfiles or similar) to configure the upper limit you want to support in SAMBA. 2. Provide a smb.conf option to control the max number of file descri

RE: Winbindd limited by select

2003-02-15 Thread Ken Cross
My $0.02... Mike Sweet wrote: > Sooo, my recommendations are as follows: > > 1. Provide a configure option (--with-maxfiles or similar) >to configure the upper limit you want to support in SAMBA. > 2. Provide a smb.conf option to control the max number of >file descriptor

Re: Winbindd limited by select

2003-02-15 Thread Michael Steffens
Mike Sweet wrote: Sooo, my recommendations are as follows: 1. Provide a configure option (--with-maxfiles or similar) to configure the upper limit you want to support in SAMBA. 2. Provide a smb.conf option to control the max number of file descriptors. 3. Provide a defin

Re: Winbindd limited by select

2003-02-15 Thread Mike Sweet
Michael Steffens wrote: ... I'm wondering, basically concerning all platforms, whether this is about the size of fd_set, or about the number of FDs the kernel will actually assign to a process. If the latter one is not limited, wouldn't a single excessive FD consumer impact other processes? Som

RE: Winbindd limited by select

2003-02-15 Thread Ken Cross
ROTECTED]] Sent: Saturday, February 15, 2003 7:39 AM To: David Collier-Brown -- Customer Engineering Cc: [EMAIL PROTECTED]; Ken Cross; 'Multiple recipients of list SAMBA-TECHNICAL' Subject: Re: Winbindd limited by select David Collier-Brown -- Customer Engineering wrote: > Ken Cros

Re: Winbindd limited by select

2003-02-15 Thread Michael Steffens
David Collier-Brown -- Customer Engineering wrote: Ken Cross wrote: #define FD_SETSIZE 2048 /* Max # of winbindd connections */ must occur before the first invocation of . This could be a build option, but it might be much simpler to hard-code it in local.h, which is what I did to fix it. Ca

Re: Winbindd limited by select

2003-02-15 Thread Michael Steffens
Michael Steffens wrote: Ken Cross wrote: There is pretty much a one-to-one correspondence between the number of smbd processes open (i.e. connected users) and winbindd file descriptors (per fstat). Hmm, it may be platform specific. smbd connects winbindd both directly and via NSS. On HP-UX it

Re: Winbindd limited by select

2003-02-13 Thread David Collier-Brown -- Customer Engineering
Ken Cross wrote: > > #define FD_SETSIZE 2048 /* Max # of winbindd connections */ > > > > must occur before the first invocation of . > > > > This could be a build option, but it might be much simpler to hard-code > > it in local.h, which is what I did to fix it. > > > > Can somebody check the imp

Re: Winbindd limited by select

2003-02-13 Thread Michael Steffens
Ken Cross wrote: There is pretty much a one-to-one correspondence between the number of smbd processes open (i.e. connected users) and winbindd file descriptors (per fstat). Hmm, it may be platform specific. smbd connects winbindd both directly and via NSS. On HP-UX it consumes two client pipes

RE: Winbindd limited by select

2003-02-12 Thread Ken Cross
Original Message- From: Esh, Andrew [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 12, 2003 7:34 PM To: 'Martin Pool'; Michael Steffens Cc: Ken Cross; 'Multiple recipients of list SAMBA-TECHNICAL' Subject: RE: Winbindd limited by select Better yet: Have winbindd fork

RE: Winbindd limited by select

2003-02-12 Thread Esh, Andrew
7;Multiple recipients of list SAMBA-TECHNICAL' > Subject: Re: Winbindd limited by select > > > On 12 Feb 2003, Michael Steffens <[EMAIL PROTECTED]> wrote: > > > It's 60 by default after installation, but is tunable (with reboot). > > Maybe hp should se

Re: Winbindd limited by select

2003-02-12 Thread Martin Pool
On 12 Feb 2003, Michael Steffens <[EMAIL PROTECTED]> wrote: > It's 60 by default after installation, but is tunable (with reboot). Maybe hp should sell per-fd licences :-/ > The solution (and this should also work on other platforms) was to > have winbindd housekeep its client connections by shu

Re: Winbindd limited by select

2003-02-12 Thread Tim Potter
On Wed, Feb 12, 2003 at 10:23:14PM +, [EMAIL PROTECTED] wrote: > > Better still why not use poll() instead of select() in the winbindd > > main loop? > > Because not everyone has poll() :-(. Some have poll build on select. > Some people have poll() and it doesn't work So many bugs, so > l

Re: Winbindd limited by select

2003-02-12 Thread jra
On Thu, Feb 13, 2003 at 09:03:54AM +1100, Tim Potter wrote: > On Wed, Feb 12, 2003 at 04:26:21PM -0500, Michael B. Allen wrote: > > > > This is set at compile-time, not run-time. This line: > > > > > > #define FD_SETSIZE 2048 /* Max # of winbindd connections */ > > > > > > must occur before t

Re: Winbindd limited by select

2003-02-12 Thread Tim Potter
On Wed, Feb 12, 2003 at 04:26:21PM -0500, Michael B. Allen wrote: > > This is set at compile-time, not run-time. This line: > > > > #define FD_SETSIZE 2048 /* Max # of winbindd connections */ > > > > must occur before the first invocation of . > > > > This could be a build option, but it mig

RE: Winbindd limited by select

2003-02-12 Thread Ken Cross
Storage Solutions Phone 865.675.4070 ext 31 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Michael B. Allen Sent: Wednesday, February 12, 2003 4:26 PM To: Ken Cross Cc: [EMAIL PROTECTED] Subject: Re: Winbindd limited by select On Wed

Re: Winbindd limited by select

2003-02-12 Thread Michael B. Allen
On Wed, 12 Feb 2003 07:36:19 -0500 "Ken Cross" <[EMAIL PROTECTED]> wrote: > I've run into a problem with winbindd in both 2.2.x and 3.0 where it > just locks up after a while on large, busy networks. > > We finally tracked down the problem to the fact that the C library > "select" function is lim

Re: Winbindd limited by select

2003-02-12 Thread jra
On Wed, Feb 12, 2003 at 07:36:19AM -0500, Ken Cross wrote: > Samba-folk: > > I've run into a problem with winbindd in both 2.2.x and 3.0 where it > just locks up after a while on large, busy networks. > > We finally tracked down the problem to the fact that the C library > "select" function is li

Re: Winbindd limited by select

2003-02-12 Thread Michael Steffens
Hi Ken, Ken Cross wrote: I've run into a problem with winbindd in both 2.2.x and 3.0 where it just locks up after a while on large, busy networks. We finally tracked down the problem to the fact that the C library "select" function is limited by default to 256 file descriptors in NetBSD (1024 in

RE: Winbindd limited by select

2003-02-12 Thread MCCALL,DON (HP-USA,ex1)
ED]] > Sent: Wednesday, February 12, 2003 7:36 > To: 'Multiple recipients of list SAMBA-TECHNICAL' > Subject: Winbindd limited by select > > > Samba-folk: > > I've run into a problem with winbindd in both 2.2.x and 3.0 where it > just locks up after a while

Winbindd limited by select

2003-02-12 Thread Ken Cross
Samba-folk: I've run into a problem with winbindd in both 2.2.x and 3.0 where it just locks up after a while on large, busy networks. We finally tracked down the problem to the fact that the C library "select" function is limited by default to 256 file descriptors in NetBSD (1024 in FreeBSD, 2048