Why do fs.file-nr and lsof output differ in counting file descriptors?

Solution Verified - Updated -

Issue

  • The lsof output reports a higher number of file descriptors being used when compared to /proc/sys/fs/file-nr.
# sysctl fs.file-nr
fs.file-nr = 187170     0       13631488

# lsof -u someuser | wc -l
193495

Environment

  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.