[elbe-devel] Disk space leaks from the initvm

Torben Hohn torben.hohn at linutronix.de
Fri Mar 17 09:32:22 CET 2017


On Fri, Mar 17, 2017 at 08:10:41AM +0000, Lukasz Walewski wrote:
> Hi,
> 
> I run the initvm in /opt/elbe as an operating system service and 'elbe submit' build jobs without rebuilding the VM itself to minimize the build time. However, I noticed that the VM image in /opt/elbe/initvm/buildenv.img grows after each build by about 2 GB (roughly 4x the size of the resulting RFS image). This is potentially a serious problem, since after sufficiently large number of builds arbitrarily large partition dedicated to the initivm will run out of space bringing the build system down, so some countermeasure must be taken.
> 
> The file size does not drop back to what it was before the build even after removing the project with 'elbe control del_project'. The filesystem usage reported by df inside the initvm (after 'elbe initvm attach') shows the / partition taking up roughly half the size of the image file seen from the host. The symptom resembles memory leaking from a program, thus the notion of a 'disk space leak'.
> 
> Is there a way to keep the initvm image size constant/limited?

The initvm image is 80GB in size in the default setup.
After a fresh install most of this image is zeros, which do not take up
space on disk. Thats why usage of the initvm increases its size. 

However, the file can not grow bigger than 80GB, because its an 80GB
harddisk inside the initvm.
-- 
Mit freundlichen Grüßen
Torben Hohn

Linutronix GmbH

Standort: Bremen

Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Firmensitz / Registered Office: D-88690 Uhldingen, Bahnhofstr. 3
Registergericht / Local District Court: Amtsgericht Freiburg i. Br.; HRB
Nr. / Trade register no.: 700 806

Geschäftsführer / Managing Directors: Heinz Egger, Thomas Gleixner

Eine Bitte von uns: Sollten Sie diese E-Mail irrtümlich erhalten haben,
benachrichtigen Sie uns in diesem Falle bitte sobald wie es Ihnen
möglich ist, durch Antwort-Mail. Vielen Dank!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20170317/aa238ad4/attachment.sig>


More information about the elbe-devel mailing list