From: "Michal Koutný" <mkoutny@suse.com>
To: Albert Esteve <aesteve@redhat.com>
Cc: Tejun Heo <tj@kernel.org>, Johannes Weiner <hannes@cmpxchg.org>,
Shuah Khan <shuah@kernel.org>,
linux-kernel@vger.kernel.org, cgroups@vger.kernel.org,
linux-kselftest@vger.kernel.org,
Eric Chanudet <echanude@redhat.com>
Subject: Re: [PATCH v5 0/4] cgroup: dmem: add selftest helper, coverage, and VM runner
Date: Mon, 24 Aug 2026 20:27:46 +0200 [thread overview]
Message-ID: <aoyLV5ovAaY15G-h@localhost.localdomain> (raw)
In-Reply-To: <20260706-kunit_cgroups-v5-0-6c42c8753468@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1668 bytes --]
Hello Albert.
On Mon, Jul 06, 2026 at 02:06:39PM +0200, Albert Esteve <aesteve@redhat.com> wrote:
> Hi all,
>
> This small series adds practical test coverage for the dmem
> cgroup controller.
>
> The motivation came from following the recent dmem API discussion in
> thread [1]. That discussion considered changing the dmem API and
> adding a new knob. Currently there are no dedicated tests covering
> dmem behaviour, which makes such changes riskier.
>
> Adding selftests has an additional challenge: dmem charging paths
> are driver-driven today, so regression testing is harder unless a
> suitable driver is present in the test environment.
>
> This series addresses that by adding:
> - a kernel-side selftest helper module to trigger charge/uncharge
> from userspace in a controlled way,
> - cgroup selftests covering dmem accounting and protection semantics
> (including dmem.max enforcement and byte-granularity checks),
> - a virtme-based VM runner for repeatable execution of the dmem tests.
>
> The goal is to make dmem behavior easier to validate when evolving the API
> and implementation, while keeping tests deterministic and driver-independent.
Thanks for the dmem selftesting. I'll respond to first two patches
individually. I find the wrapper scripts in the last two a bit of an
overkill for the selftest (as it adds dependency on particular VM
environment, I'd keep the simplicity of selftests such that wherever
they are executed (w/out wrappers), there they run (be it a physical
machine or a VM). At most, I'd consider a simple wrapper that'd load
ensure the test module is loaded.
Thanks,
Michal
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 265 bytes --]
prev parent reply other threads:[~2026-08-24 18:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-06 12:06 Albert Esteve
2026-07-06 12:06 ` [PATCH v5 1/4] cgroup: Add dmem_selftest module Albert Esteve
2026-07-09 13:26 ` Eric Chanudet
2026-08-24 18:28 ` Michal Koutný
2026-07-06 12:06 ` [PATCH v5 2/4] selftests: cgroup: Add dmem selftest coverage Albert Esteve
2026-07-09 13:31 ` Eric Chanudet
2026-08-24 18:28 ` Michal Koutný
2026-07-06 12:06 ` [PATCH v5 3/4] selftests: cgroup: Add vmtest-dmem runner script Albert Esteve
2026-07-09 13:45 ` Eric Chanudet
2026-07-06 12:06 ` [PATCH v5 4/4] selftests: cgroup: handle vmtest-dmem -b to test locally built kernel Albert Esteve
2026-08-24 18:27 ` Michal Koutný [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=aoyLV5ovAaY15G-h@localhost.localdomain \
--to=mkoutny@suse.com \
--cc=aesteve@redhat.com \
--cc=cgroups@vger.kernel.org \
--cc=echanude@redhat.com \
--cc=hannes@cmpxchg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@kernel.org \
--cc=tj@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®