I found this somewhere:
In windows, if you go device manager, then disks, then pick the drive you're using, then go to the policies tab your disks always seem to be using "Better Performance", which means it's using write-back. To use write-through you'd have to instead set your disk to "Quick Removal". The only problem is windows 10 won't let me set it to Quick Removal, cause whenever I choose it Windows says it needs to restart to apply the changes but after the restart it always defaults back to Better Performance option.
I'm curious if write-through can have any benefits in many games where I get random intermittent stutters. Maybe using write-through will fix those?
(I couldn't make heads or tails of the above, but it sounds experty)The benefit of write-through to main memory is that it simplifies the design of the computer system. With write-through, the main memory always has an up-to-date copy of the line. So when a read is done, main memory can always reply with the requested data.
If write-back is used, sometimes the up-to-date data is in a processor cache, and sometimes it is in main memory. If the data is in a processor cache, then that processor must stop main memory from replying to the read request, because the main memory might have a stale copy of the data. This is more complicated than write-through.
Also, write-through can simplify the cache coherency protocol because it doesn't need the Modify state. The Modify state records that the cache must write back the cache line before it invalidates or evicts the line. In write-through a cache line can always be invalidated without writing back since memory already has an up-to-date copy of the line.
One more thing - on a write-back architecture software that writes to memory-mapped I/O registers must take extra steps to make sure that writes are immediately sent out of the cache. Otherwise writes are not visible outside the core until the line is read by another processor or the line is evicted.
In windows, if you go device manager, then disks, then pick the drive you're using, then go to the policies tab your disks always seem to be using "Better Performance", which means it's using write-back. To use write-through you'd have to instead set your disk to "Quick Removal". The only problem is windows 10 won't let me set it to Quick Removal, cause whenever I choose it Windows says it needs to restart to apply the changes but after the restart it always defaults back to Better Performance option.
I'm curious if write-through can have any benefits in many games where I get random intermittent stutters. Maybe using write-through will fix those?