Skip to content

zram idle page writeback

Minchan Kim lkml stable 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 4 repliesIn review
  2. v37 patches 15 repliesSuperseded 1 of 7 applied
  3. v27 patches 12 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches12 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7zram: fix lockdep warning of free block handlingdrivers/block/zram/zram_drv.c drivers/block/zram/zram_drv.h+22 -180 replies
2/7zram: fix double free backing devicedrivers/block/zram/zram_drv.c+3 -10 replies
3/7zram: refactoring flags and writeback stuffdrivers/block/zram/zram_drv.c drivers/block/zram/zram_drv.h+44 -690 replies
4/7zram: introduce ZRAM_IDLE flagDocumentation/ABI/testing/sysfs-block-zram Documentation/blockdev/zram.txt drivers/block/zram/zram_drv.c +1 more+69 -70 replies
5/7zram: support idle/huge page writebackDocumentation/ABI/testing/sysfs-block-zram Documentation/blockdev/zram.txt drivers/block/zram/Kconfig +2 more+209 -790 replies
6/7zram: add bd_stat statisticsDocumentation/ABI/testing/sysfs-block-zram Documentation/blockdev/zram.txt drivers/block/zram/zram_drv.c +1 more+53 -00 replies
7/7zram: writeback throttleDocumentation/ABI/testing/sysfs-block-zram Documentation/blockdev/zram.txt drivers/block/zram/zram_drv.c +1 more+91 -33 replies

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJoey PabalinasSergey Senozhatsky
SeriesR-b
1/7R-b R-b
2/7R-b R-b
3/7R-b R-b
4/7R-b R-b
5/7R-b R-b
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/7] zram idle page writeback

Inherently, swap device has many idle pages which are rare touched since it was allocated. It is never problem if we use storage device as swap. However, it's just waste for zram-swap.

This patchset supports zram idle page writeback feature.

* Admin can define what is idle page "no access since X time ago"
* Admin can define when zram should writeback them
* Admin can define when zram should stop writeback to prevent wearout

Detail is on each patch's description.

Below first two patches are -stable material so it could go first separately with others in this series.

zram: fix lockdep warning of free block handling
zram: fix double free backing device

* from v3
- add more words in changelog - akpm
- clarification writeback limit - akpm
- fix 4k unit of bd_stat - akpm
- change writeback_limit interface - minchan
- add reviewed-by - sergey, joey

* from v2
- use strscpy instead of strlcpy - Joey Pabalinas
- remove irqlock for bitmap op - akpm
- don't use page as stat unit - akpm

* from v1
- add fix dobule free backing device - minchan
- change writeback/idle interface - minchan
- remove direct incompressible page writeback - sergey

Minchan Kim (7):
zram: fix lockdep warning of free block handling
zram: fix double free backing device
zram: refactoring flags and writeback stuff
zram: introduce ZRAM_IDLE flag
zram: support idle/huge page writeback
zram: add bd_stat statistics
zram: writeback throttle

 Documentation/ABI/testing/sysfs-block-zram |  32 ++
 Documentation/blockdev/zram.txt            |  80 +++-
 drivers/block/zram/Kconfig                 |   5 +-
 drivers/block/zram/zram_drv.c              | 502 +++++++++++++++------
 drivers/block/zram/zram_drv.h              |  19 +-
 5 files changed, 476 insertions(+), 162 deletions(-)
Signature · 1 line
2.20.0.rc1.387.gf8505762e3-goog