lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Thu, 20 Jan 2011 14:39:39 -0600
From:	Chris Friesen <chris.friesen@...band.com>
To:	linux-kernel@...r.kernel.org
Subject: why 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@...band.com
www.genband.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ