summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-26 15:09:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-27 08:58:58 +0000
commit75429c1dc86edf4e4318f322741bc6e55200aaf6 (patch)
tree9d526eeff9068d8f6d720778cd02fc7d7ecdc9d8
parent82d05e2ecadabc646e227b065e2bcac086ab6f34 (diff)
downloadpoky-75429c1dc86edf4e4318f322741bc6e55200aaf6.tar.gz
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. (From meta-yocto rev: 575d91ac64b76ea0f85266c46ee63b14707412ff) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta-yocto/conf/local.conf.sample16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta-yocto/conf/local.conf.sample b/meta-yocto/conf/local.conf.sample
index 23af275e16..200b4afc86 100644
--- a/meta-yocto/conf/local.conf.sample
+++ b/meta-yocto/conf/local.conf.sample
@@ -206,6 +206,22 @@ USER_CLASSES ?= "buildstats image-mklibs image-prelink"
206PATCHRESOLVE = "noop" 206PATCHRESOLVE = "noop"
207 207
208# 208#
209# Disk Space Monitoring during the build
210#
211# Monitor the disk space during the build. If there is less that 1GB of space or less
212# than 100K inodes in any key build location (TMPDIR, DL_DIR, SSTATE_DIR), gracefully
213# shutdown the build. If there is less that 100MB or 1K inodes, perform a hard abort
214# of the build. The reason for this is that running completely out of space can corrupt
215# files and damages the build in ways which may not be easily recoverable.
216BB_DISKMON_DIRS = "\
217 STOPTASKS,${TMPDIR},1G,100K \
218 STOPTASKS,${DL_DIR},1G,100K \
219 STOPTASKS,${SSTATE_DIR},1G,100K \
220 ABORT,${TMPDIR},100M,1K \
221 ABORT,${DL_DIR},100M,1K \
222 ABORT,${SSTATE_DIR},100M,1K"
223
224#
209# Shared-state files from other locations 225# Shared-state files from other locations
210# 226#
211# As mentioned above, shared state files are prebuilt cache data objects which can 227# As mentioned above, shared state files are prebuilt cache data objects which can