Skip to content

dm-zoned: multiple drive support

Hannes Reinecke dm-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest15 patches 3 repliesIn review
  2. v314 patches 8 repliesSuperseded
  3. v215 patches 16 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC12 patches21 repliesSuperseded

Changes to v1 from the cover letter

- Include reviews from Damien
- Reshuffle patches

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15dm-zoned: add debugging message for reading superblocksdrivers/md/dm-zoned-metadata.c+4 -00 replies
2/15dm-zoned: secondary superblock must reside on the same devices than primary superblockdrivers/md/dm-zoned-metadata.c+2 -30 replies
3/15dm-zoned: improve logging messages for reclaimdrivers/md/dm-zoned-reclaim.c+10 -30 replies
4/15dm-zoned: add a 'reserved' zone flagdrivers/md/dm-zoned-metadata.c drivers/md/dm-zoned.h+4 -20 replies
5/15dm-zoned: convert to xarraydrivers/md/dm-zoned-metadata.c+88 -320 replies
6/15dm-zoned: temporary superblock for tertiary devicesdrivers/md/dm-zoned-metadata.c+61 -480 replies
7/15dm-zoned: add device pointer to struct dm_zonedrivers/md/dm-zoned-metadata.c drivers/md/dm-zoned-reclaim.c drivers/md/dm-zoned-target.c +1 more+19 -390 replies
8/15dm-zoned: add metadata pointer to struct dmz_devdrivers/md/dm-zoned-metadata.c drivers/md/dm-zoned.h+13 -80 replies
9/15dm-zoned: per-device reclaimdrivers/md/dm-zoned-reclaim.c drivers/md/dm-zoned-target.c drivers/md/dm-zoned.h+88 -570 replies
10/15dm-zoned: move random and sequential zones into struct dmz_devdrivers/md/dm-zoned-metadata.c drivers/md/dm-zoned-reclaim.c drivers/md/dm-zoned-target.c +1 more+119 -780 replies
11/15dm-zoned: support arbitrary number of devicesdrivers/md/dm-zoned-metadata.c drivers/md/dm-zoned-target.c+75 -460 replies
12/15dm-zoned: allocate zone by device indexdrivers/md/dm-zoned-metadata.c drivers/md/dm-zoned-reclaim.c drivers/md/dm-zoned.h+15 -80 replies
13/15dm-zoned: select reclaim zone based on device indexdrivers/md/dm-zoned-metadata.c drivers/md/dm-zoned-reclaim.c drivers/md/dm-zoned-target.c +1 more+27 -320 replies
14/15dm-zoned: prefer full zones for reclaimdrivers/md/dm-zoned-metadata.c+8 -10 replies
15/15dm-zoned: check superblock locationdrivers/md/dm-zoned-metadata.c+9 -10 replies

Reviews trailers per patch

13 of 15 patches have a Reviewed-by or Acked-by.

PatchDamien Le Moal
1/15R-b
2/15R-b
3/15R-b
4/15R-b
5/15R-b
6/15R-b
7/15R-b
8/15R-b
9/15R-b
10/15R-b
11/15
12/15R-b
13/15R-b
14/15R-b
15/15

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

Read the v4 thread

Cover letter [PATCHv4 00/15] dm-zoned: multiple drive support

Hi all,

here's the second version of my patchset to support multiple zoned drives with dm-zoned.
This patchset:
- Converts the zone array to using xarray for better scalability
- Separates out shared structures into per-device structure
- Enforce drive-locality for allocating and reclaiming zones
- Lifts the restriction of 2 devices to handle an arbitrary number of drives.

This gives me a near-perfect scalability by increasing the write speed from 150MB/s (for a cache and one zoned drive) to 300MB/s (for a cache and two zoned drives).

Changes to v1:
- Include reviews from Damien
- Reshuffle patches
Changes to v2:
- Add reviews from Damien
- Merge patches 'dynamic device allocation' and 'support arbitrary number of devices'
- Fix memory leak when reading tertiary superblocks Changes to v3:
- Add reviews from Damien
- Add patch to ensure correct device ordering

Hannes Reinecke (15):
dm-zoned: add debugging message for reading superblocks
dm-zoned: secondary superblock must reside on the same devices than
primary superblock
dm-zoned: improve logging messages for reclaim
dm-zoned: add a 'reserved' zone flag
dm-zoned: convert to xarray
dm-zoned: temporary superblock for tertiary devices
dm-zoned: add device pointer to struct dm_zone
dm-zoned: add metadata pointer to struct dmz_dev
dm-zoned: per-device reclaim
dm-zoned: move random and sequential zones into struct dmz_dev
dm-zoned: support arbitrary number of devices
dm-zoned: allocate zone by device index
dm-zoned: select reclaim zone based on device index
dm-zoned: prefer full zones for reclaim
dm-zoned: check superblock location

 drivers/md/dm-zoned-metadata.c | 463 +++++++++++++++++++++++++----------------
 drivers/md/dm-zoned-reclaim.c  |  95 +++++----
 drivers/md/dm-zoned-target.c   | 169 +++++++++------
 drivers/md/dm-zoned.h          |  77 ++++---
 4 files changed, 494 insertions(+), 310 deletions(-)
Signature · 1 line
2.16.4