[PATCH 0/7] Abort early if there is not enough space

Richard Maw richard.maw at codethink.co.uk
Wed Jun 5 10:09:13 BST 2013


On Tue, Jun 04, 2013 at 06:08:45PM +0100, Paul Sherwood wrote:
> On 04/06/2013 17:52, Richard Maw wrote:
> 
> > It will sum the figures if it can detect that both directories
> > are on the same disk, hence have the same storage pool. So in
> > our default configuration you need 20G free on /src to be able
> > to build.
> 
> I was thinking 10G in total would be enough - am i wrong?

For most builds that's enough, but I can imagine that rebuilding a
genivi-devel system after a change in build-essential could get close
to pushing that figure.

The limits given are mostly pulling a figure out of nowhere though.
There needs to be on average twice the size of your average system
artifact available in your cache directory.

You also need the size of your system, plus your largest git repository,
plus the size of its checkout in your tempdir.

After some actual measurements, the largest system artifact I've seen
is 2G of the qt5-devel system.

So 4G is suitable for the cachedir.

Tempdir needs 2G for unpacked artifacts making the staging area.
The largest git repository I've seen is linux at 700MB. A checkout of
which is 600MB.

Hence 4G is suitable for tempdir too.

You're unlikely to need all of this though, since when you build linux
you don't need qt in your staging area.

I'll prep a second patch series, I need to make changes for the test
suite, I was heat-addled when I sent this patch series and forgot to
run the full test.



More information about the baserock-dev mailing list