Re: [RFC PATCH 00/14] Virtual Swap Space
From: Nhat Pham
Date: Tue Apr 08 2025 - 12:32:31 EST
On Tue, Apr 8, 2025 at 9:25 AM Nhat Pham <nphamcs@xxxxxxxxx> wrote:
>
>
> You're right. I haven't touched the swapfile swap map and the zeromap
> bitmap at all, primarily because it's non-functional change
> (optimization only). It also adds more ifdefs to the final codebase :)
>
> In the next version, I can tag on one patch to:
>
> 1. remove zeromap bitmap. This one is pretty much straightforward -
> we're not using it at all.
>
> 2. Swap map reduction. I'm like 70% sure we don't need SWAP_MAP_BAD
> state. With the vswap reverse map and the swapfile inuse counters, we
> should be able to convert the swapmap into a pure bitmap. If we can't,
> then it's 2 bits per physical swapfiles.
s/physical swapfiles/physical swap slot (3 states - unallocated,
allocated, bad slot. the latter two might be mergeable).