From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 14 08:38:06 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 4A06137B401 for ; Mon, 14 Apr 2003 08:38:06 -0700 (PDT) Received: from icomag.de (ns.icomag.de [195.227.115.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 174A143FA3 for ; Mon, 14 Apr 2003 08:38:05 -0700 (PDT) (envelope-from bgd@icomag.de) Received: from localhost (bgd@localhost) by icomag.de (8.12.3/8.11.3) with ESMTP id h3EFc38k043470 for ; Mon, 14 Apr 2003 17:38:03 +0200 (CEST) (envelope-from bgd@icomag.de) Date: Mon, 14 Apr 2003 17:38:03 +0200 (CEST) From: Bogdan TARU X-X-Sender: To: Message-ID: <20030414173112.P43279-100000@fw.office.icom> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: 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:38:06 -0000 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