Re: [cgiwrap-users] rlimit nproc
Brought to you by:
nneul
From: Kyle <ky...@cc...> - 2001-12-04 13:27:38
|
> It's a standard O/S facility. See setrlimit man page on your O/S. Um, I can't get that to work in RedHat Linux, Nathan. There is ulimit, but it is set to 'unlimited' by default, which is how my server is setup. To expand on my original question, I want my server unlimited on the number of CGIs it can process. I don't care if it slows down to a snail's pace, I want them ALL to run when called. So, by *NOT* including the --with-rlimit-nproc=XX switch, am I allowing an unlimited number of scripts to be run by CGIWrap? I looked in the configure.h file, but it just seemed to be undefined, as Tuc pointed out. I'm hoping undefined = unlimited. :) -Kyle Nathan Neulinger wrote: > > Well, you ran "./configure"... it did exactly what it's supposed to. None > of those rlimit limit are turned on unless you specfifically request them > to be turned on. > > You need to specify --with-rlimit-nproc or --with-rlimit-nproc=XX > > As far as what it does, it simply issues the setrlimit() system call prior > to executing your script. It's a standard O/S facility. See setrlimit man > page on your O/S. > > -- Nathan > > On Mon, Dec 03, 2001 at 06:41:43PM -0500, Tuc wrote: > > > > > On Mon, Dec 03, 2001 at 05:01:25PM -0500, Tuc wrote: > > > > > > > > > > Here's a code snip from the cgiwrap web site: > > > > > > > > > > --with-rlimit-nproc=COUNT > > > > > limit number of processes with setrlimit > > > > > > > > > > That seems to be the entire documentation on this setting that I can > > > > > find. So, what is the default value if I don't specify COUNT? > > > > > > > > > UNLIMITED from what I can tell. It **LOOKS** like the doco says > > > > 32, but I checked configure and it seems to imply unlimited. > > > > > > I just looked at configure, and it should be 32. At least that is what > > > the source of configure.in says for nproc, but I have not tried it. > > > > > > > From "./configure" > > > > checking for limit rlimit-cpu... none > > checking for limit rlimit-vmem... none > > checking for limit rlimit-as... none > > checking for limit rlimit-fsize... none > > checking for limit rlimit-data... none > > checking for limit rlimit-stack... none > > checking for limit rlimit-core... none > > checking for limit rlimit-rss... none > > checking for limit rlimit-nproc... none > > checking for limit rlimit-nofile... none > > checking for limit rlimit-memlock... none > > > > > > from config.h > > > > /* #undef CONF_USE_RLIMIT_ANY */ > > /* #undef CONF_USE_RLIMIT_AS */ > > /* #undef CONF_USE_RLIMIT_CPU */ > > /* #undef CONF_USE_RLIMIT_VMEM */ > > /* #undef CONF_USE_RLIMIT_FSIZE */ > > /* #undef CONF_USE_RLIMIT_DATA */ > > /* #undef CONF_USE_RLIMIT_STACK */ > > /* #undef CONF_USE_RLIMIT_CORE */ > > /* #undef CONF_USE_RLIMIT_RSS */ > > /* #undef CONF_USE_RLIMIT_NPROC */ > > /* #undef CONF_USE_RLIMIT_NOFILE */ > > /* #undef CONF_USE_RLIMIT_MEMLOCK */ > > > > > > Nathan, can you tell us more what the NPROC actually > > is all about? > > > > Tuc/TTSG Internet Services, Inc. > > ------------------------------------------------------------ > Nathan Neulinger EMail: nn...@um... > University of Missouri - Rolla Phone: (573) 341-4841 > Computing Services Fax: (573) 341-4216 |