Understanding Disk Caches, The Journal, Barriers, and Writeback Using QEMU/KVM and EXT4
There are multiple layers of caching involved when writing a file before it makes it to permanent storage on your disk. This becomes even more complicated with a virtual machine which has its own set of caches. Let's explore how exactly writes make it safely to your disk, both on a physical server and a VM.