3 ms·
Unless you are optimizing for a specific SSD with known quantities there is no real way to do that. The high-level optimizations are important: * Choose a good
by baruch 11y ago
Unless you are optimizing for a specific SSD with known quantities there is no real way to do that.
The high-level optimizations are important:
* Choose a good SSD
* Read and Write in "page" multiples and "page" aligned
* Use lots of parallel IOs (high queue depth)
* Do not put unrelated data in the same "page"
A page used to be 4KB, SSDs are now switching to 8KB and will switch to 16KB later on. Just pick a reasonable size around that (16KB if you can do it will last you a while). Don't sweat the page multiples too much, the SSDs will most likely have to handle 4KB pages for a long while due to databases and such so they will keep some optimization around that size anyhow, it will make it easier for them if you use a larger size.
I wouldn't heed any of the advice on single-threading, the biggest performance boost comes from parallelism and writes are anyway buffered by the SSD (a good SSD has a super-cap to have a good sized write cache).