Re: JFFS2 mount time

Josh Boyer
2004-12-17T17:35:12Z

Gareth Bult (Encryptec) wrote:
>
>
> Sure, ext2 and ext3 work just fine .. however .. as far as I'm aware,
> although ext3 is log structured, it's not optimised to run in a linear
> fashion and doesn't worry about repeatedly writing to the same block ..
> which is likely to cause the USB flash controller to execute an erase
> prior to write .. which will quickly wear down the device [?!]
>
> (Am I wrong? in which case why isn't everyone using ext3 instead of
> JFFS?)

Most of the controllers for these devices do the wear leveling
themselves. At least that was my understanding.

We don't deal much with these devices, so I'm not sure what everyone
else uses. Alot of the CF devices are FAT formatted to work with
Windows, etc.

>
> The other requirement of course is inline compression, which last time I
> looked ext3 didn't do out of the box (?)

No, it doesn't. There are patches for ext2 to make it use compression
(e2compr), but then you lose the journaling.

>
> I'm going to deliberately wear down some blocks on a key a little later
> (at block level) to see what the OS makes of it ... (and whether it
> takes 100,000 or 1,000,000 cycles .. I see conflicting specs ..

That probably depends on the actual flash chips used within the device.
Not all of them use the same type of flash.

>
> I guess the basic spec for a USB flash key (you may call them
> abominations, but you should see the sales stats!) would be;

Hey, they certainly are handy. I'm not arguing with that :).

>
> a. purely log structured fs with linear / circular operation
> b. write blocks aligned to 2k (or 4k might be smarter to fit with buffer
> page sizes)
> c. erase blocks @ 128k
> d. inline compression

Again, most controllers do all the wear leveling, erasing for you. So
you are left with compression, right?

And that is certainly a lacking thing. A block-based, writeable,
compressed filesystem that does journalling. Sounds like a good
opportunity to me :).

josh