|
|
Subscribe / Log in / New account

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

The results you found are very typical, and match what the flashbench tool referenced in the last sentence of the article finds on many media. The other interesting number is how many (4MB) segments can be written to alternating, which you can find out with

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.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds