On Wed, 29 Nov 2000, Adrian Hunt wrote:
> Is there a way to get more file handles in the system?
> I.e., can someone point me to a place in the kernel
> code to increase the total number of available file
> handles?
>
> NOTE: This is _not_ the 256 file handle per process
> problem. It is instead a system-wide problem having
> to do with open file handles at the kernel level, not
> the process level.
The settings you want are in /proc/sys/fs/file-max and
/proc/sys/fs/inode-max. By default they're 4096 and 7680 respectivly. To
increase them just echo the number you want into the file...
echo 8192 > /proc/sys/fs/file-max
echo 32768 > /proc/sys/fs/inode-max
... for instance. You can do that at run time - no need to reboot or
anything it will take effect immediatly.
Redhat provide a fairly simple way to set this automatically at boot time.
Add the lines...
# Set maximum file and inodes
fs.file-max = 8192
fs.inode-max = 32768
... to /etc/sysctl.conf and they'll be set each time you boot up. An recent
releases anyway - i'm not sure when sysctl.conf was introduced to redhat.
I as understand it file are the number of acutal file handles that can be
open but inode is the number of file descripters of all kinds.. pipes and
sockets ect ect. At least... i think so. :/ Also of interesy to you may be
/proc/sys/fs/file-nr and /proc/sys/fs/inode-nr. This shows the highwater
mark, the current count and the max.
M.
--
WebCentral Pty Ltd Australia's #1 Internet Web Hosting Company
Level 1, 96 Lytton Road. Network Operations - Systems Engineer
PO Box 4169, East Brisbane. phone: +61 7 3249 2583
Queensland, Australia. pgp key id: 0x900E515F
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list