[Devel] [PATCH hci-8.1 0/2] selftests: cgroup: fix the flaky and vacuous test_memcg_sock

Konstantin Khorenko khorenko at virtuozzo.com
Mon Oct 19 22:59:51 MSK 2026


On Mon, 19 Oct 2026 21:47:32 +0200, Konstantin Khorenko wrote:
> selftests: cgroup: fix the flaky and vacuous test_memcg_sock
> 
> test_memcg_sock compares memory.current of its cgroup with the "sock "
> entry of memory.stat. memory.current moves at charge time, "sock " only
> when the memcg stats are flushed, and nothing in the test makes a flush
> happen. So the test either compares 0 with 0 and passes without having
> checked anything, or fails at random.
> 
> [...]

Applied to branch-rh10-6.12.0-211.52.1.22.x.vz10-ovz, will be released in rh10-6.12.0-211.52.1.22.9.vz10, thanks!

[1/2] ms/selftests: cgroup: skip test_memcg_sock under cgroup.memory=nosocket
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/f7931ffaaea2
[2/2] ms/selftests: cgroup: make test_memcg_sock check flushed sock stats
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/8d450687314f

-- 
Konstantin Khorenko <khorenko at virtuozzo.com>



More information about the Devel mailing list