lkml.org 
[lkml]   [2011]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectwhy does /proc/sys/fs/file-nr not match total of /proc/<pid>/fd entries?

Someone asked me a question that I couldn't answer, so I'm passing it on
to you.

Why do the values in /proc/sys/fs/file-nr not match up with the value
given by "ls -al /proc/[0-9]*/fd/ | grep '>' | wc -l" ?


For instance, on my desktop /proc/sys/fs/file-nr gives "9728 0
306699" but the other command gives "2894".


Where is the discrepancy coming from?

Thanks,
Chris

--
Chris Friesen
Software Developer
GENBAND
chris.friesen@genband.com
www.genband.com


\
 
 \ /
  Last update: 2011-01-20 21:43    [W:0.028 / U:8.516 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site