On Friday, May 2, 2025 at 1:49:08 am +02:00, Sergey Senozhatsky <senozhatsky@chromium.org> wrote:
On (25/04/23 21:53), Vitaly Wool wrote:
[..]
* zsmalloc/zstd/make -j32 bzImage
real 8m0.594s
user 39m37.783s
sys 8m24.262s
Zswap: 200600 kB <-- after build completion
Zswapped: 854072 kB <-- after build completion
zswpin 309774
zswpout 1538332

* zblock/zstd/make -j32 bzImage
real 7m35.546s
user 38m03.475s
sys 7m47.407s
Zswap: 250940 kB <-- after build completion
Zswapped: 870660 kB <-- after build completion
zswpin 248606
zswpout 1277319

I'm sorry but what does this test test? That under memory pressure the
kernel swaps out different pages with different compression characteristics?
This test illustrates that zblock is faster than zsmalloc. No rocket science here.

~Vitaly