All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ishaan Desai" <Ishaan.Desai@ibm.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] memory-control: add recipe and bbclass for cgroup v2 memory limiting
Date: Tue, 14 Jul 2026 09:35:06 -0700	[thread overview]
Message-ID: <777420.1784046906500517885@lists.openembedded.org> (raw)
In-Reply-To: <CANNYZj_HBsupBnzMvb_z1OxE3f38MAf+7x9N1FSPGKQKVumqJw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1120 bytes --]

Hi everyone,

The bbclass is intentional. The main use case is for other recipes to inherit it and set a memory limit for their own service at build time. An .inc file would require an explicit require and manual wiring of the do_install postfunc in every recipe that uses the memory-control tool. The bbclass encapsulates that cleanly and follows the OE-Core pattern for cross-recipe functionality. The memory-control recipe itself is just the runtime companion, which the bbclass pulls in as an RDEPEND.

The motivation comes from embedded/constrained platforms, specifically OpenBMC, where per-service memory limits via cgroup v2 are a common requirement. Putting this in OE-Core makes it available to any layer without duplicating the implementation, and the pattern of baking systemd drop-ins at build time is broadly useful beyond any platform.

I'm committed to maintaining this recipe and bbclass going forward, and I've added myself to maintainers.inc. If the consensus is that this is too niche for OE-Core and belongs in a more specific layer, I'm open to that feedback.

Thanks,
Ishaan Desai

**

[-- Attachment #2: Type: text/html, Size: 4941 bytes --]

  reply	other threads:[~2026-07-14 16:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-13 18:51 [PATCH] memory-control: add recipe and bbclass for cgroup v2 memory limiting Ishaan Desai
2026-07-14 12:49 ` [OE-core] " Mathieu Dubois-Briand
2026-07-14 13:32 ` Alexander Kanavin
2026-07-14 16:35   ` Ishaan Desai [this message]
2026-07-14 16:53     ` Alexander Kanavin
2026-07-14 18:33       ` Ishaan Desai
2026-07-14 16:43 ` [PATCH v3] " Ishaan Desai
2026-07-14 16:45   ` Ishaan Desai
  -- strict thread matches above, loose matches on Subject: below --
2026-07-10 17:05 [PATCH] " Ishaan Desai

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=777420.1784046906500517885@lists.openembedded.org \
    --to=ishaan.desai@ibm.com \
    --cc=openembedded-core@lists.openembedded.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.