summaryrefslogtreecommitdiffstats
tag namerealtime-groups_2023-06-15 (863530ad656246e66a08b4fd346ffafd70891db9)
tag date2023-06-15 18:46:14 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit 40e75bc75b...
downloadxfs-linux-realtime-groups_2023-06-15.tar.gz
xfsprogs: shard the realtime section [v1.0]
Right now, the realtime section uses a single pair of metadata inodes to store the free space information. This presents a scalability problem since every thread trying to allocate or free rt extents have to lock these files. It would be very useful if we could begin to tackle these problems by sharding the realtime section, so create the notion of realtime groups, which are similar to allocation groups on the data section. While we're at it, define a superblock to be stamped into the start of each rt section. This enables utilities such as blkid to identify block devices containing realtime sections, and helpfully avoids the situation where a file extent can cross an rtgroup boundary. The best advantage for rtgroups will become evident later when we get to adding rmap and reflink to the realtime volume, since the geometry constraints are the same for rt groups and AGs. Hence we can reuse all that code directly. Signed-off-by: Darrick J. Wong <djwong@kernel.org> -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQ2qTKExjcn+O1o2YRKO3ySh0YRpgUCZIu+5gAKCRBKO3ySh0YR pudRAP49TqnsLIrrDRFIB0E03jeaOF+TbLxPqKDPow56pCKeYQD9G9uFlaPWiOt6 l0Ska3I1iDUK1zW3bZiZrFDWDxkLRAk= =9PCc -----END PGP SIGNATURE-----