How much would it cost for every NVMe drive to have a non-volatile cache?
How much would it cost for every NVMe drive to have a non-volatile cache?
Posted Mar 9, 2026 16:20 UTC (Mon) by Wol (subscriber, #4433)In reply to: How much would it cost for every NVMe drive to have a non-volatile cache? by farnz
Parent article: The ongoing quest for atomic buffered writes
Did NVRAM use to be 4KiB blocks? Can you still get it?
Okay, I don't know the cost implications, but couldn't you write your 4K updates to a 4K NVRAM cache, and then use normal DRAM as your cache for actually doing your "read 1MiB in, update 4K, write 1 MiB out"? And then you just need to be able to flush your incoming data to the 4K NVRAM on a power fail, which is an easier problem than flushing everything to the permanent backing store?
(And have a "here is a 1MiB write" command, so if the OS is streaming data to disk it can still send data in chunks that match the NVMe block size for efficiency).
Cheers,
Wol
