On Mon Jul 13, 2026 at 8:51 PM CEST, 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.
>
> AI-Generated: Uses IBM Bob
>
> Signed-off-by: Ishaan Desai <[email protected]>

Hi Ishaan,

Thanks for your patch.

We get a warning about this new recipe during the build:

WARNING: lib32-memory-control-1.0-r0 do_unpack: lib32-memory-control: the 
directory ${UNPACKDIR}/${BP} 
(/srv/pokybuild/yocto-worker/qemux86-world-alt/build/build/tmp/work/x86-pokymllib32-linux/lib32-memory-control/1.0/sources/memory-control-1.0)
 pointed to by the S variable doesn't exist - please set S within the recipe to 
point to where the source has been unpacked to

https://autobuilder.yoctoproject.org/valkyrie/#/builders/17/builds/3970
https://autobuilder.yoctoproject.org/valkyrie/#/builders/25/builds/4125

Can you make sure everything is correct?

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#240883): 
https://lists.openembedded.org/g/openembedded-core/message/240883
Mute This Topic: https://lists.openembedded.org/mt/120210280/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to