Skip to content

RFC dm-zoned: add cache device

Hannes Reinecke dm-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dm-zoned: cache device for zonesdrivers/md/dm-zoned-metadata.c drivers/md/dm-zoned-reclaim.c drivers/md/dm-zoned-target.c +1 more+339 -514 replies
2/2dm-zoned: add 'status' and 'message' callbacksdrivers/md/dm-zoned-metadata.c drivers/md/dm-zoned-target.c drivers/md/dm-zoned.h+68 -03 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH RFC 0/2] dm-zoned: add cache device

Hi Damien,

as my original plan to upgrade bcache to work for SMR devices turned out to be more complex than anticipated I went for the simpler approach and added a 'cache' device for dm-zoned. It is using a normal device (eg '/dev/pmem0' :-), split it into zones of the same size of the original SMR device, and makes those 'virtual' zones avialable to dm-zoned in a similar manner than the existing 'random write' zoned.

The implementation is still a bit rough (one would need to add metadata to the cache device, too), but so far it seems to work quite well; still running after copying 300GB of data back and forth.

As usual, comments and reviews are welcome.

Hannes Reinecke (2):
dm-zoned: cache device for zones
dm-zoned: add 'status' and 'message' callbacks

 drivers/md/dm-zoned-metadata.c | 189 +++++++++++++++++++++++++++++----
 drivers/md/dm-zoned-reclaim.c  |  76 ++++++++++---
 drivers/md/dm-zoned-target.c   | 159 ++++++++++++++++++++++++---
 drivers/md/dm-zoned.h          |  34 +++++-
 4 files changed, 407 insertions(+), 51 deletions(-)
Signature · 1 line
2.25.0