public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 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
* 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

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 14:08 fs.file-max Dan Kegel
2001-05-08 11:32 ` fs.file-max Federico Edelman Anaya
  -- strict thread matches above, loose matches on Subject: below --
2001-05-08 10:03 fs.file-max Federico Edelman Anaya
2001-05-08 14:37 ` fs.file-max Nathan Straz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox