5 ms·
Something I found interesting when learning about flash was how it is manufactured and how much reliable single layer cells are (SLC) There’s certainly a very
by _benj 2y ago
Something I found interesting when learning about flash was how it is manufactured and how much reliable single layer cells are (SLC)
There’s certainly a very visible increase in price and decrease in capacity but it’s certainly interesting when you get sd cards with a proper datasheet vs. customer level devices
https://www.digikey.com/en/products/filter/memory-cards/501?s=N4IgjCBcoKwOwAYqgMZQC4CcCuBTANCAPZQDaIALAgMwzVwgC6hADulCAMpYCWAdgHMQAX0IBaAEzIQaSFjyESkcjCbDRIAGzSeAEw5iwSVu0ggQhdAE8WuDiOFA https://www.digikey.com/en/products/filter/memory-cards/501?...
- error9397 2y agoThese don't use SLC, they use TLC. SLC is hard to find in SD cards and SSDs due to cost.
- l11r 2y agoIn the provided link price seems to be reasonable for SLC, no? 15 bucks for 512 MB (not GB). Also datashits clearly say it's SLC and not TLC: https://static6.arrow.com/aropdfconversion/55056b1a2a966f599450d16486375ea493d946b4/atp_microsd_datasheet.pdf https://static6.arrow.com/aropdfconversion/55056b1a2a966f599...
- msarnoff 2y agoMost eMMC chips (basically the chip version of an SD card) can be configured to work in pseudo-SLC (pSLC) mode. This halves the capacity but improves the write endurance by several times.
- anthk 2y agoGuess what the PocketCHIP guys did in a upgrade. Exactly the oppsite. Yes, ubifs died every time.
- Dylan16807 2y agoThey switched it from SLC to MLC? I wouldn't expect 2 bits per cell to cause problems... how bad was the flash? Unless you're saying the switch corrupted the existing data, in which case wow what a screwup.
- Firefishy 2y agoRaspberry Pi's "Making a More Resilient File System" document https://pip.raspberrypi.com/categories/685-app-notes-guides-whitepapers/documents/RP-003610-WP/Making-a-more-resilient-file-system.pdf https://pip.raspberrypi.com/categories/685-app-notes-guides-... has instructions on how to configure the eMMC on the CM4 and CM5 to run in pSLC mode. Halving the storage capacity.
- dehrmann 2y agoCould you also use ZFS or BTRFS with copies? I'm not sure I'd trust any of these drives.
- msarnoff 2y agoYup. mmc-utils is the way to go. Note that this change is irreversible once you send the command to finalize the settings. The single biggest thing you can do to improve the reliability of your embedded system is to use eMMC’s built-in hardware partitioning. - Each hardware partition is a separate block device. A firmware update cannot corrupt the device by overwriting a partition table. - There are two small boot partitions, and they can be made permanently read-only after programming, thus preventing corruption of your bootloader. You can also use the other one read-write for your uboot environment. - You can easily have two OS partitions for A/B firmware updates. In addition to mounting them readonly, temporary write protection can be enabled on a per-partition basis and disabled when needed for fw updates. - If you can’t afford the capacity hit from pSLC, I believe it can be enabled on a per-partition basis. (Don’t quote me on this, it could be wrong). All these settings can be configured with either mmc-utils or u-boot. In volumes, programming houses can take care of this for you. (You’ll have to list all the registers out very specifically in an Excel spreadsheet) The downside is that calculating all the correct register values is not a simple process, and you’ll have to spend a bit of time reading the eMMC spec.
- remram 2y agoHow come there is so much "permanent" config for SD cards?
- userbinator 2y agoa very visible increase in price and decrease in capacity Unfortunately SLC costs disproportionately more compared to MLC, TLC, and now QLC -- the actual die cost is only 3x for SLC compared to TLC of the same capacity, but the prices are closer to 10x or more. Related: https://news.ycombinator.com/item?id=40405578 https://news.ycombinator.com/item?id=40405578
- Panzer04 2y agoI recall reading about running MLC+ SSDs in SLC mode for SLC reliability at the cost of the capacity multiplier afforded by the multilevel NAND. It always sucks when hardware that is effectively identical is charged at massively different prices, but I guess as a consumer this differentiation probably leads to ever so slightly cheaper MLC+ SSDs...
- adgjlsfhk1 2y agomost of the reason for this is that tlc still has plenty of endurance for any remotely normal use case. people get really worried about the decrease in reliability, but normal tlc drives are warrantied to 0.3 DWPD, which is still a ton (~900 hours of 8k compressed raw video for a 2 TB SSD)
- userbinator 2y agoThe problem isn't endurance, it's retention. Early SLC was rated for 10 years retention after 100K cycles. The latest QLC is only rated for several months after 300 cycles.
- dehrmann 2y agoI back up important things on SLC USB-A flash drives and write refreshed copies at least annually. The drives are small (<=8GB), expensive, there are only a handful of manufacturers (mine's an ATP), and you're probably ordering it from Digikey or Mouser. SLC will supposedly hold data at rest longer, and USB-A means I can find readers for at least another decade. We'll see if retention at rest is actually good.
- userbinator 2y agoYou can get (real!) SLC USB drives from Aliexpress too, for around $0.70/GB. These aren't the ultra-cheap ones which are often fake in capacity, but prominently advertise the type of flash and controller they use. I also have some really small USB drives from around 2 decades ago, of course SLC flash (the only type of NAND flash at the time), and can confirm that their data is still intact. They've gone through probably a few dozen full-drive writes, while SLC flash back then was rated for 10 years retention after 100K cycles.
- pdimitar 2y agoYeah, I have 2 such from AliE and they perform well and haven't lost anything yet even though they have dozens of thousands of files at rest that are updated 1-2 times a month, for almost 3 years now. Quite pleased with them. They are indeed more expensive but nothing that a programmer salary would notice even if you bought 10 of them. I am wondering whether I should buy another pair and use it as a metadata mirrored vdev on my media NAS. Haven't decided yet.