Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Apr 2003 17:51:12 +0200 (CEST)
From:      Bogdan TARU <bgd@icomag.de>
To:        <freebsd-hackers@freebsd.org>
Subject:   Re: max numbers of sockets?
Message-ID:  <20030414175053.I43489-100000@fw.office.icom>
In-Reply-To: <20030414173112.P43279-100000@fw.office.icom>

next in thread | previous in thread | raw e-mail | index | archive | help


	Sorry, it was the 'shell limit' :)

 bogdan


----------------------------
iCom Media AG
Kirchweg 36
Koln, 50858
Germany

Phone: +49-(0)221-485-689-16
Fax  : +49-(0)221-485-689-20
Mobile:+49-(0)173-269-76-62

On Mon, 14 Apr 2003, Bogdan TARU wrote:

>
> 	Hi hackers,
>
>  I am running some test programs to check the max number of sockets I can
> open on a machine. Don't ask why! :)
>
>  The max number that I reached was 7318. I get 'Too many open files' when
> trying to open more. And I am curious why. I have bumped the following
> sysctl vars:
>
> (17:32) root@(alice)[~] sysctl kern.maxfiles
> kern.maxfiles: 15000
> (17:32) root@(alice)[~] sysctl kern.maxfilesperproc
> kern.maxfilesperproc: 15000
> (17:33) root@(alice)[~] sysctl kern.ipc.maxsockets
> kern.ipc.maxsockets: 15000
>
>
>  When trying to run 'sysctl kern.openfiles' I get indeed:
>
> (17:29) root@(alice)[~] sysctl kern.openfiles
> kern.openfiles: 7419
>
>  So there aren't any other processes 'eating up' the rest of the sockets.
>
>  The other question that I've got is related to the 'vm.zone':
>
> (17:28) root@(alice)[~] sysctl vm.zone
> vm.zone:
> ITEM            SIZE     LIMIT    USED    FREE  REQUESTS
> ....
> socket:          192,    15000,   7348,     33,    43978
>
>
>  I thought that the LIMIT == USED + FREE, but it seems it's not that
> way... Could somebody explain?
>
>  Thank you,
>  bogdan
>
>
> ----------------------------
> iCom Media AG
> Kirchweg 36
> Koln, 50858
> Germany
>
> Phone: +49-(0)221-485-689-16
> Fax  : +49-(0)221-485-689-20
> Mobile:+49-(0)173-269-76-62
>
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030414175053.I43489-100000>