Re: Virtual Swap Sync

From: Rik van Riel

Date: Sun Nov 29 2026 - 21:42:08 EST


On Mon, 2026-11-30 at 00:40 +0800, Kairui Song wrote:
>
> For this part, it's a bit tricky, it's the logical / virtual part,
> basically like memsw but without cgroups. We need one host-global
> size
> for the logical footprint, enforced by the OOM killer,

Wait, how is a host size limit ...

> In one of our use cases, we give the workload a fixed logical
> footprint, e.g. on a 2G VM with 2G zram, so memset(region, 0xff, 4G)
> will work, memset(region, 0xff, 4G + 2M) will OOM (NOTE, it's not
>

... supposed to solve a use case of multiple
lightweight VMs, that should each have their
own limit?

I don't really understand how those two fit
together.

I'm all for making your use case work, but it
feels like this policy should be a different 
layer of the system than the swap subsystem.

What am I missing?

--
All Rights Reversed.