sfence · shipping · also Store Fence, store-fence instruction

SFENCE

SFENCE is an x86 instruction that orders earlier stores to become globally visible before later stores.

Scope: SFENCE does not order memory loads or LFENCE. Store visibility is not, by itself, proof that data will survive a power failure. [1]

On an ADR-backed persistent-memory mapping, write back the required cache lines before the fence. A detected eADR domain can remove explicit cache-line writeback, but ordering obligations remain. A fence does not make ordinary DRAM nonvolatile. [2]

Batching: a mapping-specific drain can complete prior flushes without a separate drain for each region. Mappings can share one drain call when their drain function is the same. This does not flush arbitrary dirty data or provide an atomic commit. [3] [4]

Recovery must tolerate stores becoming persistent before an explicit persist call. Completing persistence of a range does not make a multi-line update all-or-nothing. [4]

Relations

related
CLWB, CLFLUSHOPT, Persistence ordering, Extended Asynchronous DRAM Refresh

Citations

  1. Intel SDM 093, Vol. 2B: SFENCE, printed page 4-628. (accessed 2026-11-28)
  2. PMem project glossary: Fence, ADR and eADR. (accessed 2026-11-28)
  3. PMDK 1.13.1: pmem2_get_drain_fn, mapping-specific flush completion. (accessed 2026-11-28)
  4. PMDK 1.13.1: pmem2_get_persist_fn, batching and non-transactional semantics. (accessed 2026-11-28)

Further reading

  1. Hesela: Persistent memory: DAX is not a durable commit. (accessed 2026-11-28)
Sources & caveats
  • Instruction semantics follow Intel SDM revision 093, September 2026. The PMDK interface contract is pinned to 1.13.1.
  • Source synthesis only; no persistent-memory device, power-cut experiment or latency measurement.

JSON: /data/terms/sfence.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. SFENCE. Hesela. 2026-11-28. https://hesela.dev/terms/sfence/