From owner-freebsd-questions@FreeBSD.ORG Wed Jul 5 12:06:56 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 A717416A4E9 for ; Wed, 5 Jul 2006 12:06:56 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2294C43D78 for ; Wed, 5 Jul 2006 12:06:43 +0000 (GMT) (envelope-from pietro.cerutti@gmail.com) Received: by ug-out-1314.google.com with SMTP id m3so2338020uge for ; Wed, 05 Jul 2006 05:06:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=AD8NKYKXrThsf31z1CZEe176rjIRHQTf1LTmGfZZ/HGW0sGp6xabMoLK2qH6gfJM04r7ElGmsBcgoN8KMkR1BmRscgIsqmTGXFVIDJexu0lcAjNvs6efgrHOdtPTrA7JYQ4ipWZmvZMxtsTUCsD3+E4K1/RINwpYD4Q1+Qtp9/s= Received: by 10.67.22.2 with SMTP id z2mr7719570ugi; Wed, 05 Jul 2006 05:06:42 -0700 (PDT) Received: by 10.67.23.8 with HTTP; Wed, 5 Jul 2006 05:06:42 -0700 (PDT) Message-ID: Date: Wed, 5 Jul 2006 14:06:42 +0200 From: "Pietro Cerutti" To: "freebsd questions" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: maxusers -> kernel.maxfiles X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jul 2006 12:06:56 -0000 Hi list, today my home server stopped responding because of a "kern.maxfiles limit exceeded" problem. I noticed that the maxfiles MIB value was set to 1928, which I find ridiculous even for a small home server ( i386-6.1-RELEASE, mySQL, Apache, LDAP, Postfix, SSH, SFTP ). On my laptop, which is running 6.1-STABLE, this defaults to 25000. Reading [1] I discovered that this value is computed basing on the value of maxusers, which is supposed to be in the kernel configuration file. Since I didn't set the maxusers option in my kernel conf, I was expecting to find a default value somewhere, and here's where I miserably fail... So, could you please tell me: 1) where's the default for it? 2) how is the kern.maxfiles value exactly computed? Thank you in advance, -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org