Skip to contentSkip to conversation

Flash writings limit?

DISCUSSION Jose Rodríguez Argente 3 participants 4 messages Sep 17, 2001 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hello to every body,

Is it harmful to the flash memory if the whole filesystem tree in
linux is intalled on flash (including /tmp /var and other directories with a high rate of writing operations) ? I have Strata Flash with JFFS2 installed.

Thank you in advance

#1 lore raw
Quoted 4 lines · [email protected] said:

Is it harmful to the flash memory if the whole filesystem tree in
linux is intalled on flash (including /tmp /var and other directories with a high rate of writing operations) ? I have Strata Flash with JFFS2 installed.

It depends how much you actually write to those directories, but yes - it's advisable to put them elsewhere. The iPAQ uses ramfs for /tmp and some of the subdirectories of /var - that seems like a sensible plan.

--
dwmw2

#2 lore raw
Quoted 11 lines · David Woodhouse
Quoted 4 lines · [email protected] said:

Is it harmful to the flash memory if the whole filesystem tree in
linux is intalled on flash (including /tmp /var and other directories with a high rate of writing operations) ? I have Strata Flash with JFFS2 installed.

It depends how much you actually write to those directories, but yes - it's advisable to put them elsewhere. The iPAQ uses ramfs for /tmp and some of the subdirectories of /var - that seems like a sensible plan.

Quoted 10 lines

--
dwmw2

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

Thanks a lot. How do you set this ram partitions at boot time? I am considering two options:

1) Have a compressed image in flash and load it with a loader in RAM
2) Execute a script in init to set the ramdisks partitions

Which one do you think is best?

Thanks a lot again

#3 lore raw
In reply to Jose Rodríguez Argente
Quoted 7 lines · Jose Rodr�guez Argente

Hello to every body,

Is it harmful to the flash memory if the whole filesystem tree in
linux is intalled on flash (including /tmp /var and other directories with a high rate of writing operations) ? I have Strata Flash with JFFS2 installed.

Quoted 6 lines

Thank you in advance

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

Howdy,

Well, it would be horribly slow when system logs etc in /var are written to flash, but in practice you can write to Flash an incredible number of times before it will become unreliable. In my experience the first thing that happens with age is that the erase cycles become slower and may increase from around 500ms to as much as 15s, but the device will still work reliably. This aging happens quite quickly actually - a few hundred erase cycles and the device will be significantly slower than when new. (I have seen and fixed many erase algorithms that do not allow sufficient erase time for old parts!).

When the manufacturer guarantees a 100 000 cycle limit, you can probably expect an average lifetime of 1 000 000, so in a consumer device with a life expectancy of around 3 years, you probably need not worry about the Flash lifetime, even if all the Linux logs and crud are written to Flash, since the keyboard or connectors will wear out before the flash does. In the case of a plug-in flash card for instance, the card will probably suffer mechanical failure long before the electrical parts fail, either because of the connector wearing out, or somebody stomping on the card...

It would be a different matter for medical/military applications though, where one cannot rely on average performance but needs to look at the worst case scenario. So, if you are working on a control system for an ICBM or something, then please look at the 100 000 limit...

Signature · 3 lines
Herman Oosthuysen
E-mail: [email protected]
Phone: 403+569-5687, Fax: 403+235-3965