xfs-allocation-group · shipping · also XFS AG

XFS allocation group

An XFS allocation group is a region of the filesystem data section with its own free-space and inode allocation metadata.

Related Observatory article: Read on hesela.com

Allocation groups let allocation work proceed in parallel within one filesystem. They are not separate filesystems or replicated copies, and their boundaries do not themselves provide hardware fault isolation. A higher group count is not a universal speedup: allocation overhead can rise, especially near full capacity. [1]

Layout: fixed-location structures include the superblock, AGF, AGI and AGFL; their headers lead to the group's allocation indexes. Most other metadata is dynamically placed. Free-space-tree ownership is identified by allocation group, unlike extent-tree ownership by inode. [1] [2]

The AGFL is a reserve of blocks for the free-space and reverse-mapping B-trees, not a list of all free extents. Those trees also use XFS_RMAP_OWN_AG ownership. An ownership record alone therefore does not distinguish a block still on the reserve list from one already used by these indexes. [4]

Observation: an AG header lock protects a stage of metadata work, not an entire chain of deferred operations. For AG-wide cross-checks, Linux v6.16 tests for pending intents and can drop locks, wait and retry. Inode-oriented checking has a separate lock-based path. A transient mismatch between indexes must not automatically be classified as persistent corruption. [3] [4]

Relations

related
XFS, Inode, XFS deferred operation

Citations

  1. xfsprogs xfs(5): allocation groups, local indexes and allocation parallelism (accessed 2026-11-30)
  2. Linux v6.16: XFS self-describing metadata, fixed headers and ownership (accessed 2026-11-30)
  3. Linux v6.16: xchk_perag_drain_and_lock, pending intents and inode-lock exception (accessed 2026-11-30)
  4. Linux v6.16: XFS Online Fsck Design, eventual consistency and intent drains (accessed 2026-11-30)
Sources & caveats
  • Source synthesis covering ordinary data-section allocation groups, not realtime groups or zoned-XFS garbage collection.
  • The isolation distinction follows the filesystem layout; no hardware-failure or allocation-performance experiment was performed.

JSON: /data/terms/xfs-allocation-group.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. XFS allocation group. Hesela. 2026-11-30. https://hesela.dev/terms/xfs-allocation-group/