Re: number of simultanously opened files

2005-08-23 Thread Divacky Roman
On Mon, Aug 22, 2005 at 02:06:45PM +0200, Dag-Erling Sm?rgrav wrote: > Divacky Roman <[EMAIL PROTECTED]> writes: > > witten ~# sysctl kern.maxfiles=10 > > kern.maxfiles: 10 -> 10 > > witten ~# sysctl kern.maxfilesperproc=10 > > kern.maxfilesperproc: 10 -> 10 > > witten ~# >

Re: number of simultanously opened files

2005-08-22 Thread Dag-Erling Smørgrav
Divacky Roman <[EMAIL PROTECTED]> writes: > witten ~# sysctl kern.maxfiles=10 > kern.maxfiles: 10 -> 10 > witten ~# sysctl kern.maxfilesperproc=10 > kern.maxfilesperproc: 10 -> 10 > witten ~# > > but I still cannot open more than 7319 files simultaneously. pls can > you tell

Re: number of simultanously opened files

2005-08-21 Thread Sam Lawrance
On Sun, 2005-08-21 at 11:48 +0200, Divacky Roman wrote: > hi > > I wrote this: > witten /tmp# cat x.c > #include > #include > #include > > #define MAX 10 > main() > { > int i = MAX; > > for (; i>0; i--) { > if (open("/dev/null", O_RDONLY) == -1) { >

Re: number of simultanously opened files

2005-08-21 Thread Divacky Roman
On Sun, Aug 21, 2005 at 01:26:37PM +0300, victor cruceru wrote: > And errno (from a failed open) is ? sorry for not mentioning it... of course its: Too many open files (obtained by perror()) ___ freebsd-hackers@freebsd.org mailing list http://lists.

Re: number of simultanously opened files

2005-08-21 Thread victor cruceru
And errno (from a failed open) is ? On 8/21/05, Divacky Roman <[EMAIL PROTECTED]> wrote: > > hi > > I wrote this: > witten /tmp# cat x.c > #include > #include > #include > > #define MAX 10 > main() > { > int i = MAX; > > for (; i>0; i--) { > if (open("/dev/null", O_RDONLY) == -1) {

number of simultanously opened files

2005-08-21 Thread Divacky Roman
hi I wrote this: witten /tmp# cat x.c #include #include #include #define MAX 10 main() { int i = MAX; for (; i>0; i--) { if (open("/dev/null", O_RDONLY) == -1) { printf("FUCK: %i\n", MAX-i); p