Re: open files, super-newbie-question

2000-08-29 Thread John Abreau
On Tue, 29 Aug 2000, Derek Martin wrote: > It's more a philosophy/history thing... maybe 2 factors at work. On older > Unix kernels you don't change parameters of a running system. Linux can > do it quite easily but I think there's still a stigma which says if ya > gotta muck with parameters, do

Re: open files, super-newbie-question

2000-08-28 Thread Derek Martin
Today, Patrick J. O'Rourke gleaned this insight: > > > You can do it any time, but as a practical matter you don't generally > > change this value once you figure out what you need it to be, and you > > generally will always need it to be set to that value, so in general it's > > something you'd

Re: open files, super-newbie-question

2000-08-28 Thread Patrick J. O'Rourke
> You can do it any time, but as a practical matter you don't generally > change this value once you figure out what you need it to be, and you > generally will always need it to be set to that value, so in general it's > something you'd want to do at boot time. Right. I thought that Bruce was

Re: open files, super-newbie-question

2000-08-28 Thread Derek Martin
Today, Patrick J. O'Rourke gleaned this insight: > > For the whole system, its very easy: > > > > echo 4096 >/proc/sys/fs/file-max > > You can also use the sysctl(8) command: > > sysctl -w fs.file-max=131072 > > > Note that you'll have to do that at boot-time to (probably in > > /et

Re: open files, super-newbie-question

2000-08-28 Thread Bruce Dawson
In the past, I've had to do this for turnkey servers that would occasionally, but undesirably run out of file handles during their busiest time. Since modifying /proc/... doesn't physically change anything on the filesystem (like the kernel image), the change disappears on the next boot. Putting

Re: open files, super-newbie-question

2000-08-28 Thread Patrick J. O'Rourke
> For the whole system, its very easy: > > echo 4096 >/proc/sys/fs/file-max You can also use the sysctl(8) command: sysctl -w fs.file-max=131072 > Note that you'll have to do that at boot-time to (probably in > /etc/rc.d/rc.local). Just curious, but why would you have to do thi

Re: open files, super-newbie-question

2000-08-28 Thread Derek Martin
Today, Bruce Dawson gleaned this insight: > For the whole system, its very easy: > > echo 4096 >/proc/sys/fs/file-max > > Note that you'll have to do that at boot-time to (probably in > /etc/rc.d/rc.local). > > However, if you want to increase the per-process limit, its more > complex -

Re: open files, super-newbie-question

2000-08-28 Thread Bruce Dawson
For the whole system, its very easy: echo 4096 >/proc/sys/fs/file-max Note that you'll have to do that at boot-time to (probably in /etc/rc.d/rc.local). However, if you want to increase the per-process limit, its more complex - you have to rebuild glibc after changing the appropriate va

Re: open files, super-newbie-question

2000-08-28 Thread Derek Martin
Today, Diego gleaned this insight: > Dear Gurus, > > I am using RH 6.2 & 6.2: I would like to know how to increase the > 'open files limit' fo the whole system, not per user bases, sorry very > newbie question. The ulimit -a tell me 1024 open files. Thanks for > your time. Diego Mezzera. If you

Re: open files, super-newbie-question

2000-08-28 Thread Steven W. Orr
You need to set it using PAM. The change will go into /etc/security/limits.conf Have fun. -- -Time flies like the wind. Fruit flies like a banana. [EMAIL PROTECTED] -Stranger things have happened but none stranger than this. Steven W. Orr- Does your driver's license say Organ Donor?Black holes

open files, super-newbie-question

2000-08-28 Thread Diego
Dear Gurus,   I am using RH 6.2 & 6.2: I would like to know how to increase the 'open files limit' fo the whole system, not per user bases, sorry very newbie question. The ulimit -a tell  me 1024 open files. Thanks for your time. Diego Mezzera.