FYI: I'm using samba 2.0.6 for clearcase interoperation between Unix and NT, and while it works great 99% of the time, I run into a problem whenever I do a complete build on an NT system, which involves compiling ~1500 files. The first 1100 or so are compiled correctly, but then the following errors show up on the NT box: The system cannot open the device or file specified. And the following errors show up in the samba log file: [2000/01/10 17:42:48, 0] lib/doscalls.c:dos_GetWd(461) dos_GetWd: dos_getwd call failed, errno Too many open files ........................repeated hundreds of times .............................. [2000/01/10 17:42:48, 0] smbd/files.c:file_new(85) ERROR! Out of file structures .........................repeated 4 or 5 times ............................. Does anyone have any suggestions on how to get around this? I've tried changing some of the MVFS parameters on the NT side, but that only made it worse. Thanks in advance for any help on this issue! Ozzie, P.S. My smb.conf file looks like this: # Samba config file created using SWAT # from ehecatl (10.5.1.67) # Date: 1999/12/30 14:20:19 # Global parameters [global] workgroup = <OURDOMAIN> netbios name = <MACHINENAME> security = SERVER encrypt passwords = Yes password server = <SERVERNAME> log file = /usr/local/samba/log.%m deadtime = 10 os level = 0 socket options = IPTOS_LOWDELAY TCP_NODELAY wins server = <SERVERNAME> invalid users = @root, @wheel, @bin, @sys, @admin dont descend = /proc,/dev,/usr/vice,/afs dos filetimes = Yes dos filetime resolution = Yes fake directory create times = Yes [homes] comment = Home Directories path = /home/%u read only = No create mask = 0750 browseable = No [local] path = /export/local read only = No [vobstore] path = /vobstore read only = No -------------- next part -------------- HTML attachment scrubbed and removed
OBackus@DigArch.com said:> I'm using samba 2.0.6 for clearcase interoperation between Unix and > NT, and while it works great 99% of the time, I run into a problem > whenever I do a complete build on an NT system, which involves > compiling ~1500 files. The first 1100 or so are compiled correctly, > but then the following errors show up on the NT box:The problem is that one samba process is handling all the files and clearcase/NT is keeping the files open. The default maximum number of open files under Solaris is 1024. You can either: - crank the limit up by using ulimit before starting samba, or - crank down the number of Mnodes on both free lists (we have ours set to 800). Also: OBackus@DigArch.com said:> [vobstore] > path = /vobstore > read only = NoI would add "oplocks = False" to your config. I've also found complaints in the log file about the socket option IPTOS_LOWDELAY being unknown; you might want to remove it just to reduce your log file size. -- Don Koch koch@cognex.com ---- Not speaking for Cognex Corporation.
FYI: Bumping the open file limit to 4096 on the sbd process has taken care of the problem! Many thanks! Ozzie,> -----Original Message----- > From: Donald Koch [mailto:koch@cognex.com] > Sent: Wednesday, January 12, 2000 4:39 PM > To: OBackus@digarch.com > Cc: Multiple recipients of list SAMBA > Subject: Re: Too many open files when using clearcase > > > > OBackus@DigArch.com said: > > I'm using samba 2.0.6 for clearcase interoperation > between Unix and > > NT, and while it works great 99% of the time, I run into a problem > > whenever I do a complete build on an NT system, which involves > > compiling ~1500 files. The first 1100 or so are compiled correctly, > > but then the following errors show up on the NT box: > > The problem is that one samba process is handling all the files and > clearcase/NT is keeping the files open. The default maximum number of > open files under Solaris is 1024. You can either: > > - crank the limit up by using ulimit before starting samba, or > - crank down the number of Mnodes on both free lists > (we have ours set to 800). > > Also: > > > OBackus@DigArch.com said: > > [vobstore] > > path = /vobstore > > read only = No > > I would add "oplocks = False" to your config. I've also found > complaints in the log file about the socket option IPTOS_LOWDELAY > being unknown; you might want to remove it just to reduce your > log file size. > > -- > Don Koch > koch@cognex.com > ---- > Not speaking for Cognex Corporation. > >-------------- next part -------------- HTML attachment scrubbed and removed
> "Backus, Ozzie" wrote: > > FYI: > I'm using samba 2.0.6 for clearcase interoperation between Unix and NT, and while it works > great 99% of the time, I run into a problem whenever I do a complete build on an NT system, > which involves compiling ~1500 files. The first 1100 or so are compiled correctly, but then the following > errors show up on the NT box: > > The system cannot open the > device or file specified. > > And the following errors show up in the samba log file: > > [2000/01/10 17:42:48, 0] lib/doscalls.c:dos_GetWd(461) > dos_GetWd: dos_getwd call failed, errno Too many open files > ........................repeated hundreds of times .............................. > > [2000/01/10 17:42:48, 0] smbd/files.c:file_new(85) > ERROR! Out of file structures > .........................repeated 4 or 5 times ............................. > > Does anyone have any suggestions on how to get around this? I've tried changing some of the MVFS > parameters on the NT side, but that only made it worse. > > Thanks in advance for any help on this issue!Set the "open files" to be a large number (5000) in the shell you use to spawn the smbd. Use the ulimit command to do this. Regards, Jeremy Allison, Samba Team. -- -------------------------------------------------------- Buying an operating system without source is like buying a self-assembly Space Shuttle with no instructions. --------------------------------------------------------