From owner-freebsd-arch@FreeBSD.ORG Sat Aug 6 11:51:01 2005 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6360816A41F for ; Sat, 6 Aug 2005 11:51:01 +0000 (GMT) (envelope-from cperciva@freebsd.org) Received: from pd2mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE21843D5E for ; Sat, 6 Aug 2005 11:51:00 +0000 (GMT) (envelope-from cperciva@freebsd.org) Received: from pd4mr6so.prod.shaw.ca (pd4mr6so-qfe3.prod.shaw.ca [10.0.141.69]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IKS00CMTTM49390@l-daemon> for freebsd-arch@freebsd.org; Sat, 06 Aug 2005 05:37:16 -0600 (MDT) Received: from pn2ml2so.prod.shaw.ca ([10.0.121.146]) by pd4mr6so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IKS00EZUTM4R060@pd4mr6so.prod.shaw.ca> for freebsd-arch@freebsd.org; Sat, 06 Aug 2005 05:37:16 -0600 (MDT) Received: from [192.168.0.60] (S0106006067227a4a.vc.shawcable.net [24.87.209.6]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0IKS00K06TM3LT@l-daemon> for freebsd-arch@freebsd.org; Sat, 06 Aug 2005 05:37:16 -0600 (MDT) Date: Sat, 06 Aug 2005 04:37:15 -0700 From: Colin Percival In-reply-to: <20050806112118.GA7708@cirb503493.alcatel.com.au> To: Peter Jeremy Message-id: <42F4A0EB.1080009@freebsd.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en References: <42F47C0D.2020704@freebsd.org> <20050806112118.GA7708@cirb503493.alcatel.com.au> User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050724) Cc: "freebsd-arch@freebsd.org" Subject: Re: /usr/portsnap vs. /var/db/portsnap X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Aug 2005 11:51:01 -0000 Peter Jeremy wrote: > On Sat, 2005-Aug-06 01:59:57 -0700, Colin Percival wrote: >>I'm going to be bringing portsnap into the base system very soon, and >>roughly 50MB and 13000 inodes. > > The number of inodes does seem rather high (I gather it's one per > port). Have you considered using an alternative mechanism to store > the data? ar(1), dbm(3) and zip(1) would all seem possible options > (though zip isn't in the base system). The downside is that updating > would be far more expensive in disk space. I considered it, but for performance reasons it is much better to keep each port as a separate file. > I think it would be nicer to have it in /var. I suspect that that > many inodes may present problems for some people whereever you put it. I don't think 13000 inodes will be a big problem on /usr for most people. The rather small drive on my laptop has two million inodes allocated for /usr. > Maybe you need to make the location an option (either compile time or > in a configuration file) It is configurable. Ok, I'll make /var/db/portsnap the default and tell people to change that in /etc/portsnap.conf if they want. Colin Percival