mirror-linux/Documentation/admin-guide/blockdev
Sergey Senozhatsky cedfa028b5 zram: remove chained recompression
Chained recompression has unpredictable behavior and is not useful in
practice.

First, systems usually configure just one alternative recompression
algorithm, which has slower compression/decompression but better
compression ratio.  A single alternative algorithm doesn't need chaining.

Second, even with multiple recompression algorithms, chained recompression
is suboptimal.  If a lower priority algorithm succeeds, the page is never
attempted with a higher priority algorithm, leading to worse memory
savings.  If a lower priority algorithm fails, the page is still attempted
with a higher priority algorithm, wasting resources on the failed lower
priority attempt.

In either case, the system would be better off targeting a specific
priority directly.

Chained recompression also significantly complicates the code.  Remove it.

Link: https://lkml.kernel.org/r/20260311084312.1766036-6-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Brian Geffon <bgeffon@google.com>
Cc: gao xu <gaoxu2@honor.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2026-04-05 13:53:24 -07:00
..
drbd docs: admin-guide/blockdev: Remove digraph of node-states 2021-11-29 14:39:43 -07:00
floppy.rst Replace HTTP links with HTTPS ones: DRBD driver 2020-07-05 14:16:44 -06:00
index.rst Documentation: Document the new zoned loop block device driver 2025-05-01 17:03:56 -06:00
nbd.rst docs nbd: userspace NBD now favors github over sourceforge 2023-04-27 19:15:11 -06:00
paride.rst Documentation: Fix admin-guide typos 2025-08-18 10:31:19 -06:00
ramdisk.rst Documentation/admin-guide: blockdev/ramdisk: remove use of "rdev" 2020-09-24 10:50:31 -06:00
zoned_loop.rst Documentation: admin-guide: blockdev: replace zone_capacity with zone_capacity_mb when creating devices 2025-12-15 09:56:06 -07:00
zram.rst zram: remove chained recompression 2026-04-05 13:53:24 -07:00