7
u/StrangeWill Jul 01 '14
Reading off a disk like that will likely just pull from disk cache, which means you're not really testing anything useful.
2
u/RedSquirrelFtw Jul 02 '14
How big is a typical disk cache? I would imagine if you use large enough values it will have to read/write directly. Or is it smart enough to know that everything is 0's and basically just tell the disk "write nn 0's here".
3
u/cstoner Jul 02 '14
How big is a typical disk cache?
As much free RAM as you have.
bonnie++recommends using total IO sized at 2x your RAM to get a valid test.
-1
13
u/drmugg123 Jul 01 '14
Writing only zeroes is not actually a good benchmark of disk performance.