Red Hat Bugzilla – Bug 133466
iostat leaks file descriptors
Last modified: 2007-11-30 17:07:04 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.4.3)
Description of problem:
Leaving "iostat X" running for a long time finally ends with an error
message about lack of file descriptors.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run "iostat 1"
2. Go for lunch and come back
Actual Results: Iostat has died with a "Too many open files" message
Expected Results: Iostat should keep on writing a message each second
about I/O statistics.
Doing an "lsof -p NNN" on the running iostat reveals it opens
/proc/stat for each loop, but never closes it.
Limiting the number of file descriptors allowed (ulimit -n X/limit
descriptors X) is a faster way to trigger the problem.
Hmm, just found this was already reported. I must have made some
mistake when I searched for it before reporting.
*** This bug has been marked as a duplicate of 131878 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.