Date: Sun, 2 Jan 2005 02:13:10 -0800 From: Kris Kennaway <kris@obsecurity.org> To: Lucky Green <shamrock@cypherpunks.to> Cc: freebsd-questions@freebsd.org Subject: Re: kern.maxfiles formula? Message-ID: <20050102101309.GA72018@xor.obsecurity.org> In-Reply-To: <20050102091914.3D0B9114F1@mail.cypherpunks.to> References: <20050102091914.3D0B9114F1@mail.cypherpunks.to>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050102101309.GA72018>