[lkml]   [1996]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: linux equiv for pstat, NIS problems

> We are currently using "ps ax | wc -l" to get
> the process total, but have not yet found a way to count total open files.

Quick and dirty

echo `find /proc/[0-9]* -path '*/fd/*' | wc -l` / \
`cat /proc/sys/kernel/file-max`

 \ /
  Last update: 2005-03-22 13:38    [W:0.017 / U:0.804 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site