From: Quentin Schulz <quentin.schulz@cherry.de>
To: antonin.godard@bootlin.com, openembedded-core@lists.openembedded.org
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: Re: [OE-core] [PATCH 3/3] meta/conf/fragments/yocto/monitor-disk-space.conf: add fragment
Date: Fri, 21 Aug 2026 16:15:06 +0200 [thread overview]
Message-ID: <856d5958-7ff5-4785-9673-2f6d4ba795ab@cherry.de> (raw)
In-Reply-To: <20260821-sbom-cve-check-fragment-desc-v1-3-e06feb747b07@bootlin.com>
Hi Antonin,
On 8/21/26 2:26 PM, Antonin Godard via lists.openembedded.org wrote:
> Add a "core/yocto/monitor-disk-space" fragment to enable the
> functionality previously provided by the default definition of
> BB_DISKMON_DIRS in local.conf.sample. As the definition might not be
> obvious to set, having a simple way of enabling the feature through a
> fragment makes it more approachable.
>
> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
> ---
> meta/conf/fragments/yocto/monitor-disk-space.conf | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/meta/conf/fragments/yocto/monitor-disk-space.conf b/meta/conf/fragments/yocto/monitor-disk-space.conf
> new file mode 100644
> index 0000000000..95ff54465f
> --- /dev/null
> +++ b/meta/conf/fragments/yocto/monitor-disk-space.conf
> @@ -0,0 +1,18 @@
> +BB_CONF_FRAGMENT_SUMMARY = "Monitor disk space during the build"
> +BB_CONF_FRAGMENT_DESCRIPTION = "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 than 100MB or 1K inodes, perform a hard halt of the build. The reason \
> +for this is that running completely out of space can corrupt files and damages \
Remove "The reason for this is that".
I can suggest also rewording after the "and":
and can make unrecoverable damages to the build.
which is lighter (to me) when reading.
> +the build in ways which may not be easily recoverable. It's necessary to monitor \
> +/tmp, if there is no space left the build will fail with very exotic errors."
"No space left" is implied by the context of the text above so I think
it can be removed.
-very, exotic is already strong enough to me.
> +
> +BB_DISKMON_DIRS = "\> + STOPTASKS,${TMPDIR},1G,100K \
> + STOPTASKS,${DL_DIR},1G,100K \
> + STOPTASKS,${SSTATE_DIR},1G,100K \
> + STOPTASKS,/tmp,100M,100K \
According to your commit log, this should be 1K instead? but I guess
this comes straight from meta/conf/templates/default/local.conf.sample
where the inconsistency already exists.
Cheers,
Quentin
prev parent reply other threads:[~2026-08-21 18:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-21 12:26 [PATCH 0/3] Disk space monitoring fragment and minor tooling tweaks Antonin Godard
2026-08-21 12:26 ` [PATCH 1/3] meta/conf/fragments: harmonize fragment summaries and descriptions Antonin Godard
2026-08-21 14:01 ` [OE-core] " Quentin Schulz
2026-08-21 12:26 ` [PATCH 2/3] lib/bbconfigbuild/configfragments.py: match Available and Enabled built-in fragment lists Antonin Godard
2026-08-21 14:06 ` [OE-core] " Quentin Schulz
2026-08-21 12:26 ` [PATCH 3/3] meta/conf/fragments/yocto/monitor-disk-space.conf: add fragment Antonin Godard
2026-08-21 14:15 ` Quentin Schulz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=856d5958-7ff5-4785-9673-2f6d4ba795ab@cherry.de \
--to=quentin.schulz@cherry.de \
--cc=antonin.godard@bootlin.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox