From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 14 08:51:17 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E861A37B401 for ; Mon, 14 Apr 2003 08:51:17 -0700 (PDT) Received: from icomag.de (ns.icomag.de [195.227.115.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6348143FCB for ; Mon, 14 Apr 2003 08:51:14 -0700 (PDT) (envelope-from bgd@icomag.de) Received: from localhost (bgd@localhost) by icomag.de (8.12.3/8.11.3) with ESMTP id h3EFpCVf043844 for ; Mon, 14 Apr 2003 17:51:13 +0200 (CEST) (envelope-from bgd@icomag.de) Date: Mon, 14 Apr 2003 17:51:12 +0200 (CEST) From: Bogdan TARU X-X-Sender: To: In-Reply-To: <20030414173112.P43279-100000@fw.office.icom> Message-ID: <20030414175053.I43489-100000@fw.office.icom> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: max numbers of sockets? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2003 15:51:18 -0000 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" >