From owner-freebsd-questions@FreeBSD.ORG Sun Jun 10 05:12:54 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7BDE1106566C for ; Sun, 10 Jun 2012 05:12:54 +0000 (UTC) (envelope-from subhro@80386.org) Received: from oproxy7-pub.bluehost.com (oproxy7.bluehost.com [IPv6:2605:dc00:100:2::a7]) by mx1.freebsd.org (Postfix) with SMTP id 43E698FC0C for ; Sun, 10 Jun 2012 05:12:54 +0000 (UTC) Received: (qmail 20925 invoked by uid 0); 10 Jun 2012 05:12:54 -0000 Received: from unknown (HELO box761.bluehost.com) (66.147.244.61) by oproxy7.bluehost.com with SMTP; 10 Jun 2012 05:12:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=80386.org; s=default; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Content-Type:Mime-Version:Subject; bh=AhWNUN6i+6JUvGNz6V8sAptzWEhzdnTFhHKhnSQjrZQ=; b=WvGozbtFxjq8uPQuz7o1A0Q/hmMraBgK48GuvyLLb76USyumNhfFR7KaYIxwYlsf7meScKU3mkMWF7bQu+2odv5tMFy+GOyMT0kl5nh7Buf7HrWsxnvZUdvvMmFFZJeD; Received: from [117.194.32.145] (port=49943 helo=[192.168.1.2]) by box761.bluehost.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1SdaSL-00044a-Hc; Sat, 09 Jun 2012 23:12:53 -0600 Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=iso-8859-1 From: Subhro Sankha Kar In-Reply-To: Date: Sun, 10 Jun 2012 10:42:48 +0530 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4FD34E2A.7060700@dreamchaser.org> <20120609233827.497b2ca4@gumby.homeunix.com> To: illoai@gmail.com X-Mailer: Apple Mail (2.1278) X-Identified-User: {1190:box761.bluehost.com:pixelpa2:80386.org} {sentby:smtp auth 117.194.32.145 authed with subhro@80386.org} Cc: RW , freebsd-questions@freebsd.org Subject: Re: ran out of inodes on /var, recommended value? 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: Sun, 10 Jun 2012 05:12:54 -0000 On 10-Jun-2012, at 6:13 AM, illoai@gmail.com wrote: > On 9 June 2012 18:38, RW wrote: >> On Sat, 09 Jun 2012 07:22:50 -0600 >> Gary Aitken wrote: >>=20 >>> I reconfigured my ssd filesystem with the /var partition of size >>> 512M. Unfortunately, something in portsnap or the ports tree in >>> general uses a boatload of small files, and i ran out of inodes. = Can >>> anyone recommend an appropriate size for the newfs -i value? 1024? >>> less? >>=20 >> portsnap needs roughly one file per port plus one for each >> out of date port during a fetch. There are 23658 ports. >>=20 >> In FreeBSD 9 the fragment size increased, halving the default number = of >> inodes. With only 32k inodes it's possible to run out with portsnap >> alone. You can probably get away with the old default of 64k (-i >> 8192), or perhaps 128k (-i 4096). Check how many files you have = outside >> of portsnap and do the arithmetic. >>=20 >=20 > Or, move the portsnap tree to somewhere other than /var > (see /etc/portsnap.conf for that & such). > I think that a file-backed md* mounted only when portsnap > was in use would save on inodes, yeah? Actually I think that is a very good idea. That is how I have set up my = system as well with one difference. I have tons of memory and use a = memory based filesystem to store all the in-compile objects. -- Subhro Sankha Kar System Administrator Working and Playing with FreeBSD since 2002=