{
  "slug": "clflushopt",
  "term": "CLFLUSHOPT",
  "aliases": [
    "Cache Line Flush Optimized",
    "optimized cache-line flush"
  ],
  "definition": "CLFLUSHOPT is an x86 instruction that invalidates a CPU cache line across its coherence domain and writes back any modified contents.",
  "note": "Support is advertised by CPUID leaf 7, subleaf 0, EBX bit 23. Speculative refills can occur around invalidation, so a later cache miss is not guaranteed. [intel-sdm-cl]\n\nMultiple flushes can overlap. A following SFENCE supplies the ordering needed before relying on their completion in the persistent-memory protocol. This is a CPU-cache operation, not a storage-device cache-flush command. [pmem-glossary]\n\nUse the persistence function for the actual mapping. Persisting a range neither combines it into a transaction nor prevents some stores from becoming durable earlier. [pmdk-persist]",
  "related": [
    "clwb",
    "persistence-domain",
    "adr",
    "eadr",
    "cache-flush",
    "sfence"
  ],
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-28",
  "citations": [
    {
      "id": "intel-sdm-cl",
      "title": "Intel SDM 093, Vol. 2A: CLFLUSHOPT (3-146) and CLWB (3-154).",
      "url": "https://cdrdv2-public.intel.com/929353/253666-093-sdm-vol-2a.pdf",
      "accessed": "2026-11-28"
    },
    {
      "id": "pmem-glossary",
      "title": "PMem project glossary: CLWB, CLFLUSHOPT, ADR, eADR and fences.",
      "url": "https://pmem.io/glossary/",
      "accessed": "2026-11-28"
    },
    {
      "id": "pmdk-persist",
      "title": "PMDK 1.13.1: pmem2_get_persist_fn, flush/drain and non-transactional semantics.",
      "url": "https://github.com/pmem/pmdk/blob/1.13.1/doc/libpmem2/pmem2_get_persist_fn.3.md",
      "accessed": "2026-11-28"
    },
    {
      "id": "hesela-pmem",
      "title": "Hesela: Persistent memory: DAX is not a durable commit.",
      "url": "https://hesela.com/analyses/pmem-persistence-domains-dax/#cache-line-writeback",
      "accessed": "2026-11-28"
    }
  ],
  "provenance": [
    "Instruction semantics follow Intel SDM revision 093. PMDK API behavior is pinned to version 1.13.1, not asserted to be the latest release.",
    "Source synthesis only; no persistent-memory device, power-cut experiment or latency measurement."
  ]
}
