Re: [LSF/MM/BPF TOPIC] Swap Abstraction / Native Zswap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 29, 2023 at 09:31:59AM +0800, Huang, Ying wrote:
> > Oh, you mean the swap ID space. We just need to find an unused ID, we
> > can simply use an allocating xarray
> > (https://docs.kernel.org/core-api/xarray.html#allocating-xarrays).
> > This is simpler than keeping track of swap slots in a swapfile.
> 
> If we want to implement the swap entry management inside the zswap
> implementation (instead of reusing swap_map[]), then the allocating
> xarray can be used too.  Some per-entry data (such as swap count, etc.)
> can be stored there.  I understanding that this isn't perfect (one more

Just want to confirm that "there" means the zswap entry, not the xarray
itself, right? If you have ways to store both the zswap entry
pointer and swap count in xarray, I am very much interested to know :-)

> xarray looking up, one more data structure, etc.), but this is a choice
> too.

Chris






[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux