Re: [PATCHv1 0/8] zram: introduce multi-handle entries
From: Sergey Senozhatsky
Date: Tue Nov 19 2024 - 04:21:14 EST
On (24/11/19 16:20), Sergey Senozhatsky wrote:
> ZRAM_HUGE objects are incompressible and each takes a whole
> physical page on the zsmalloc side. zsmalloc pool, naturally, has
> some internal memory fragmentation (within size-classes), so what
> we can do for ZRAM_HUGE objects is to split them into several
> smaller objects (2 at this point) and store those parts individually
> in regular size-classes (hence multi-handle entries). This, basically,
> lets us to use already allocated (but unused) zspages memory for
> ZRAM_HUGE objects, instead of unconditional allocation of 0-order
> page for each ZRAM_HUGE object.
Forgot to mention, this is still just "RFC".