{
  "status": "shipping",
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-23",
  "advantages": [],
  "limitations": [],
  "slug": "hdf5-chunked-layout",
  "term": "HDF5 chunked layout",
  "aliases": [
    "HDF5 chunked storage",
    "HDF5 dataset chunk"
  ],
  "definition": "An HDF5 chunked layout divides a dataset into fixed-shape array blocks that can be stored and filtered separately.",
  "note": "Geometry: chunk dimensions are chosen at dataset creation. Compression and other filters operate on chunks; selecting a few values can require processing a whole filtered chunk. A different chunk shape requires rewriting the dataset. [h5py-dataset]\n\nByte accounting: a 32 by 32 chunk of four-byte integers expands to 4,096 bytes, regardless of its smaller compressed size. In a measured scalar-read trace, a cache large enough for the compressed bytes but smaller than the decoded chunk still reread that chunk for each selection. [hesela-cache]\n\nTerminology: array chunk geometry is distinct from content-defined chunking, which places boundaries based on byte content for purposes such as deduplication. [h5py-dataset] [hesela-cdc]\n\nChecksum coverage: explicitly skipping filters on partial edge chunks can leave Fletcher32 declared without protecting that edge. In the HDF5 1.14.6 control, its reported mask was zero; the default edge policy detected the same mutation. Dataset extent, edge options and reader policy therefore matter alongside the filter inventory. [h5-edge-api] [hesela-verification]\n\nVariable-length data: string payloads reside in separate heaps outside the dataset filter pipeline. Compressed chunk bytes can therefore describe descriptors rather than compressed text, and cannot alone establish total file size. [h5-vlen-heaps]\n\nRaw transfer: filter-mask bits identify positions in the destination pipeline. A source mask cannot be assumed compatible with a different ordered pipeline. In a two-build test, Fletcher32 verified intact bytes before an incorrectly declared inverse shuffle changed the decoded array; explicitly skipping shuffle preserved values while retaining checksum rejection. [h5-transplant-api] [h5-transplant-shuffle] [hesela-transplant]",
  "related": [
    "hdf5",
    "hdf5-raw-data-chunk-cache",
    "content-defined-chunking",
    "hdf5-global-heap"
  ],
  "citations": [
    {
      "id": "h5py-dataset",
      "title": "h5py 3.15: Datasets, chunked storage and filter pipeline",
      "url": "https://docs.h5py.org/en/3.15.0/high/dataset.html",
      "accessed": "2026-10-17"
    },
    {
      "id": "hesela-cache",
      "title": "Hesela: HDF5 chunk cache, measured file-driver reads",
      "url": "https://hesela.com/analyses/hdf5-chunk-cache-read-amplification/",
      "accessed": "2026-10-17"
    },
    {
      "id": "hesela-cdc",
      "title": "Hesela: Content-defined chunking boundaries",
      "url": "https://hesela.com/analyses/content-defined-chunking-boundaries/",
      "accessed": "2026-10-17"
    },
    {
      "id": "h5-edge-api",
      "title": "HDF Group: H5Pset_chunk_opts, partial-edge filtering policy",
      "url": "https://support.hdfgroup.org/documentation/hdf5/latest/group___d_c_p_l.html",
      "accessed": "2026-10-19"
    },
    {
      "id": "hesela-verification",
      "title": "Hesela: HDF5 checksum coverage and reader-state observations",
      "url": "https://hesela.dev/datasets/hdf5-checksum-coverage/",
      "accessed": "2026-10-19"
    },
    {
      "id": "h5-vlen-heaps",
      "title": "HDF Group: H5Pset_filter, variable-length heaps and filter scope",
      "url": "https://portal.hdfgroup.org/documentation/hdf5/latest/group___o_c_p_l.html",
      "accessed": "2026-10-20"
    },
    {
      "id": "h5-transplant-api",
      "title": "HDF5 1.14.6: direct-chunk API contract and positional filter mask",
      "url": "https://raw.githubusercontent.com/HDFGroup/hdf5/hdf5_1.14.6/src/H5Dpublic.h",
      "accessed": "2026-10-23"
    },
    {
      "id": "h5-transplant-shuffle",
      "title": "HDF5 1.14.6: shuffle parameter and inverse byte-lane transformation",
      "url": "https://raw.githubusercontent.com/HDFGroup/hdf5/hdf5_1.14.6/src/H5Zshuffle.c",
      "accessed": "2026-10-23"
    },
    {
      "id": "hesela-transplant",
      "title": "Hesela: native HDF5 raw-chunk interpretation observations and reproduction bundle",
      "url": "https://hesela.dev/research/hdf5-chunk-transplant/summary.json",
      "accessed": "2026-10-23"
    }
  ]
}
