Re: ext2 on flash memory
From: JÃrn Engel
Date: Thu Jun 14 2007 - 14:27:00 EST
On Thu, 14 June 2007 19:45:10 +0200, JÃrn Engel wrote:
>
> Nearly two years ago I have spoken to a person that reverse engineered
> the behaviour of several chips used in pendrives. At the time that
> reverse engineering apparently covered most of the market. The details
> were quite lengthy but can be condensed to two words: Smartmedia format.
Maybe I should add that things have allegedly improved. Many devices
today support both static and dynamic wear leveling. Dynamic wear
leveling is what smartmedia does. It depends on the filesystem writing
somewhere to move those blocks. Static wear leveling will also move
blocks that are not written.
However, the exact nature of wear leveling is not disclosed. And I see
no reason to trust an undisclosed "static and dynamic wear leveling" any
more than I trust smartmedia.
I will even go further and claim that nothing short of a filesystem can
do proper wear leveling across the complete device. The reason
smartmedia introduced "areas" was to bound the time until it's map is
created and the device can get accessed. If the map spanned a large
64GB device, access times would go sky-high.
Any method I can imagine to offer good wear leveling will result in
either a filesystem or at least a simplified one-file-system with the
only file being the "block device" exported outward. So naturally my
answer to the problem is called LogFS. :)
JÃrn
--
It's not whether you win or lose, it's how you place the blame.
-- unknown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/