diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-11-26 15:09:18 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-11-28 15:25:14 +0000 |
commit | 99f003356be43bb361634359a5d3c520f72f0a08 (patch) | |
tree | f35866cfcb2db0e0de20cae11139d517227e31cd /meta/conf/local.conf.sample | |
parent | f50e2984d9411a059b86d6c158e9416fceb84c3d (diff) | |
download | openembedded-core-99f003356be43bb361634359a5d3c520f72f0a08.tar.gz openembedded-core-99f003356be43bb361634359a5d3c520f72f0a08.tar.bz2 openembedded-core-99f003356be43bb361634359a5d3c520f72f0a08.zip |
local.conf.sample: Enable disk space monitoring by default
Running out of space is a serious issue and can corrupt the build. Since
we can prevent it at minimal overhead, we might as well enable it by default.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/local.conf.sample')
-rw-r--r-- | meta/conf/local.conf.sample | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/conf/local.conf.sample b/meta/conf/local.conf.sample index d181e75f25..859eb93faf 100644 --- a/meta/conf/local.conf.sample +++ b/meta/conf/local.conf.sample @@ -184,6 +184,22 @@ USER_CLASSES ?= "buildstats image-mklibs image-prelink" PATCHRESOLVE = "noop" # +# Disk Space Monitoring during the build +# +# Monitor the disk space during the build. If there is less that 1GB of space or less +# than 100K inodes in any key build location (TMPDIR, DL_DIR, SSTATE_DIR), gracefully +# shutdown the build. If there is less that 100MB or 1K inodes, perform a hard abort +# of the build. The reason for this is that running completely out of space can corrupt +# files and damages the build in ways which may not be easily recoverable. +BB_DISKMON_DIRS = "\ + STOPTASKS,${TMPDIR},1G,100K \ + STOPTASKS,${DL_DIR},1G,100K \ + STOPTASKS,${SSTATE_DIR},1G,100K \ + ABORT,${TMPDIR},100M,1K \ + ABORT,${DL_DIR},100M,1K \ + ABORT,${SSTATE_DIR},100M,1K" + +# # Shared-state files from other locations # # As mentioned above, shared state files are prebuilt cache data objects which can |