lkml.org 
[lkml]   [2001]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: fs.file-max
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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.040 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site