Optimizing Linux with cheap flash drives
Optimizing Linux with cheap flash drives
Posted Feb 19, 2011 8:47 UTC (Sat) by arnd (subscriber, #8866)In reply to: Optimizing Linux with cheap flash drives by boog
Parent article: Optimizing Linux with cheap flash drives
Aligning the partition to 4 MB and changing to btrfs solved it for me for that card. I have not yet done thorough testing to find out what the specific requirements of the possible file systems are, but it's worth a try.
I'd also be interested to see what flashbench shows about this drive. If you can create an empty 4 MB aligned partition on it, please run it and send the results to flashbench-results@lists.linaro.org.
Posted Feb 19, 2011 10:30 UTC (Sat)
by aleXXX (subscriber, #2742)
[Link] (6 responses)
Alex
Posted Feb 19, 2011 10:40 UTC (Sat)
by arnd (subscriber, #8866)
[Link] (5 responses)
High-end SSDs come with significant amounts of RAM that can be used to hide most of the nasty effects, or to do something much smarter altogether, such as implementing the entire drive as a log structured file.
What we know is that the underlying NAND flash technology is very similar, so in the best case, an SSD will be able to hide the problems, but not completely avoid them. If I were to design an SSD controller, I'd do the same things that I'm suggesting in https://wiki.linaro.org/WorkingGroups/KernelConsolidation...
Posted Feb 19, 2011 18:23 UTC (Sat)
by aleXXX (subscriber, #2742)
[Link] (1 responses)
Actually I can remember that when writing to raw NAND we had also rates somewhere in the 10 to 15 MB/s range.
Alex
Posted Feb 19, 2011 20:03 UTC (Sat)
by arnd (subscriber, #8866)
[Link]
* SATA is a much faster interface than SD/MMC
All of these cost money, so you don't find them on the low end drives that I analyzed.
Posted Feb 20, 2011 9:12 UTC (Sun)
by alonz (subscriber, #815)
[Link] (2 responses)
Posted Apr 6, 2011 18:36 UTC (Wed)
by taggart (subscriber, #13801)
[Link] (1 responses)
Posted Apr 20, 2011 19:12 UTC (Wed)
by dmarti (subscriber, #11625)
[Link]
Optimizing Linux with cheap flash drives
Optimizing Linux with cheap flash drives
The caching unfortunately makes it a lot harder to reverse-engineer the drive through timing attacks, so it's much harder to tell what it really does.
Optimizing Linux with cheap flash drives
How does that fit together with the number between 150 and 350 MB/s which are listed for SSD drives e.g. on alternate.de ?
Optimizing Linux with cheap flash drives
* NCQ and write caching allows optimizing the accesses by reordering and batching NAND flash accesses
* Using SLC NAND instead of MLC improves raw accesses
* Using multiple NAND chips in parallel gives a better combined throughput
* Expensive microcontrollers on the drive can use smarter algorithms
Actually, according to information in this AnandTech article, some high-end controllers use even weirder techniques... (They mention specifically real-time compression and real-time deduplication, and there's likely a lot more)
Optimizing Linux with cheap flash drives
Optimizing Linux with cheap flash drives
What about a live CD that you boot from, type "yes I want to trash my flash drive" and it automatically tries different partition schemes, runs benchmarks, and tells you which one is fast? Don't trust what the drive says, just try it a bunch of possible ways and see what works for real. (I'd pay $14.95 for the iso assuming the underlying code was Free.)
Live CD