2009-05-06

闪存卡的 Wear levelling

最近在一台很久不用的电脑上安装了体积很小的Puppy linux,硬盘是去年买的一块2G TF卡,通过SD卡套+CF适配器+IDE转接卡接到 硬盘IDE口上。机器完全没有噪音,风扇基本不转。puppy 是直接解开文件系统后安装到硬盘上的,让人比较担心的是硬盘灯4秒钟要闪一下,反复读写对TF卡寿命也许有影响。前两年在jornada的SD卡上安装720degree 也一直有这个问题。

经过一番搜索后看到维基百科上的这篇文章。

这些闪存卡在硬件级别有wear levelling的,即使采用传统的ext fat 文件系统,也问题不大。

http://en.wikipedia.org/wiki/NAND_flash#Flash_file_systems

[edit] Flash file systems

Because of the particular characteristics of flash memory, it is best used with either a controller to perform wear-levelling and error correction or specifically designed flash file systems, which spread writes over the media and deal with the long erase times of NOR flash blocks. The basic concept behind flash file systems is: When the flash store is to be updated, the file system will write a new copy of the changed data over to a fresh block, remap the file pointers, then erase the old block later when it has time.

In practice, flash file systems are only used for "Memory Technology Devices" ("MTD"), which are embedded flash memories that do not have a controller. Removable flash memory cards and USB flash drives have built-in controllers to perform wear-levelling and error correction so use of a specific flash file system does not add any benefit. These removable flash memory devices use the FAT file system to allow universal compatibility with computers, cameras, PDAs and other portable devices with memory card slots or ports.

sandisk的 whitepaper 

文件格式: PDF/Adobe Acrobat - HTML 版
SanDisk Flash Memory Cards Wear Leveling. Page 2. SanDisk ... Current SanDisk products do not preempt wear leveling events during normal operation of the ...
www.sandisk.com/assets/file/oem/whitepapersandbrochures/rs-mmc/wpaperwearlevelv1.0.pdf 

没有评论:

How to upgrade micronucleus

micro micronucleus nucleus 是 ATtiny/ ATMega328p的bootloder, 它的过人之处是给这些芯片带来usb支持. 使得它们可以直接通过usb口来烧录. 我购买了很多 digispark 开发板. 这些开发板小巧方便价格低廉. ...