Re: Help! How to increase _PROCESSES_ ?

Jon (LordShroom@hempseed.com)
Tue, 02 Feb 1999 12:28:59 -0500


Arvind Sankar wrote:
>
> On Mon, Feb 01, 1999 at 09:23:38PM -0500, KazBluz2@aol.com wrote:
> >
> > Hello,
> >
> > My webserver is under super heavy load (about 250 simultaneous connections at
> > any given time). I am very frequently getting:
> >
> > 'couldnt spawn child process erorrs' when cgi scripts are attempted to be ran,
> > and overall server speed is bogged down.
> >
> > I have already adjusted ND_OPEN and ND_FILES to increase file descriptors,
> > turned of all web logging (that helped for a few mins), but I think the
> > problem is with processes.. I was told that I need to hack the kernel to open
> > up allowable processes as well.. but I can not for the life of me find a doc
> > that sais how to do it for linux.
> >
> > Here are my systems specs:
> > P2-450mhz with 384megs of ram.
> >
> > Output from Top:
> > ---------------------
> > 6:22pm up 2 days, 50 min, 1 user, load average: 3.18, 1.91, 2.54
> > 233 processes: 232 sleeping, 1 running, 0 zombie, 0 stopped
> > CPU states: 5.7% user, 10.2% system, 0.0% nice, 84.4% idle
> > Mem: 64168K av, 63408K used, 760K free, 73792K shrd, 836K buff
> > Swap: 261496K av, 19052K used, 242444K free 5120K cached
> >
> > Output from vmstat:
> > -----------------------------
> >
> > procs memory swap io system cpu
> > r b w swpd free buff cache si so bi bo in cs us sy id
> > 0 8 0 28960 616 1220 12076 91 28 25 27 15 0 3 4 93
> >
> >
> > If anyone knows how to increase the amount of processes PLEASE let me know.
>
> increase NR_TASKS in /usr/src/linux/include/linux/tasks.h.
>
> default is 512, so u shouldn't bum out with only 233 processes, though.
> Have you set the max number of server processes/max number of connections
> in your http server's config?
>
> -- arvind
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/

It doesn't look like you are using all of your 384 megs of ram, you
should add
append "mem = 384m" to your /etc/lilo.conf file.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/