fs.file-max
Hi! ... In a Linux Kernel ...
What can I do to test the FD limit? ... Because, the FD limit is set in /proc/sys/fs/file-max, sample:
echo "2048" > /proc/sys/fs/file-max
ulimit -n 8192
In this case ... the FD limit = 8192 :( ... when the limit should be 2048?
I wrote a perl script for the test ... anybody known a "C" program for test the FD limit?
Thanks ...!
Quoted 11 lines · Federico Edelman Anaya
What can I do to test the FD limit? ... Because, the FD limit is set in
/proc/sys/fs/file-max, sample:echo "2048" >
/proc/sys/fs/file-max
ulimit -n 8192In this case ... the FD limit = 8192 :( ... when the limit should be 2048?
I wrote a perl script for the test ... anybody known a "C" program for test the FD limit?
Hmm, we seem to be missing this test case from the Linux Test Project. I see that dup03 exhausts all FDs and tests dup() for EMFILE. You could easily adapt that test case to a setrlimit() test case.
Signature · 3 lines
Nate Straz [email protected] sgi, inc http://www.sgi.com/ Linux Test Project http://ltp.sourceforge.net/