From owner-freebsd-arch@FreeBSD.ORG Sat Aug 6 11:21:21 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 DD9F916A41F; Sat, 6 Aug 2005 11:21:21 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from mail13.syd.optusnet.com.au (mail13.syd.optusnet.com.au [211.29.132.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4475243D46; Sat, 6 Aug 2005 11:21:21 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail13.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id j76BLII4032109 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 6 Aug 2005 21:21:19 +1000 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1]) by cirb503493.alcatel.com.au (8.12.10/8.12.10) with ESMTP id j76BLISR007789; Sat, 6 Aug 2005 21:21:18 +1000 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost) by cirb503493.alcatel.com.au (8.12.10/8.12.9/Submit) id j76BLIMh007788; Sat, 6 Aug 2005 21:21:18 +1000 (EST) (envelope-from pjeremy) Date: Sat, 6 Aug 2005 21:21:18 +1000 From: Peter Jeremy To: Colin Percival Message-ID: <20050806112118.GA7708@cirb503493.alcatel.com.au> References: <42F47C0D.2020704@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42F47C0D.2020704@freebsd.org> User-Agent: Mutt/1.4.2i 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:21:22 -0000 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 "natural" place for this to go >would be in /var/db/, but I suspect that this would cause problems >for many users, particularly when it comes to the number of 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. >Is this a reasonable excuse for violating hier(7) and putting the >compressed snapshot into /usr/portsnap? For reference, the port keeps >the snapshot in /usr/local/portsnap. 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. Maybe you need to make the location an option (either compile time or in a configuration file) -- Peter Jeremy