180 points · by geerlingguy · 10y ago · 57 comments
The microSD card you use makes a huge difference in how the Pi performs, for the majority of tasks.
It may not of course.
Yeah that's not so hard, but look again at just how slow random writes can be. An improvement in that (by far worst) statistic is often much more significant than a much larger improvement in linear read or write.
SD card case is both simpler: no need for custom hardware, and at the same time harder: there is flash translation layer [2] between RPi and actual flash erase-blocks, so write patterns, block size, etc. do affect lifetime.
[1] http://dangerousprototypes.com/2010/05/25/prototype-flash_de...
My two Pis (currently both just running as Kodi boxes, but I've played with other things on them too) had a habit of killing SD cards, both cheaper ones which might well just be the cheapness of the cards and the better ones recommended by various people. I've taken to running them off NFS: the only thing that stays on the SD card is a boot partition and boot sector. For sequential reads this is definitely slower but they don't happen much (aside from the video playing, but that is limited by desired playback speed not IO bandwidth an happens over the network to my media array anyway), for sequential write it should be too unless using a crap card, but when-ever I've noticed a difference in responsiveness the NFS option has been faster. I find it takes longer for them to boot, but once running everything is either the same or feels just a little nippier.
This is not an option for disconnected (or unreliably connected) units of course, and might be a chunk more faf to manage via wireless, but I recommend it for units that always have a wired connection to the local LAN where said LAN has an always-on machine capable of serving via NFS.
Another thing you might want to check is how well ventilated your Pi is, high temperatures might also toast cards.
I did have trouble running a USB drive that worked everywhere else off them, so perhaps power is the problem and that not working was due to it being more hungry and other drives and the Pis not having enough amps spare to hand over.
This wasn't filesystem corruption though: the SD cards never worked properly again so there was presumably some physical issue rather than just damaged data. I can't say I've noticed any part of them being at all warm either in general running or after a card had died so if it is heat related the heat was temporary (and they aren't where things like direct sunlight or near-by household heating could be a variable).
I'll check the power supply at some point, but for now they've both been running smoothly 24/7 for months so I'm happy with the NFS solution for the time being.
At any rate 0.17 MB/sec (Kingston C10) 4k random write vs 8.2 MB/sec (OWC) is a staggering 48x speed difference. That is like the difference between 1 Ghz and 20 Mhz. Very useful and interesting comparison.
Reading up on the flash industry, it looks like most manufacturers use flash from one or two main producers, and each smaller company uses the discarded/slower/cheapest parts, resulting in worse performance and reliability in the lowest rungs of the scale.
[Edit: I've also updated the numbers in the post]
Also, eMMC's bus can reach higher speeds than SDHC, but that is only useful if you get an expensive and fast eMMC. I have used embedded boards where the eMMC was slower than a Sandisk Ultra microSD card.
There is also another variant: dang is sometimes sending out special links to repost stories that were manually vetted as good, but ignored. Those get special treatment, for example, they cannot be flagged down (easily at least, maybe at all).
Pushing a new timestamp to a list for every edit/resubmission makes me more comfortable, and keeps the immutability aspect (a trustable record of history).
I'd also prefer being able to see the full edit history of comments, so assign weights to my views accordingly (a grain of salt).