lazytime · shipping · also lazytime, MS_LAZYTIME

Lazy timestamp persistence

Lazytime is a Linux filesystem policy that defers writing selected inode timestamp changes to storage while retaining their updated values in memory.

Related Observatory article: Lazy timestamp persistence on hesela.com

The policy applies to atime, mtime and ctime. Documented persistence triggers include other inode changes, fsync(), syncfs(), sync(), eviction of an undeleted inode and aged timestamp writeback. strictatime and lazytime can be combined: update selection and persistence are separate decisions. [1]

Do not interpret the manual's 24-hour description as an unconditional durability deadline. Linux v6.12 initializes its dirtytime interval to 12 hours and describes possible two-interval behavior; dirtytime_expire_seconds tunes both writeback eligibility and worker wakeups. [2] [3]

fdatasync() may omit atime and mtime updates because those fields are not needed to retrieve file data. It is not interchangeable with fsync() when timestamp persistence matters. Neither policy establishes payload identity or a consistent backup snapshot. [4]

Relations

related
Relative access-time updates, File access time, File modification time, Inode change time, fsync, fdatasync

Advantages

  • Can defer timestamp-only inode writes while keeping current timestamps visible in memory.

Limitations

  • Timestamp updates still pending in memory may be lost in a crash.
  • A scheduling interval is not proof that a particular update reached storage.

Citations

  1. Linux mount(2): MS_LAZYTIME and timestamp policy (accessed 2026-11-09)
  2. Linux v6.12 fs/fs-writeback.c: dirtytime interval and writeback (accessed 2026-11-09)
  3. Linux 6.12 VM documentation: dirtytime_expire_seconds (accessed 2026-11-09)
  4. Linux fsync(2): timestamp metadata and fdatasync (accessed 2026-11-09)

Further reading

  1. Hesela: timestamp selection is separate from persistence (accessed 2026-11-09)
Sources & caveats
  • Source synthesis, with implementation details scoped to Linux v6.12; no crash test or measured performance claim.

JSON: /data/terms/lazytime.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Lazy timestamp persistence. Hesela. 2026-11-09. https://hesela.dev/terms/lazytime/