Utility to find ideal blocksize.
Utility to find ideal blocksize.
Posted Mar 9, 2011 15:50 UTC (Wed) by arnd (subscriber, #8866)In reply to: Utility to find ideal blocksize. by gmatht
Parent article: Optimizing Linux with cheap flash drives
flashbench --open-au --open-au-nr=<NR> --erasesize=$[4096 * 1024] [ --random ]
with varying values for NR. With low numbers, it will be fast for all block sizes, while with large numbers of open segments, the time to write all segments is basically independent of the block size, because every write forces a garbage collection on one of the other open segments.
There is usually a very sharp contrast between the slow and fast results, e.g. five being very fast but six already being very slow.
