Skip to content

RFC writeback incompressible pages to storage

Minchan Kim lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7zram: inlining zram_compressdrivers/block/zram/zram_drv.c+31 -500 replies
2/7zram: rename zram_decompress_page with __zram_bvec_readdrivers/block/zram/zram_drv.c+3 -30 replies
3/7zram: add interface to specify backing devicedrivers/block/zram/zram_drv.c drivers/block/zram/zram_drv.h+168 -00 replies
4/7zram: add free space management in backing devicedrivers/block/zram/Kconfig drivers/block/zram/zram_drv.c drivers/block/zram/zram_drv.h+63 -10 replies
5/7zram: identify asynchronous IO's return valuedrivers/block/zram/zram_drv.c+24 -80 replies
6/7zram: write incompressible pages to backing devicedrivers/block/zram/zram_drv.c drivers/block/zram/zram_drv.h+99 -100 replies
7/7zram: read page from backing devicedrivers/block/zram/zram_drv.c+118 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/7] writeback incompressible pages to storage

zRam is useful for memory saving with compressible pages but sometime, workload can be changed and system has lots of incompressible pages which is very harmful for zram.

This patch supports writeback feature of zram so admin can set up a block device and with it, zram can save the memory via writing out the incompressile pages once it found it's incompressible pages (1/4 comp ratio) instead of keeping the page in memory.

[1,2] is just clean up and [3-7] is step by step feature enablement. [3-7] is logically not bisectable(ie, logical unit separation) although I tried to compiled out without breaking but I think it would be better to review.

Thanks.

Minchan Kim (7):
[1] zram: inlining zram_compress
[2] zram: rename zram_decompress_page with __zram_bvec_read
[3] zram: add interface to specify backing device
[4] zram: add free space management in backing device
[5] zram: identify asynchronous IO's return value
[6] zram: write incompressible pages to backing device
[7] zram: read page from backing device

 drivers/block/zram/Kconfig    |  13 +
 drivers/block/zram/zram_drv.c | 549 ++++++++++++++++++++++++++++++++++++------
 drivers/block/zram/zram_drv.h |   9 +
 3 files changed, 500 insertions(+), 71 deletions(-)
Signature · 1 line
2.7.4