* fs.file-max
@ 2001-05-08 10:03 Federico Edelman Anaya
2001-05-08 14:37 ` fs.file-max Nathan Straz
0 siblings, 1 reply; 4+ messages in thread
From: Federico Edelman Anaya @ 2001-05-08 10:03 UTC (permalink / raw)
To: Kernel List
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 ...!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: fs.file-max
2001-05-08 10:03 fs.file-max Federico Edelman Anaya
@ 2001-05-08 14:37 ` Nathan Straz
0 siblings, 0 replies; 4+ messages in thread
From: Nathan Straz @ 2001-05-08 14:37 UTC (permalink / raw)
To: Federico Edelman Anaya; +Cc: Kernel List
On Tue, May 08, 2001 at 10:03:23AM +0000, Federico Edelman Anaya wrote:
> 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?
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.
--
Nate Straz nstraz@sgi.com
sgi, inc http://www.sgi.com/
Linux Test Project http://ltp.sourceforge.net/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: fs.file-max
@ 2001-05-08 14:08 Dan Kegel
2001-05-08 11:32 ` fs.file-max Federico Edelman Anaya
0 siblings, 1 reply; 4+ messages in thread
From: Dan Kegel @ 2001-05-08 14:08 UTC (permalink / raw)
To: fedelman, linux-kernel@vger.kernel.org
Federico Edelman Anaya (fedelman@elsitio.com.ar) wrote:
> 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
That sets the systemwide limit to 2048.
> ulimit -n 8192
That sets the per-process limit (for this process
and its children) to 2048.
> In this case ... the FD limit = 8192 :( ... when the limit should be
> 2048?
No, the two limits are independant (except, obviously, that
that process will reach the systemwide fd limit before it
exhausts its per-process fd limit).
> I wrote a perl script for the test ... anybody known a "C" program for
> test the FD limit?
http://www.kegel.com/dkftpbench/#tuning
- Dan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: fs.file-max
2001-05-08 14:08 fs.file-max Dan Kegel
@ 2001-05-08 11:32 ` Federico Edelman Anaya
0 siblings, 0 replies; 4+ messages in thread
From: Federico Edelman Anaya @ 2001-05-08 11:32 UTC (permalink / raw)
To: Dan Kegel; +Cc: linux-kernel@vger.kernel.org
Dan:
Hi ...
Dan Kegel wrote:
> Federico Edelman Anaya (fedelman@elsitio.com.ar) wrote:
>
> > 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
>
> That sets the systemwide limit to 2048.
Ok ...
>
>
> > ulimit -n 8192
>
> That sets the per-process limit (for this process
> and its children) to 2048.
>
But, my perl script could open 8192 files ... I don't understand exactly
work ... which is the limit of FD? file-max?
>
> > In this case ... the FD limit = 8192 :( ... when the limit should be
> > 2048?
>
> No, the two limits are independant (except, obviously, that
> that process will reach the systemwide fd limit before it
> exhausts its per-process fd limit).
>
> > I wrote a perl script for the test ... anybody known a "C" program for
> > test the FD limit?
>
> http://www.kegel.com/dkftpbench/#tuning
>
> - Dan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-05-08 14:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-08 10:03 fs.file-max Federico Edelman Anaya
2001-05-08 14:37 ` fs.file-max Nathan Straz
-- strict thread matches above, loose matches on Subject: below --
2001-05-08 14:08 fs.file-max Dan Kegel
2001-05-08 11:32 ` fs.file-max Federico Edelman Anaya
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.