From owner-freebsd-questions@FreeBSD.ORG Wed Oct 20 16:55:34 2004 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 1037216A4D9 for ; Wed, 20 Oct 2004 16:55:34 +0000 (GMT) Received: from home.mnet.bg (home.mnet.bg [193.110.223.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EC3043D31 for ; Wed, 20 Oct 2004 16:55:33 +0000 (GMT) (envelope-from dpenev@mnet.bg) Received: from localhost (home [127.0.0.1]) by home.mnet.bg (Postfix) with ESMTP id 497DB3B364; Wed, 20 Oct 2004 19:55:31 +0300 (EEST) Received: from venus.dpsca.bg (ip220-81.mnet.bg [193.110.220.81]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by home.mnet.bg (Postfix) with ESMTP id 04B213B362; Wed, 20 Oct 2004 19:55:28 +0300 (EEST) Received: from earth.dpsca.bg (earth.dpsca.bg [192.168.1.1]) by venus.dpsca.bg (8.12.11/8.12.11) with ESMTP id i9KGtAXe015582 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 20 Oct 2004 19:55:12 +0300 (EEST) Received: (from dpenev@localhost) by earth.dpsca.bg (8.13.1/8.13.1/Submit) id i9KGtXsw001260; Wed, 20 Oct 2004 19:55:33 +0300 (EEST) (envelope-from dpenev) Date: Wed, 20 Oct 2004 19:55:33 +0300 From: Dancho Penev To: Mark Jayson Alvarez Message-ID: <20041020165533.GA899@earth.dpsca.bg> References: <20041019021718.68831.qmail@web51607.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline In-Reply-To: <20041019021718.68831.qmail@web51607.mail.yahoo.com> User-Agent: Mutt/1.4.2.1i X-Virus-Scan: smtp-vilter X-SMTP-Vilter-Version: 1.1.5 X-SMTP-Vilter-Version: 1.1.5 X-SMTP-Vilter-Backend: vilter-spamd X-SMTP-Vilter-Backend: vilter-clamd X-SMTP-Vilter-Status: clean X-Spam-Checker: smtp-vilter X-Virus-Scanned: by amavisd-new-2.1.0 (Debian GNU/Linux) at mail.mnet.bg cc: freebsd-questions@freebsd.org Subject: Re: Questions on file descriptors and squid 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: Wed, 20 Oct 2004 16:55:34 -0000 --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 18, 2004 at 07:17:18PM -0700, Mark Jayson Alvarez wrote: >Date: Mon, 18 Oct 2004 19:17:18 -0700 (PDT) >From: Mark Jayson Alvarez >To: freebsd-questions@freebsd.org >Subject: Questions on file descriptors and squid > >Good day, > > I have a pc which I am going to turn into one of >our siblings proxy servers. The squid book says, the >file descriptor values should not go below 1024. > >Qestion1: Do you know how do freebsd 4.10 sets its >default(fresh install) file descriptor value? For >example, here are the components of the workstation I >am installing squid into. > >Pentium III 600 MHz >64 MB SD RAM >15 GB hard disk > >When I run 'sysctl kern.maxfilesperproc' this value >appeared: > >kern.maxfilesperproc: 957 > >so, it already violates the squids recommended >settings which should be not less than 1024 file >descriptor(Squid: The Definitive Guide -Duane >Wessels).=20 > >On the other hand, another workstation of mine with >the following components... > >256 DDR PC333 >Athlon XP 2000 >80 GB seagate harddisk > >...shows its file descriptor as > >beebop>>sysctl kern.maxfilesperproc > kern.maxfilesperproc: 3636 > >Qestion2: both of the kern.maxfiles and >kern.maxfilesperproc's values are changeable and so,=20 >how will I know what is the maximum value I can set >them to(with regards to my hardware setup)?=20 > > > All these variables depend on maxusers option in your kernel config file. Look at /usr/src/sys/kern/subr_param.c to find how they are calculated. > > > > > > > > > > =09 >_______________________________ >Do you Yahoo!? >Declare Yourself - Register online to vote today! >http://vote.yahoo.com >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.or= g" > --=20 Dancho Penev Home page: http://www.mnet.bg/~dpenev GnuGP public key: http://www.mnet.bg/~dpenev/gnupg.asc Key fingerprint: E88D 8B7B 3EF6 E9C8 C5D2 7554 2AA8 C347 71A1 4277 --ibTvN161/egqYuK8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBdpiFKqjDR3GhQncRAo1YAJ9EQBchq7u1QrfC6yk21zmGinnXBwCgxS5g hL96yL3M3fLwc9mNsiL+1Uo= =kbIt -----END PGP SIGNATURE----- --ibTvN161/egqYuK8--