| Summary: | Disk space monitor setting in local.conf.sample is incorrect | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Yi Zhao <yi.zhao> |
| Component: | bitbake | Assignee: | Robert Yang <liezhi.yang> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | ke.zou, poky.bs.watcher, poky.watcher, richard.purdie, sgw |
| Version: | 1.4 | ||
| Target Milestone: | 1.4 M6 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
The current problem is that one disk partition only can have one action, I will enhance monitordisk.py to let one disk partition can have many actions. The bitbake related code has merged into master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=af9f5843d997455af66a2a1b63de530d14f1ff2b I will send a patch for updating the samples in local.conf.sample.extended Tested in 12.Apr.2013 master branch
Test step:
1.
change Disk space threshold in conf/local.conf to a big one
for instance:
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},70G,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"
2.
build any image. Task stopped with log:
Build Configuration:
BB_VERSION = "1.18.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-12.04"
TARGET_SYS = "powerpc-poky-linux"
MACHINE = "qemuppc"
DISTRO = "poky"
DISTRO_VERSION = "1.3+snapshot-20130412"
TUNE_FEATURES = "m32 fpu-hard ppc603e"
TARGET_FPU = ""
meta
meta-yocto
meta-yocto-bsp = "master:2a3f6772aadbe378259c87c05ab6f091866b63ef"
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
WARNING: The free space of /home/kurtzou/git/poky/build/tmp (rootfs) is running low (62.326GB left)
ERROR: No new tasks can be excuted since the disk space monitor action is "STOPTASKS"!
NOTE: Tasks Summary: Attempted 626 tasks of which 626 didn't need to be rerun and all succeeded.
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
3. change threshold of every DIR and try. piece of logs below:
WARNING: The free space of /home/kurtzou/git/poky/build/downloads (rootfs) is running low (62.296GB left)
ERROR: No new tasks can be excuted since the disk space monitor action is "STOPTASKS"!
NOTE: Tasks Summary: Attempted 626 tasks of which 626 didn't need to be rerun and all succeeded.
WARNING: The free space of /home/kurtzou/git/poky/build/sstate-cache (rootfs) is running low (62.285GB left)
ERROR: No new tasks can be excuted since the disk space monitor action is "STOPTASKS"!
NOTE: Tasks Summary: Attempted 626 tasks of which 626 didn't need to be rerun and all succeeded.
|
Branch: Poky/master Git rev: d823759b4594143d522eae0b2a2498436a6dcb1e The default setting for disk space monitor in local.conf.sample is not correct: 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" With the same directory (e.g. TMPDIR), the ABORT action will overwrite the previous STOPTASKS action, so the STOPTASKS action will never be active.