Changes between Version 3 and Version 4 of embedded/flash
- Timestamp:
- Dec 10, 2007 1:17:13 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
embedded/flash
v3 v4 1 1 = using flash memory as a filesystem = 2 2 3 Flash memory is different than standard magnetic non-volatile storage because the number of potential write cycles is relatively small. On the order of 10000 writes for the life of a single bit (need sources). 4 5 So in general, the guiding principle seems to be: 6 7 * avoid writes 8 9 In detail, this means: 10 11 * you probably don't want to swap on flash-backed devices. 12 * you probably want the `noatime` mount option for any filesystems on flash-backed devices. 13 * you might prefer a non-journaled filesystem over a journaled filesystem. 14 3 15 It sounds like Compact Flash has a translation layer that makes it different from writing directly to flash. That is, the CF pseudo-IDE interface provides "wear levelling" capability directly in firmware. It's not clear exactly how (or where?) this is implemented, or if all CF devices use the same wear-levelling scheme. 16 17 If it's done in firmware like this, that makes it difficult to upgrade the system if a more sophisticated protocol comes along. 18 19 == speed == 20 21 Much flash-backed storage is slow: it might have a decent burst speed, but for sustained read or write transfer, it degrades significantly. How can we measure this? What can we do to avoid this? What kinds of flash-backed storage is faster than others? 4 22 5 23 == links ==

