← Back to team overview

sslug-teknik team mailing list archive

Re: Max. åbne filer

 

In <3.0.5.32.19990304144152.00b50210@xxxxxxxxxxxxx> "Uffe R. B. Andersen" <urb@xxxxxxxx> writes:

>At 13:54 04-03-99 +0100, you wrote:
>>/proc/sys/fs/file-nr
>>/proc/sys/fs/file-max

>I RH5.2 er det godtnok /proc/sys/kernel/file-*, men ellers... Hvad er så
>hvad? Eller rettere, hvad er file-nr en angivelse af? På to forskellige
>RH5.2 maskiner, begge kernel 2.0.36, har file-nr ikke samme værdi - angiver
>den det faktiske antal af åbne filer?

Fra Linux 2.2 sourcen (Documentation/sysctl/fs.txt, helt præcist):
file-max & file-nr:

The kernel allocates file handles dynamically, but as yet it
doesn't free them again.

The value in file-max denotes the maximum number of file-
handles that the Linux kernel will allocate. When you get lots
of error messages about running out of file handles, you might
want to increase this limit.

The three values in file-nr denote the number of allocated
file handles, the number of used file handles and the maximum
number of file handles. When the allocated file handles come
close to the maximum, but the number of actually used ones is
far behind, you've encountered a peak in your usage of file
handles and you don't need to increase the maximum.

-- 
Henrik Storner     | "Software engineering is a race between engineers 
<storner@xxxxxxxx> |  who try to create foolproof software and the 
                   |  universe which is trying to create bigger fools.
                   |  So far, the universe is winning..."


References