[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: file-max is only 4096 with 1 GB mem



Jacob S wrote:
On Mon, 5 Dec 2005 14:20:34 +0100
Dieter Faulbaum <faulbaum@mail.bessy.de> wrote:


I have a small problem under Debian etch with a (vanilla) kernel
2.6.14.3 on a AMD 64 (32-bit) system with 1GB memory:
often I see error messages about running out of file handles.
'cat /proc/sys/fs/file-max' shows: 4096
This seems very sparse for 1GB memory.

Looking at Documentation/proc.txt I found this.

...
The value  in  file-max  denotes  the  maximum number of file handles
that the Linux kernel will allocate. When you get a lot of error
messages about running out of file handles, you might want to raise
this limit. The default value is 10% of  RAM in kilobytes.  To  change
it, just  write the new number into the file:
...
# echo 8192 > /proc/sys/fs/file-max

Okay this works, but I don't understand why this value is so small.
Is anyone else here with such a problem and can explain why this
value is so small?
On another computer with etch (but an Intel Pentium 4 CPU) I get
89808, which is what I expect from the docu.


Maybe an obvious question, but have you checked to make sure Debian is
recognizing all of your ram properly? I have an AMD Athlon XP 2200+
(32-bit) with 1GB of ram and /proc/sys/fs/file-max shows 102249.

I have an AMD Athlon Thoroughbred XP 2700+ with 1GB of RAM and file-max shows to be 102757.

The kernel should set this, no? Running 2.6.14-ck6 from:
http://members.optusnet.com.au/ckolivas/kernel/

H



Reply to: