Rockbox General > Rockbox General Discussion
flash memory vs ram in rockbox
(1/1)
scharkalvin:
As we all know, flash memory is limited in the number of write cycles before the device dies. If you constantly update your database, would this lead to early demise of the flash memory? In the manual, under database settings, there is an option to keep the database in ram. However, I didn't see this option available in a recent build for the e200 (this weeks build). Is this not available for the e200?
Also, if I replace the disk memory in my ipod mini with a flash card, how does rockbox treat this? IE: do rockbox ports for flash based players try to conserve writes to the flash (treat it less like a disk)? Do ports to disk based players tend to not conserve on write cycles to the disk (bad if you replaced the disk with a flash device).
I would think that the storage media would be a write/read mostly device, and the only time that software would write to the device would be when adding/deleting/modifing files. Modifing files would only happen during a database update, or a configuration change. You shouldn't need to modify the database unless you add/delete music files (right?).
Chronon:
I wouldn't worry about it too much. . . read more here.
In short:
--- Quote ---As a rule of thumb: if you just write 10 or so data bytes to the Flash Variable table a few times per minute, your application can run for 10 years, before the guaranteed maximum erase/re-write cycle time is reached.
--- End quote ---
I believe that the analysis on that page assumes a USB drive with flash storage plus microcontroller to allow wear-leveling. I would guess that the implementation of wear-leveling would be pretty standard in flash-based DAPs. Compact Flash definitely employs wear-leveling.
dedalus:
Is the wear-levelling routine transparent to the firmware? ie is it something the devs need to concern themselves with when developing for flash-based players or does having the memory working at all assume that the (presumably hardware-controlled) wear-levelling is working with it?
bluebrother:
It's a hardware controlled thing as the software doesn't know anything about the internal organization of the flash memory.
Navigation
[0] Message Index
Go to full version