[Gllug] Increasing file descriptors
John Hearns
john.hearns at cern.ch
Thu Sep 12 13:58:28 UTC 2002
On Thu, 2002-09-12 at 15:18, Martyn Drake wrote:
> On Thu, 12 Sep 2002 14:24:10 +0200 (CEST) John HEARNS wrote:
>
> > Edit the file /etc/sysctl.conf and add the line
> > fs.file-max = 32786
> >
> > /sbin/sysctl -a tells you what else can be set
> >
> > On a reboot, the script rc.sysinit should set the values,
> > or you can do it immediately by /sbin/sysctl -p /etc/sysctl.conf
>
> Thanks for the info, John. Unfortunately that doesn't appear to have
> done the trick:-
>
(Smarmy tone definitely switched OFF)
You do realise that you are setting two different things here?
The limit in /proc is a system-wide limit for the total number
of file handles
BTW, I found this a useful explanation
http://www.cs.tau.ac.il/~didi/file-nr.html
So have a look at the numbers in file-nr on your systems too.
The security/limits.conf is a per processor limit.
ulimit -a reports the open files limit of 1024,
after I edited limits.conf too so I think things are OK.
You just can't set it to 'unlimited' after setting limits.
A passing guru please enlighten us?
> [root at akutan fs]# cat /proc/sys/fs/file-max
> 32786
> [root at akutan fs]# ulimit -a
> core file size (blocks) 0
> data seg size (kbytes) unlimited
> file size (blocks) unlimited
> max locked memory (kbytes) unlimited
> max memory size (kbytes) unlimited
> open files 1024
> pipe size (512 bytes) 8
> stack size (kbytes) 8192
> cpu time (seconds) unlimited
> max user processes 4095
> virtual memory (kbytes) unlimited
> [root at akutan fs]# ulimit -n unlimited
> bash: ulimit: cannot modify limit: Operation not permitted
>
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list