From owner-freebsd-questions@FreeBSD.ORG Sun Jan 2 10:44:18 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06F7116A4E0 for ; Sun, 2 Jan 2005 10:44:18 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.199.47.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id C891643DE2 for ; Sun, 2 Jan 2005 10:13:12 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 6AB6551814; Sun, 2 Jan 2005 02:13:10 -0800 (PST) Date: Sun, 2 Jan 2005 02:13:10 -0800 From: Kris Kennaway To: Lucky Green Message-ID: <20050102101309.GA72018@xor.obsecurity.org> References: <20050102091914.3D0B9114F1@mail.cypherpunks.to> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline In-Reply-To: <20050102091914.3D0B9114F1@mail.cypherpunks.to> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: kern.maxfiles formula? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2005 10:44:19 -0000 --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 02, 2005 at 01:18:56AM -0800, Lucky Green wrote: > I am running FreeBSD 5.3 on a dual CPU system with 1 GB of RAM with under= a > dozen of very active users and a few rather active processes. The system > keeps running out of FDs, causing any number of problems, such as prevent= ing > ssh logins. >=20 > sysctl kern.maxfiles shows a maximum of 12328 FDs. My kernel config file = has > "maxusers" set to 0, which means the kern.maxfiles limit must be the OS > default. >=20 > What is the maximum number of FDs that can be set on a system with 1 GB of > RAM? What would it be for 2 GB of RAM? In other words, how many FDs can a > FreeBSD 5.3 system safely support for each GB of RAM? A truly enormous number :-) You just need to increase the value of kern.maxfiles in /boot/loader.conf as appropriate for your workload. kris --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB18k1Wry0BWjoQKURAqeNAJ9EAROtU+BRpCMK1Jy5+kX7Z6ngPQCg/D0l JPUG2sRX4aa/b5u9Qfn9X4I= =2opi -----END PGP SIGNATURE----- --UlVJffcvxoiEqYs2--