summaryrefslogtreecommitdiffstats
tag namerealtime-groups_2024-04-01 (a8ab182baeb06f6ade6e1b5413d66b8335dc2fb9)
tag date2024-04-01 21:37:28 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit 8d24e62412...
downloadxfs-linux-realtime-groups_2024-04-01.tar.gz
xfsprogs: shard the realtime section [v2.0 27/50]
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. This has been running on the djcloud for months with no problems. Enjoy! Signed-off-by: Darrick J. Wong <djwong@kernel.org> -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQ2qTKExjcn+O1o2YRKO3ySh0YRpgUCZguLiAAKCRBKO3ySh0YR pnRfAP4xAjamWOYi1No3e++KBw5BkqDqTrZIVSNcdhpmA190TgEAhT3qsU+vcVo3 HUmDES/C4pai1XXbVYFwOD94Fe+3Kws= =o9Z/ -----END PGP SIGNATURE-----