* task table full in DU 4.0D
@ 2000-11-07 5:00 andy thomas
2000-11-07 5:00 ` waco_johnny_d
0 siblings, 1 reply; 12+ messages in thread
From: andy thomas @ 2000-11-07 5:00 UTC (permalink / raw)
Yesterday one of our Alpha servers, running DU 4.0D and samba 2.0.7
and used as a file server for both Windows NT and Linux users, slowed up
for about 15 minutes as about 130 users were more or less simultaneously
logging out/logging in to Windows. /var/adm/messages reported:
Nov 6 15:02:05 lynx vmunix: task table is full
followed by several more messages saying last message repeated anything
from 26 to 53 times. The samba log was full of panic messages.
Am I right in thinking that the task_max keyword needs to be increased in
the kernel configuration to support this many simulataneous tasks? The DU
documentation says that when the kernel reaches the task_max limit, the
log will have the entry:
pid: table is full
but it doesn't mention the message I saw in my log.
Might I also have to increase the maxuthreads and maxuprc keywords as well
to accomodate a large number of samba processes?
Thanks in advance for any help,
Andy
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: task table full in DU 4.0D
2000-11-07 5:00 task table full in DU 4.0D andy thomas
@ 2000-11-07 5:00 ` waco_johnny_d
2000-11-07 5:00 ` andy thomas
2000-11-07 5:00 ` Robert Mulley
0 siblings, 2 replies; 12+ messages in thread
From: waco_johnny_d @ 2000-11-07 5:00 UTC (permalink / raw)
Hi Andy,
Sounds as though you're just plain out of physical memory. You might be
able to free some up by reducing the size of the AdvFS cache and the
size of the UBC, if you absolutely can't possibly do anything about the
workload hitting the system. Post the output of the following commands
here and I'll try to assist further.
sysconfig -q vm | grep ubc
sysconfig -q advfs | grep -i cache
Best regards,
WJD
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: task table full in DU 4.0D
2000-11-07 5:00 ` waco_johnny_d
@ 2000-11-07 5:00 ` andy thomas
2000-11-08 5:00 ` waco_johnny_d
2000-11-07 5:00 ` Robert Mulley
1 sibling, 1 reply; 12+ messages in thread
From: andy thomas @ 2000-11-07 5:00 UTC (permalink / raw)
On Tue, 7 Nov 2000 waco_johnny_d@my-deja.com wrote:
> Hi Andy,
>
> Sounds as though you're just plain out of physical memory. You might be
> able to free some up by reducing the size of the AdvFS cache and the
> size of the UBC, if you absolutely can't possibly do anything about the
> workload hitting the system. Post the output of the following commands
> here and I'll try to assist further.
>
> sysconfig -q vm | grep ubc
ubc-minpercent = 10
ubc-maxpercent = 100
ubc-borrowpercent = 20
ubc-maxdirtywrites = 5
ubc-nfsloopback = 0
vm-ubcpagesteal = 24
vm-ubcdirtypercent = 10
vm-ubcseqstartpercent = 50
vm-ubcseqpercent = 10
vm-ubcbuffers = 256
> sysconfig -q advfs | grep -i cache
AdvFS isn't implemented on this system, which has 64 MB physical memory.
This might be the problem after all?
thanks,
Andy
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: task table full in DU 4.0D
2000-11-07 5:00 ` andy thomas
@ 2000-11-08 5:00 ` waco_johnny_d
0 siblings, 0 replies; 12+ messages in thread
From: waco_johnny_d @ 2000-11-08 5:00 UTC (permalink / raw)
Hi Andy,
Yes, 64MB is really pushing it. That's the root cause of the problem.
However, I'd make the following changes to the UBC anyway, if for
nothing else than good tuning practice. You're not going for
performance anyway with that little memory. If at some later point you
find you're waiting on a disk and that the situation might be improved
with more buffer space AND you have the free physical memory to do that,
you can always increase these parameters slightly.
> ubc-minpercent = 10
Drop to 1.
> ubc-maxpercent = 100
Drop to 4.
> ubc-borrowpercent = 20
Drop to 2.
> vm-ubcseqstartpercent = 50
Drop to 3.
> vm-ubcseqpercent = 10
Drop to 2.
Note that I'm sliding the values of these parameters down as a group.
This is important if you want the VM subsystem to work as designed.
Hope the memory upgrade helps!
WJD
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: task table full in DU 4.0D
2000-11-07 5:00 ` waco_johnny_d
2000-11-07 5:00 ` andy thomas
@ 2000-11-07 5:00 ` Robert Mulley
2000-11-08 5:00 ` andy thomas
1 sibling, 1 reply; 12+ messages in thread
From: Robert Mulley @ 2000-11-07 5:00 UTC (permalink / raw)
waco_johnny_d@my-deja.com wrote:
> Hi Andy,
>
> Sounds as though you're just plain out of physical memory. You might be
> able to free some up by reducing the size of the AdvFS cache and the
> size of the UBC, if you absolutely can't possibly do anything about the
> workload hitting the system. Post the output of the following commands
> here and I'll try to assist further.
>
> sysconfig -q vm | grep ubc
> sysconfig -q advfs | grep -i cache
>
> Best regards,
> WJD
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
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
2. The most likely fix is that your MAXUSERS is set too low in your kernel
config file.
So cd to /sys/conf
vi your config file LYNX (?) and find the line maxusers.
Double this or set to something like 1024. Lots of other memory and process
attributes are derived from this value.
Rebuild the kernel, reboot the machine. Should handle more load.
Robert Mulley
Unix Admin
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: task table full in DU 4.0D
2000-11-07 5:00 ` Robert Mulley
@ 2000-11-08 5:00 ` andy thomas
2000-11-09 5:00 ` Raymond Doetjes
0 siblings, 1 reply; 12+ messages in thread
From: andy thomas @ 2000-11-08 5:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: task table full in DU 4.0D
2000-11-08 5:00 ` andy thomas
@ 2000-11-09 5:00 ` Raymond Doetjes
2000-11-09 5:00 ` Robert Mulley
2000-11-10 5:00 ` andy thomas
0 siblings, 2 replies; 12+ messages in thread
From: Raymond Doetjes @ 2000-11-09 5:00 UTC (permalink / raw)
To: andy.thomas
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: task table full in DU 4.0D
2000-11-09 5:00 ` Raymond Doetjes
@ 2000-11-09 5:00 ` Robert Mulley
2000-11-10 5:00 ` andy thomas
2000-11-10 5:00 ` andy thomas
1 sibling, 1 reply; 12+ messages in thread
From: Robert Mulley @ 2000-11-09 5:00 UTC (permalink / raw)
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.
Increase the value of maxusers in your kernel config file. This is the file
/sys/conf/<HOSTNAME>.
doconfig -c HOSTNAME
cp /vmunix /vmunix.old
cp /sys/HOSTNAME/vmunix /
reboot system
This will solve your problem.
Robert.
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: task table full in DU 4.0D
2000-11-09 5:00 ` Robert Mulley
@ 2000-11-10 5:00 ` andy thomas
2000-11-13 1:40 ` Andrew Moar
0 siblings, 1 reply; 12+ messages in thread
From: andy thomas @ 2000-11-10 5:00 UTC (permalink / raw)
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/<HOSTNAME>.
> 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
>
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: task table full in DU 4.0D
2000-11-10 5:00 ` andy thomas
@ 2000-11-13 1:40 ` Andrew Moar
2000-11-13 5:00 ` andy thomas
0 siblings, 1 reply; 12+ messages in thread
From: Andrew Moar @ 2000-11-13 1:40 UTC (permalink / raw)
In article <Pine.LNX.4.20.0011101543450.10135-100000@anahata.ma.ic.ac.uk>,
andy thomas <andy@ic.ac.uk> writes:
>> Increase the value of maxusers in your kernel config file. This is the file
>> /sys/conf/<HOSTNAME>.
>> 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).
Robert is right (he's Australian, of course he's right!). Increase maxusers
and you'll be happy. Or you could increase task-max. From the DU4.0D docs:
The task-max attribute specifies the maximum number of tasks that can run
simultaneously. The default value is 20 + 8 * maxusers.
So if you had the default maxusers of 32, you'd get a maximum of 276 tasks.
With 200 Samba connections, you could easily reach this limit.
So do what Robert says, you'll be glad you did...
--
Andrew Moar : Ph +61 3 9479 1505 email A.Moar@latrobe.edu.au
Unix Environment Specialist, Information Technology Services
La Trobe University, Bundoora
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: task table full in DU 4.0D
2000-11-13 1:40 ` Andrew Moar
@ 2000-11-13 5:00 ` andy thomas
0 siblings, 0 replies; 12+ messages in thread
From: andy thomas @ 2000-11-13 5:00 UTC (permalink / raw)
On 13 Nov 2000, Andrew Moar wrote:
> In article <Pine.LNX.4.20.0011101543450.10135-100000@anahata.ma.ic.ac.uk>,
> andy thomas <andy@ic.ac.uk> writes:
>
> >> Increase the value of maxusers in your kernel config file. This is the file
> >> /sys/conf/<HOSTNAME>.
> >> 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).
>
> Robert is right (he's Australian, of course he's right!). Increase maxusers
> and you'll be happy. Or you could increase task-max. From the DU4.0D docs:
>
> The task-max attribute specifies the maximum number of tasks that can run
> simultaneously. The default value is 20 + 8 * maxusers.
>
> So if you had the default maxusers of 32, you'd get a maximum of 276 tasks.
> With 200 Samba connections, you could easily reach this limit.
I increased maxusers from 32 to 128 and maxuprc to 128 yesterday (Sunday)
and there have been no problems so far. I'm now awaiting a memory upgrade
to take it from the present 64 MB to 192 MB.
> So do what Robert says, you'll be glad you did...
Thanks for your suggestions!
Andy
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: task table full in DU 4.0D
2000-11-09 5:00 ` Raymond Doetjes
2000-11-09 5:00 ` Robert Mulley
@ 2000-11-10 5:00 ` andy thomas
1 sibling, 0 replies; 12+ messages in thread
From: andy thomas @ 2000-11-10 5:00 UTC (permalink / raw)
To: Raymond Doetjes
On Thu, 9 Nov 2000, 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.
I will look for the filehandle keyword and double it then - presumably
this will be in /usr/sys/conf/mysys along with the other parameters?
> 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.
I've ordered a 128 MB RAM upgrade for this system so it will soon have 192
MB.
Thanks for your suggestions - I'm taking the server down on Sunday
afternoon (November 12th) to install the latest DU patch kit and will
reconfigure the kernel at the same time.
regards,
Andy
> 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
>
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2000-11-13 5:00 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-07 5:00 task table full in DU 4.0D andy thomas
2000-11-07 5:00 ` waco_johnny_d
2000-11-07 5:00 ` andy thomas
2000-11-08 5:00 ` waco_johnny_d
2000-11-07 5:00 ` Robert Mulley
2000-11-08 5:00 ` andy thomas
2000-11-09 5:00 ` Raymond Doetjes
2000-11-09 5:00 ` Robert Mulley
2000-11-10 5:00 ` andy thomas
2000-11-13 1:40 ` Andrew Moar
2000-11-13 5:00 ` andy thomas
2000-11-10 5:00 ` andy thomas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox