Skip to content

dm-zoned: improve cache performance

Hannes Reinecke dm-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 11 repliesIn review
  2. v12 patches 7 repliesSuperseded

Changes to v1 from the cover letter

- Include reviews from Damien
- Introduce allocation flags
- Terminate reclaim on contention
- Rework original patch series

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6dm-zoned: return NULL if dmz_get_zone_for_reclaim() fails to find a zonedrivers/md/dm-zoned-metadata.c drivers/md/dm-zoned-reclaim.c+4 -41 reply
2/6dm-zoned: separate random and cache zonesdrivers/md/dm-zoned-metadata.c drivers/md/dm-zoned-reclaim.c drivers/md/dm-zoned-target.c +1 more+159 -671 reply
3/6dm-zoned: reclaim random zones when idledrivers/md/dm-zoned-metadata.c drivers/md/dm-zoned-reclaim.c drivers/md/dm-zoned.h+29 -161 reply
4/6dm-zoned: start reclaim with sequential zonesdrivers/md/dm-zoned-reclaim.c+6 -51 reply
5/6dm-zoned: terminate reclaim on congestiondrivers/md/dm-zoned-metadata.c drivers/md/dm-zoned-reclaim.c drivers/md/dm-zoned.h+9 -21 reply
6/6dm-zoned: remove unused variable in dmz_do_reclaim()drivers/md/dm-zoned-reclaim.c+0 -21 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchDamien Le Moal
SeriesT-b
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

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

Read the v2 thread

Cover letter [PATCHv2 0/6] dm-zoned: improve cache performance

Hi all,

here's an update to dm-zoned to separate out cache zones. In the update to metadata version 2 the regular drive was split in emulated zones, which were handled just like 'normal' random write zones.
This causes a performance drop once these emulated zones have been mapped, as typicall the random zones from the zoned drive will perform noticeably slower than those from the regular drive. (After all, that was kinda the idea of using a regular disk in the first place ...)

So in this patchset I've introduced a separate 'cache' zone type, allowing us to differentiate between emulated and real zones. With that we can switch the allocation mode to use only cache zones, and use random zones similar to sequential write zones. That avoids the performance issue noted above.

I've also found that the sequential write zones perform noticeably better on writes (which is all we're caching anyway), so I've added another patch switching the allocation routine from preferring sequential write zones for reclaim.

This patchset also contains some minor fixes like remving an unused variable etc.

As usual, comments and reviews are welcome.

Changes to v1:
- Include reviews from Damien
- Introduce allocation flags
- Terminate reclaim on contention
- Rework original patch series

Hannes Reinecke (6):
dm-zoned: return NULL if dmz_get_zone_for_reclaim() fails to find a
zone
dm-zoned: separate random and cache zones
dm-zoned: reclaim random zones when idle
dm-zoned: start reclaim with sequential zones
dm-zoned: terminate reclaim on congestion
dm-zoned: remove unused variable in dmz_do_reclaim()

 drivers/md/dm-zoned-metadata.c | 140 ++++++++++++++++++++++++++++++-----------
 drivers/md/dm-zoned-reclaim.c  | 109 ++++++++++++++++++++------------
 drivers/md/dm-zoned-target.c   |  19 ++++--
 drivers/md/dm-zoned.h          |  13 +++-
 4 files changed, 196 insertions(+), 85 deletions(-)
Signature · 1 line
2.16.4