On Tue, 2026-07-14 at 10:45 -0500, Ishaan Desai via
lists.openembedded.org wrote:
> Adds a CLI tool and bbclass for applying per-service memory limits via
> systemd resource control and Linux cgroups v2.
>
> The memory-control command inspects MemoryMax and MemoryHigh settings
> for any running systemd service and lists all services with a drop-in
> applied.
>
> memory-control.bbclass allows any recipe to set a memory limit at build
> time by inheriting the class and setting MEMORY_LIMIT. Two OOM policies
> are available via MEMORY_OOM_POLICY: "reboot" (default) reboots on OOM,
> and "kill" terminates only the offending process.
>
> The recipe requires the systemd DISTRO_FEATURE via features_check so it
> is cleanly skipped on non-systemd distros. The bbclass guards its
> RDEPENDS injection with bb.utils.contains for the same reason.
> S is set to ${UNPACKDIR} since all sources are local file:// URIs with
> no upstream tarball to unpack into a versioned subdirectory.
>
> AI-Generated: Uses IBM Bob
>
> Signed-off-by: Ishaan Desai <[email protected]>Hi Ishaan, The previous versions of this patch which you have sent have had questions. Please engage with the discussion instead of just spinning a new version of the patch without clarifying anything. Please also include a patch change log to document the differences between each version of the series. You can find more information in our contributor guide: https://docs.yoctoproject.org/contributor-guide/submit-changes.html#taking-patch-review-into-account Best regards, -- Paul Barker
signature.asc
Description: This is a digitally signed message part
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#240898): https://lists.openembedded.org/g/openembedded-core/message/240898 Mute This Topic: https://lists.openembedded.org/mt/120267739/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
