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

Re: Too many open files in system



On Tue, Dec 02, 2003 at 02:37:16PM +0100, Mario Vittorio Guenzi wrote:
> per prima cosa grazie della risposta
> 
> > Guarda cosa dice /proc/sys/fs/file-nr
> 
> mi dice testualmente
> 8192  6930  8192

e mi sa che sei un po' pieno...

Cisto da linux/Documentation/sysctl/fs.txt:

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.

Il mio  file-nr dice: 433 17  104851, quindi come numero  massimo (terzo
valore, che ritrovi anche in file-max e che puoi modificare) sono ben al
di sopra di te. Prova ad aumentarli, e  se non è per i file prova vedere
gli inode. Certo che è un po'  strano forse che ti ritrovi con 6930 file
aperti e un picco che li ha usati tutti... Cosa fa la macchina?

-- 
Non c'è più forza nella normalità, c'è solo monotonia.

Attachment: pgpacO9hc5fNj.pgp
Description: PGP signature


Reply to: