Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jun 2012 10:42:48 +0530
From:      Subhro Sankha Kar <subhro@80386.org>
To:        illoai@gmail.com
Cc:        RW <rwmaillists@googlemail.com>, freebsd-questions@freebsd.org
Subject:   Re: ran out of inodes on /var, recommended value?
Message-ID:  <F8450CB7-641F-43E7-B5F0-E4CB77CD7C97@80386.org>
In-Reply-To: <CAHHBGkpeQq=jW7nCwKcmeTJRcmcOxR6O4bR49ZUSG=C-A4bv-g@mail.gmail.com>
References:  <4FD34E2A.7060700@dreamchaser.org> <20120609233827.497b2ca4@gumby.homeunix.com> <CAHHBGkpeQq=jW7nCwKcmeTJRcmcOxR6O4bR49ZUSG=C-A4bv-g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On 10-Jun-2012, at 6:13 AM, illoai@gmail.com wrote:

> On 9 June 2012 18:38, RW <rwmaillists@googlemail.com> 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=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F8450CB7-641F-43E7-B5F0-E4CB77CD7C97>