From owner-freebsd-questions@FreeBSD.ORG Mon Jun 14 17:14:44 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 DE42C16A4CE for ; Mon, 14 Jun 2004 17:14:44 +0000 (GMT) Received: from priv-edtnes40.telusplanet.net (outbound05.telus.net [199.185.220.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 731C043D6A for ; Mon, 14 Jun 2004 17:14:44 +0000 (GMT) (envelope-from graham.north@telus.net) Received: from phoenix ([142.173.17.246]) by priv-edtnes40.telusplanet.net (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with ESMTP id <20040614171430.WPLL1187.priv-edtnes40.telusplanet.net@phoenix>; Mon, 14 Jun 2004 11:14:30 -0600 Message-ID: <000401c45233$1c996080$627ba8c0@phoenix> From: "Graham North" To: "Peder Blom" References: <002201c45111$801acb30$627ba8c0@phoenix><20040613101323.Q2197@pukruppa.net><002301c45177$8d6f5ba0$627ba8c0@phoenix> <20040614185555.69cc8074.dion@bredband.net> Date: Mon, 14 Jun 2004 10:14:54 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 cc: freebsd-questions@freebsd.org Subject: Re: Pruning the Ports Tree 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: Mon, 14 Jun 2004 17:14:45 -0000 Hello Peder: Thank you for this suggestion, I will give it some thought. Thanks to everyone for their help - should other commets come in during the next couple of days please note that I will be offline for a little while so do not feel I am being rude if not responding immediately. Cheers all, Graham/ ----- Original Message ----- From: "Peder Blom" To: "Graham North" Cc: Sent: Monday, June 14, 2004 9:55 AM Subject: Re: Pruning the Ports Tree > On Sun, 13 Jun 2004 11:52:18 -0700 > "Graham North" wrote: > > > Hi Uli and the rest of the FreeBSD forum: > > > > Thanks for your advice - though I am not entirely sure what the > > purpose of your last questions are. > > > > To answer though: > > My HD is about 1.2G - it is sharing 2.0G with another OS. > > /usr ~ 778M > > usr/ports ~247M > > total /usr being used is ~595M with about 183M free. > > > > The problem is not disk space - it appears to be file handles. > > Remember, those ports files are only about 0.5K each - so lots of > > inodes are being used in file infrastructure. Midnight Comm which I > > use for a lot of file navigation indicates that I had 99838 inodes > > available - of which there are now only 602 free! Yesterday that was > > about 900, but then I mirrored part of a friend's website and used > > another 300. As you can see, I need to free up some file handling > > capability. > > > > Thanks for any further advice you can give. > > > > Cheers, Graham/ > > Hi Graham > > You might consider using a file-backed disk (see the handbook sec 12.11) > for your portstree. This should save a lot of inodes at the cost of > wasting some space on your hd. > > Something along the lines of: > > 1) Point workdirs and distfiles to directories outside the ports dir by > setting the environmental variables WRKDIRPREFIX and DISTDIR (man > ports). > > 2) Estimate what will be the maximum size of your portstree for the > lifetime of your setup, create a file of this size and make it into a > file-backed disk. > > 3) Mount this file-backed disk on /usr/ports. > > For this to be meaningful you obviously have to remove your current > portstree and build one on your file-backed disk. > > I'm running a setup similar to this for sharing ports between jails > without any problems. > > (You might even be able to create the file-backed disk on the slice you > are > sharing with another OS and gain some space on /usr, if needed.) >