Hello SLUGgers: 

I've got a Linux system with too many file handles being used.

/proc/sys/fs/file-nr reports about 7800 open files.
The 'lsof' command only reports only 600 files open.

Can anyone suggest how to track down the process or bug at fault here?
 
Regards,
Sonam Chauhan


------------------------------Contents of /proc/...------------------------------
[root@svr1 schauhan]# cat /proc/sys/fs/file-max
8192    
 ^^^^This is the max. num of file handles

[root@svr1 schauhan]# cat /proc/sys/fs/file-nr
8192    7774    8192
        ^^^^This is the number of file handles used.
---------------------------------------------------------------------------------
Doco from: http://www.linuxhq.com/kernel/v2.3/doc/filesystems/proc.txt.html

 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.
----------------------------------------------------------------------------------


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to