[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Disk drive zero-fill benchmarks for various synchronization methods and block sizes



On Mon, Sep 16, 2024 at 11:15:50AM +0200, tomas@tuxteam.de wrote:
Actually, dd doesn't "do" file system cache (unless you are dd'ing
to a file, of course).

Incorrect; linux block device accesses cache unless specifically asked not to. This is very easy to demonstrate: run something like "dd if=/dev/nvme0n1 bs=1M count=1000" twice, and you'll see that the second run is significantly faster than the first. (Correct for a block device you actually have, and this assumes that you have more than 1G of unused RAM available for cache.)


Reply to: