X86 persistency instruction

The instruction clwb, clflush, clflushopt writes cache line back asynchronously

  • clwb and clflushopt is semantically equivalent, but clflushopt invalidates the cache line. Therefore clwb provides better performance.
  • However, clwb does not guarantee it perserves the cache line. It’s just a ‘maybe’.
  • clflush is stronger in terms of ordering. See Px86 for details.