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

Solution Verified - Updated -


  • 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


  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content