From owner-freebsd-questions@FreeBSD.ORG Tue Oct 19 02:17:24 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 8795F16A4CE for ; Tue, 19 Oct 2004 02:17:24 +0000 (GMT) Received: from web51607.mail.yahoo.com (web51607.mail.yahoo.com [206.190.38.212]) by mx1.FreeBSD.org (Postfix) with SMTP id 144CD43D64 for ; Tue, 19 Oct 2004 02:17:19 +0000 (GMT) (envelope-from jay2xra@yahoo.com) Message-ID: <20041019021718.68831.qmail@web51607.mail.yahoo.com> Received: from [202.90.128.28] by web51607.mail.yahoo.com via HTTP; Mon, 18 Oct 2004 19:17:18 PDT Date: Mon, 18 Oct 2004 19:17:18 -0700 (PDT) From: Mark Jayson Alvarez To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: 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: Tue, 19 Oct 2004 02:17:24 -0000 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). 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, how will I know what is the maximum value I can set them to(with regards to my hardware setup)? _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com