All of lore.kernel.org
 help / color / mirror / Atom feed
* why does /proc/sys/fs/file-nr not match total of /proc/<pid>/fd entries?
@ 2011-01-20 20:39 Chris Friesen
  0 siblings, 0 replies; only message in thread
From: Chris Friesen @ 2011-01-20 20:39 UTC (permalink / raw)
  To: linux-kernel


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-01-20 20:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-20 20:39 why does /proc/sys/fs/file-nr not match total of /proc/<pid>/fd entries? Chris Friesen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.