{
  "status": "shipping",
  "advantages": [
    {
      "text": "A synchronous request can complete once its records are on the log, without waiting for the next transaction group to sync.",
      "citationIds": [
        "zil-source"
      ]
    }
  ],
  "limitations": [
    {
      "text": "zil_slog_bulk, 64 MiB by default, caps the synchronous-priority SLOG write size per commit, and larger commits continue at asynchronous priority.",
      "citationIds": [
        "zfs-params"
      ]
    },
    {
      "text": "Disabling cache flushes with zil_nocacheflush can corrupt the log on power loss when a volatile out-of-order write cache is enabled.",
      "citationIds": [
        "zfs-params"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-25",
  "slug": "zfs-intent-log",
  "term": "ZFS Intent Log",
  "aliases": [
    "ZIL"
  ],
  "definition": "The ZFS Intent Log is a per-dataset recovery log that can persist filesystem operations before their transaction group reaches stable storage.",
  "note": "Intent records stay in memory until their TXG commits or until a synchronous request such as fsync or O_DSYNC commits them to the on-disk ZIL. After a crash, persisted records replay when the dataset is first instantiated. Log blocks are allocated from the main pool by default, or preferably from a dedicated log device. [zil-source] [pool-man] A copied record carries the data, up to zil_maxcopied of 7.5 KiB by default, while an indirect record points to a block written outside the log. Writes larger than zfs_immediate_write_sz, 32 KiB by default, are handled as with logbias=throughput. [zil-header] [zfs-params] Transaction-data byte counters do not measure physical SLOG writes. [zil-header]",
  "related": [
    "zfs-separate-log",
    "zfs-transaction-group",
    "fsync",
    "write-ahead-log",
    "crash-consistency",
    "zfs"
  ],
  "citations": [
    {
      "id": "zil-source",
      "title": "OpenZFS 2.3.4: zil.c, log lifecycle, zil_commit and zil_replay",
      "url": "https://github.com/openzfs/zfs/blob/zfs-2.3.4/module/zfs/zil.c",
      "accessed": "2026-10-23"
    },
    {
      "id": "pool-man",
      "title": "OpenZFS 2.3: zpoolconcepts(7), Intent Log and Cache Devices",
      "url": "https://openzfs.github.io/openzfs-docs/man/v2.3/7/zpoolconcepts.7.html",
      "accessed": "2026-10-23"
    },
    {
      "id": "zil-header",
      "title": "OpenZFS 2.3.4: zil.h, indirect and copied log records; statistics units",
      "url": "https://github.com/openzfs/zfs/blob/zfs-2.3.4/include/sys/zil.h",
      "accessed": "2026-10-23"
    },
    {
      "id": "zfs-params",
      "title": "zfs(4) module parameters at tag zfs-2.3.4: ZIL tunables",
      "url": "https://github.com/openzfs/zfs/blob/zfs-2.3.4/man/man4/zfs.4",
      "accessed": "2026-10-23"
    }
  ],
  "provenance": [
    "zil-source and zil-header re-read 2026-10-23 at tag zfs-2.3.4 for the in-memory lifecycle, replay point and record types. pool-man re-read for log placement. zfs-params is the zfs(4) page at the same tag, read for zil_maxcopied, zfs_immediate_write_sz, zil_slog_bulk and zil_nocacheflush.",
    "The database-checkpoint entry links here because intent records become discardable once their transaction group commits, as log records do after a checkpoint."
  ]
}
