2
# sysctl -w fs.file-nr=131072
error: permission denied on key 'fs.file-nr'

Same issue when I edit /etc/sysctl.conf and try sysctl -p. Any reason why I cannot edit this value?

I am on CentOS 6.5

  • What user are you using, root? Check if that file is immutable with lsattr filename – Gregg Leventhal Dec 18 '13 at 3:12
  • Yes, I am root. Where would I find fs.file-nr? – Jason Dec 18 '13 at 3:28
2

fs.file-nr represents the number of allocated file handles, the number of allocated but unused ones, and the maximum number of file handles, which is read-only.

However the third field can be modified through fs.file-max instead.

# sysctl -w fs.file-max=131072

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.