All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/2] dm-zoned: add cache device
@ 2020-03-23 15:03 Hannes Reinecke
  2020-03-23 15:03 ` [PATCH 1/2] dm-zoned: cache device for zones Hannes Reinecke
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Hannes Reinecke @ 2020-03-23 15:03 UTC (permalink / raw)
  To: Damien LeMoal; +Cc: dm-devel, Johannes Thumshirn, Mike Snitzer

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(-)

-- 
2.25.0

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-03-24  9:03 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-23 15:03 [PATCH RFC 0/2] dm-zoned: add cache device Hannes Reinecke
2020-03-23 15:03 ` [PATCH 1/2] dm-zoned: cache device for zones Hannes Reinecke
2020-03-24  3:52   ` Damien Le Moal
2020-03-24  4:22     ` Bob Liu
2020-03-24  7:51     ` Hannes Reinecke
2020-03-24  9:03       ` Damien Le Moal
2020-03-23 15:03 ` [PATCH 2/2] dm-zoned: add 'status' and 'message' callbacks Hannes Reinecke
2020-03-24  3:54   ` Damien Le Moal
2020-03-24  3:59     ` Mike Snitzer
2020-03-24  4:01       ` Damien Le Moal
2020-03-23 15:15 ` [PATCH RFC 0/2] dm-zoned: add cache device Mike Snitzer
2020-03-23 15:26   ` Hannes Reinecke
2020-03-23 15:39     ` Mike Snitzer
2020-03-23 16:10       ` Hannes Reinecke
2020-03-23 16:52         ` Mike Snitzer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.