Hey everyone, I have a bit of a dilemma.
I want my menu to store a bit of state in a temporary file, to provide consistent behaviour across launching child apps. Where do you reckon I should best store this state?
The natural candidate seems /tmp, and that's where I'm writing it now. However, this may cause shortened NAND life. Now, this may not be as bad as it sounds, since disk access will be cached in memory to preserve NAND life, so it would not be re-flashed each time the file was ritten.
Another option is storing it on the SD card; this would have the benefit that IF the flash memory got to its maximum amount of duty cycles, it would be more easily replaced than the NAND. It would also mean the files would be visible to the user (which seems ugly to me).
And can someone clue me in on how long we could expect the flash to last? All this talk of "duty cycles" may seem bad, but if we've got a few million of them to burn, there's not really much cause for alarm.
I want my menu to store a bit of state in a temporary file, to provide consistent behaviour across launching child apps. Where do you reckon I should best store this state?
The natural candidate seems /tmp, and that's where I'm writing it now. However, this may cause shortened NAND life. Now, this may not be as bad as it sounds, since disk access will be cached in memory to preserve NAND life, so it would not be re-flashed each time the file was ritten.
Another option is storing it on the SD card; this would have the benefit that IF the flash memory got to its maximum amount of duty cycles, it would be more easily replaced than the NAND. It would also mean the files would be visible to the user (which seems ugly to me).
And can someone clue me in on how long we could expect the flash to last? All this talk of "duty cycles" may seem bad, but if we've got a few million of them to burn, there's not really much cause for alarm.