From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,94c5656d85e5833 X-Google-Attributes: gidfa528,public From: andy thomas Subject: Re: task table full in DU 4.0D Date: 2000/11/10 Message-ID: #1/1 X-Deja-AN: 692061541 References: <8u99hj$jev$1@nnrp1.deja.com> <3A08322C.5EBC001@gnsconsulting.com.au> <3A0A9134.D5FA1C16@objectplus.nl> <3A0A9CDA.5F694E1F@gnsconsulting.com.au> X-Sender: andy@anahata.ma.ic.ac.uk Content-Type: TEXT/PLAIN; charset=US-ASCII X-Complaints-To: usenet@jura.cc.ic.ac.uk X-Trace: jura.cc.ic.ac.uk 973871214 17280 155.198.192.57 (10 Nov 2000 15:46:54 GMT) Organization: Imperial College, London, UK Mime-Version: 1.0 Reply-To: andy.thomas@ic.ac.uk NNTP-Posting-Date: 10 Nov 2000 15:46:54 GMT Newsgroups: comp.unix.tru64 On Thu, 9 Nov 2000, Robert Mulley wrote: > Alright, I've got to put an end to the speculation. Sure more memory helps but it > is not the solution. It is not filehandles either, default number of file handles > is 4096, this means a possible 4096 filehandles per process. New samba process, new > number of file handles. The problem is solved by point Number 2 that I made in my > reply. I've ordered some more RAM anyway as 64MB for such a busy server isn't much! > Increase the value of maxusers in your kernel config file. This is the file > /sys/conf/. > doconfig -c HOSTNAME > cp /vmunix /vmunix.old > cp /sys/HOSTNAME/vmunix / > reboot system > > This will solve your problem. Will it? Samba spawns a fresh process for each user's connection but they all run as root, not as the user's ID. So even with some 200 samba connections open, there are still very few user processes on the system (mainly mail, httpd server and so on). Andy > Raymond Doetjes wrote: > > > It could well be the number of filehandles configured in your kernel. > > You need to push them to the limit. Every samba process uses 3 filehandles (if > > I remember correctly). And evrey user forks of another SambA instance. > > > > I don't have my Alpha here in reach but when you find the kernel parameters > > than you will be able to see the amount of file handles. Double them and you > > are out of the problems. > > > > And memory is certainly not the problem when you have enough viirtual memory. > > It does'nt perform that good but it does work. Besides a lot of the memory from > > the samba processes is resident, so the oughts that a complete new instance is > > forked with it's own memory is practically 0. > > > > Raymond > > > > andy thomas wrote: > > > > > On Tue, 7 Nov 2000, Robert Mulley wrote: > > > > > > > I believe the actual problem here is with one of two things. > > > > 1. If the program in question is running as a non-root user then you might > > > > want to check: > > > > max-proc-per-user or max-threads-per-user. in the proc subsystem in > > > > /etc/sysconfigtab > > > > > > The program is samba and is running as root, so is not constrained by the > > > max-proc-by-user and max-threads-per-user parameters. But I'll look at > > > these parameters anyway - the system is a file server and normal users > > > cannot log in interactively, so most of the time there is no-one logged > > > in. As well as sambba, it exports a lot of directories by nfs and at any > > > one time, there will be about 200-300 combined samba/nfs connections. > > > > > > I think I'll put some more RAM in - it's an Alpha PWS 500au by the way. > > > > > > Andy > >