dm-striped
dm-striped is a Linux device-mapper target that distributes consecutive fixed-size chunks cyclically across backing devices without adding redundancy.
Scope: The table target is named striped. It implements RAID-0-style placement, not the separate dm-raid target. Striping supplies neither parity nor an extra copy; configured destinations need not be independent physical failure domains. [1] [2]
Geometry: Table addresses, chunk sizes and backing offsets use 512-byte sectors, not physical-sector sizes. The v6.12 guide specifies chunks at least as large as PAGE_SIZE and a segment length divisible by chunk size times destination count. Core checks also constrain backing ranges and alignment. [1] [3] [4]
Mapping uses the sector's offset from this target's start. For relative sector x, N destinations and C-sector chunks, the destination is floor(x/C) mod N. Its sector is the configured backing offset plus floor(x/(N*C))*C + (x mod C). The mapping arithmetic handles non-power-of-two counts and chunks. [2] [5]
The linked arithmetic-only example uses three destinations and 8-sector chunks; 8 sectors is 4 KiB, not a universal PAGE_SIZE. It checks address placement without loading a kernel mapping. Parallel throughput remains workload- and device-dependent; a geometry hint is not a benchmark. [6] [1]
Relations
- related
- Device-mapper, RAID 0, Stripe unit, dm-unstriped, dm-linear
Citations
- Linux v6.12: dm-stripe target documentation and geometry
- Linux v6.12: dm-stripe.c, stripe_ctr, stripe_map_sector and stripe_io_hints
- Linux v6.12: 512-byte sector address units in blk_types.h
- Linux v6.12: dm-table.c backing capacity and alignment validation
- Linux v6.12: dm_target_offset in device-mapper.h
- Hesela: executable arithmetic-only striped address mapping and independent tests
Sources & caveats
- Source synthesis pinned to Linux v6.12; no block device, filesystem or storage configuration was modified.
- The PAGE_SIZE minimum is a documentation requirement, not a check performed by stripe_ctr itself; arithmetic validity is not proof of kernel table acceptance.
- The constructed example tests target-relative mapping and offset accounting, not device throughput, crash recovery or failure incidence.