Earlier quoted context omitted.
It was the instruction for interacting with XPoint DIMMs (I wouldn't call them SSDs but whatever), but now you just use CLWB instead.
Previously you would use CLWB, SFENCE, then PCOMMIT. Now you use CLWB, then SFENCE.
Deprecating the PCOMMIT Instruction
11–20 of 26 posts
Re: Deprecating the PCOMMIT Instruction
#12Re: Deprecating the PCOMMIT Instruction
#13They've either just averted or triggered a temporal paradox, I'm not sure which
Re: Deprecating the PCOMMIT Instruction
#14This is a nice improvement. Now instead of having sfence/pcommit/sfence to flush writes to nvram, you would use just an sfence to ensure ordering with subsequent stores (e.g. a store that publishes the written data.) Its analogous to fysnc() to ensure data reaches the disk in a way that survives power failure. This is like just treating all writes as fsynced and not needing to worry about fsync at all, like with O_DI…
Re: Deprecating the PCOMMIT Instruction
#15Does GCC use PCOMMIT?
Re: Deprecating the PCOMMIT Instruction
#16Re: Deprecating the PCOMMIT Instruction
#17Re: Deprecating the PCOMMIT Instruction
#18It looks like the encoding of PCOMMIT (+66 0F AE/7) is basically the same as CLFLUSH except with a +66 prefix, so if a CPU doesn't know about PCOMMIT it'll probably try to execute it as a CLFLUSH with an ignored prefix.
But hopefully this "deprecated" information stays around, if for nothing other than "archaeological" purposes:
Re: Deprecating the PCOMMIT Instruction
#19Re: Deprecating the PCOMMIT Instruction
#20Earlier quoted context omitted.
This isn't the kind of instruction a compiler would emit for regular code.
What would this be used for?
Obvious applications are filesystems and databases.