I have checked the result for user kpiserv

[kpiserv@***** ~]$ lsof -u kpiserv |wc -l  


[kpiserv@***** ~]$ ulimit -a  

open files                      (-n) 1024

Why lsof reports a higher number of open files of user than what ulimit says should be allowed?


Open files limit is per process. An user can have multiple processes that total FD count can be greater than open files limit.

From setrlimit(3) man page:

Specifies a value one greater than the maximum file descriptor number that can be opened by this process. Attempts (open(2), pipe(2), dup(2), etc.) to exceed this limit yield the error EMFILE.

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.