* Per user limits
@ 1998-08-30 17:19 Paul Tomblin
0 siblings, 0 replies; 5+ messages in thread
From: Paul Tomblin @ 1998-08-30 17:19 UTC (permalink / raw)
To: axp-list
I know this should be sent to a general Linux list rather than the Alpha one,
but can anybody tell me where I can bump up the 256 process/user limit?
ulimit won't let me raise it. I ask because I'm getting hit by the HIPCRIME
Usenet "newgroup" spam, and INN spawns off another copy of a shell script to
deal with each one. When this happens, the user "news" runs out of processes,
and stuff stops working (like innwatch!). (BTW: The load average has been
going up over 100 during these attacks, and Linux has kept chugging along,
slowly)
--
Paul Tomblin, ptomblin@xcski.com.
"An appointment is an engagement to see someone, while a morningstar is a
large lump of metal used for viciously crushing skulls. It is important not
to confuse the two, isn't it, Mr. --?" - Terry Pratchett
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Per user limits
@ 1998-08-30 17:45 Greg Lindahl
1998-08-31 9:45 ` Chris Brown
0 siblings, 1 reply; 5+ messages in thread
From: Greg Lindahl @ 1998-08-30 17:45 UTC (permalink / raw)
To: axp-list
> I know this should be sent to a general Linux list rather than the Alpha one,
> but can anybody tell me where I can bump up the 256 process/user
> limit?
/usr/src/linux/include/linux/tasks.h
And then rebuild your kernel.
-- g
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Per user limits
1998-08-30 17:45 Greg Lindahl
@ 1998-08-31 9:45 ` Chris Brown
1998-08-31 14:18 ` Paul Tomblin
0 siblings, 1 reply; 5+ messages in thread
From: Chris Brown @ 1998-08-31 9:45 UTC (permalink / raw)
To: axp-list
On Sun, 30 Aug 1998, Greg Lindahl wrote:
> > I know this should be sent to a general Linux list rather than the Alpha one,
> > but can anybody tell me where I can bump up the 256 process/user
> > limit?
>
> /usr/src/linux/include/linux/tasks.h
>
> And then rebuild your kernel.
Changing the per user limit is fairly transparent, but if you
change the overall task limit (most of our larger servers get changed to
2048 system, 512 user, and 32reserved) you *must* recompile procps.
tasks.h is used to generate one of the structs that things like
top and ps use for process display. If you do not recompile procps, top,
ps, etc will segfault as soon as the # of procs goes above 512.
Note: Intel hardware has an inherant TSS slot limit of 4096, and the
kernel needs some of these, do not go beyond 400 unless you know exactly
what you are doing. (In fact going beyond 2048 is almost always silly, as
systems fast enuf to handle > 3072 procs are very rare (mainly an IO issue
rather than CPU)). I do not know the hard limit (assuming the Alpha uses
a hardware timeslot setup) for the Alphas, none of mine are fast enough to
need the soft limits changed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Per user limits
@ 1998-08-31 12:37 Greg Lindahl
0 siblings, 0 replies; 5+ messages in thread
From: Greg Lindahl @ 1998-08-31 12:37 UTC (permalink / raw)
To: axp-list
> (In fact going beyond 2048 is almost always silly, as
> systems fast enuf to handle > 3072 procs are very rare (mainly an IO issue
> rather than CPU)).
Um, even a 386 can handle 3072 sleeping processes. You never know how
people are going to use their systems.
But thanks for the info about procps.
-- g
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Per user limits
1998-08-31 9:45 ` Chris Brown
@ 1998-08-31 14:18 ` Paul Tomblin
0 siblings, 0 replies; 5+ messages in thread
From: Paul Tomblin @ 1998-08-31 14:18 UTC (permalink / raw)
To: axp-list
Quoting Chris Brown (cbrown@alaska.net):
> what you are doing. (In fact going beyond 2048 is almost always silly, as
> systems fast enuf to handle > 3072 procs are very rare (mainly an IO issue
> rather than CPU)). I do not know the hard limit (assuming the Alpha uses
> a hardware timeslot setup) for the Alphas, none of mine are fast enough to
> need the soft limits changed.
Well, in my case I was bumping into the default limit when I had 120+ shell
scripts (/usr/lib/news/bin/control/newgroup) calling "lockfile" to wait for
their turn to execute. The 256 processes were essentially sleeping for 30
seconds, looking to see that the given file was owned by another process, and
going to sleep again.
newgroup doesn't normally call lockfile, but when 500 newgroup commands come
in on your newsfeed at once (as was happening this weekend), you can either
deal with load averages in the 100 to 200 range, or you can implement a
locking mechanism like I did.
--
Paul Tomblin, ptomblin@xcski.com.
"An appointment is an engagement to see someone, while a morningstar is a
large lump of metal used for viciously crushing skulls. It is important not
to confuse the two, isn't it, Mr. --?" - Terry Pratchett
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1998-08-31 14:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-30 17:19 Per user limits Paul Tomblin
-- strict thread matches above, loose matches on Subject: below --
1998-08-30 17:45 Greg Lindahl
1998-08-31 9:45 ` Chris Brown
1998-08-31 14:18 ` Paul Tomblin
1998-08-31 12:37 Greg Lindahl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox