Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 2004 10:14:54 -0700
From:      "Graham North" <graham.north@telus.net>
To:        "Peder Blom" <dion@bredband.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Pruning the Ports Tree
Message-ID:  <000401c45233$1c996080$627ba8c0@phoenix>
References:  <002201c45111$801acb30$627ba8c0@phoenix><20040613101323.Q2197@pukruppa.net><002301c45177$8d6f5ba0$627ba8c0@phoenix> <20040614185555.69cc8074.dion@bredband.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <dion@bredband.net>
To: "Graham North" <graham.north@telus.net>
Cc: <freebsd-questions@freebsd.org>
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" <graham.north@telus.net> 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.)
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000401c45233$1c996080$627ba8c0>