News: 0001662709

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Faster Zswap With Patches To Batch The Writeback I/O

([Linux Storage] 4 Hours Ago Zswap)


For those making increased use of Linux's Zswap as a compressed RAM cache for swap pages amid these times of sky high RAM prices, a new patch series was posted providing some incremental performance gains for Zswap by batching the writeback I/O.

Separate from the Zswap patches posted earlier this week providing [1]rather significant performance improvements , a separate patch series for Zswap posted to the Linux kernel mailing list are providing more incremental gains. In the presence of Zswap, the patches provided 3~4% time-savings when compiling the Linux kernel as a sample workload.

[2]

Alexandre Ghiti posted the patches to batch the writeback I/O for Zswap, explaining:

"Since commit 8f29aa226f82 ("mm/swap: introduce struct swap_io_ctx"), reclaim merges the swap writes of folios with consecutive slots into a single bio, but zswap writeback still issues one IO per entry. Patch 1 makes each zswap LRU walk batch its writeback IO. Patch 2 plugs the walk, so that the block layer can merge what the batch cannot."

[3]The patches are under review and so far the review comments have been favorable. With 3~4% build time savings for the Linux kernel in testing. every bit of improvement helps amid the increased interest around ZRAM and Zswap in today's environment.



[1] https://www.phoronix.com/news/Linux-Better-Zswap-Performance

[2] https://www.phoronix.com/image-viewer.php?id=2026&image=more_zswwap_lrg

[3] https://lore.kernel.org/all/20261007153507.50715-1-alex@ghiti.fr/



A programmer from a very large computer company went to a software
conference and then returned to report to his manager, saying: "What sort
of programmers work for other companies? They behaved badly and were
unconcerned with appearances. Their hair was long and unkempt and their
clothes were wrinkled and old. They crashed out hospitality suites and they
made rude noises during my presentation."
The manager said: "I should have never sent you to the conference.
Those programmers live beyond the physical world. They consider life absurd,
an accidental coincidence. They come and go without knowing limitations.
Without a care, they live only for their programs. Why should they bother
with social conventions?"
"They are alive within the Tao."
-- Geoffrey James, "The Tao of Programming"