Re: Virtual Swap Sync
From: Nhat Pham
Date: Fri Dec 04 2026 - 13:58:56 EST
On Wed, Dec 2, 2026 at 5:47 PM Chris Li <chrisl@xxxxxxxxxx> wrote:
>
>
> First of all, I want to apologize for the spamming created by the
> repeated event invite. Bad idea. Never again.
>
> For tomorrow's discussion agenda:
>
> Chris & Kairui: SEE principle:
> 1) Simple: Keep things as simple as possible
> 2) Enablement: Enable and serve more real-world use cases.
> 3) Efficient: If everything else is equal, faster execution and lower
> memory usage are better.
Hi folks, thanks for showing up yesterday, and thanks Chris for hosting.
Regarding our resolution yesterday to come up with a list of core
usecases and feature - I'll reach out to Baoquan to see if we can
build a consensus on the core set of features first, or at least the
non-controversial ones :)
I think my earlier proposal (the phase I stuff, which contains no
design or implementation enforcement) is a good starting point for a
core list of feature:
> - Decoupled zswap: Let zswap operate without reserving disk swap
> for every virtual entry.
(or decoupled backend, more generally).
> - Physical backing and writeback: Keep disk swap available as a
> backend, including when zswap cannot store a page or an entry needs
> writeback.
> - Charging: Retain memsw charging for virtual entries; keep
> virtual-slot usage out of memory.swap.max. Actual physical swap usage
> keeps its resource charging.
> - Usage counter: Expose vswap usage so users can monitor
> virtual-space consumption separately from physical swap usage.
> Essentially this gives you a method to estimate the logical footprint
> (memory.current - swapcached + vswap).