From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 21 04:39:47 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 AAC4F37B401 for ; Mon, 21 Apr 2003 04:39:47 -0700 (PDT) Received: from smartrafficenter.org (pacer.smartrafficenter.org [207.14.56.3]) by mx1.FreeBSD.org (Postfix) with SMTP id CDD1D43FBD for ; Mon, 21 Apr 2003 04:39:42 -0700 (PDT) (envelope-from kpieckiel@smartrafficenter.org) Received: (qmail 38557 invoked by uid 1500); 21 Apr 2003 11:39:38 -0000 Date: Mon, 21 Apr 2003 07:39:38 -0400 From: "Kevin A. Pieckiel" To: Terry Lambert Message-ID: <20030421113938.GA31530@pacer.dmz.smartrafficenter.org> References: <20030420210118.GA21255@pacer.dmz.smartrafficenter.org> <3EA32ADA.CC05B003@mindspring.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline In-Reply-To: <3EA32ADA.CC05B003@mindspring.com> User-Agent: Mutt/1.4i cc: freebsd-hackers@freebsd.org Subject: Re: maxfiles, file table, descriptors, etc... 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, 21 Apr 2003 11:39:47 -0000 --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 20, 2003 at 04:18:50PM -0700, Terry Lambert wrote: > "Kevin A. Pieckiel" wrote: > > First, do open sockets (inet or unix) or pipes (via pipe(2)) count > > against kern.maxfiles, kern.maxfilesperproc, and other related limits? >=20 > Yes. And the limits are not runtime settable. >=20 > > Second, are there sysctl variables that indicate the size or usage > > of the file table? Or is this simply indicated by maxfiles (and > > perhaps others)? Or is there a program that will report this info? >=20 > The "lsof" program will report open files. The "maxfiles" variable > is a limit. The limit is runtime for files, boot time for sockets. Thank you, Terry, for your reply. This is interesting. This obviously shows my ignorance on how this is handled in the kernel, but how is it that one (files) is set at runtime while the other (sockets, pipes) is set at boot time only? These apparently don't use the same mechanism in the kernel to keep up with file descriptors attached to a socket vs those attached to a file. How does one tweak these boot time values? -OR- If this is documented somewhere (I wasn't able to find any docs on this), I don't mind doing some reading to learn this (save for becoming intimate with the kernel code that handles this stuf--that's a little much for the time being). Again, thank you. Kevin Those who are too smart to engage in politics are punished by being governed by those who are dumber. -- Plato --- This message was signed by GnuPG. E-Mail kpieckiel-pgp@smartrafficenter.org to receive my public key. You may also get my key from pgpkeys.mit.edu; my ID is 0xF1604E92 and will expire on 01 January 2004. --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE+o9h5c3iJbvFgTpIRAj3kAJ9tJ9X2/nGOJOJ4PbUq4pHTLb4EawCfYe5y /k9TqYIzCFQk0hqEYiIfFRU= =VbGy -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM--