s it worth it to disable journaling to preserve a flash drive?
Hi.
I am applying some tweaks to my system in order to expand the life expectancy of the Flash drive where the OS is installed (eMMC card, that is a kind of SD, it has wear leveling). These include disabling swap, using noatime flag for / partition and mounting '/tmp', '/var/log', '/var/tmp' on memory. Now the last recommendation I have found is to disable journal. But the system has to have the best resistance to power failures as possible. So I am not sure if it worths to disable the feature that makes ext4 recoverable when there is a power outage, only to avoid (some or many?) writes to memory. It is a headless system, that has a main application that updates a text file, say once per minute. Other than this, the system only should run the daemons installed with an Ubuntu minimal install. Thanks. |
Considering the cost of flash cards, and the potential cost of a system crash, I don't think it's worth it. The card will be long obsolete before it's worn out by writes anyway,
|
I have heard persons recommend not putting /swap on flash drives because of the number of writes, but I've not heard anyone recommend disabling journaling. Given the usefulness of journaling in case of a system crash, I would be reluctant to disable it.
|
Quote:
Quote:
|
All ssd's go bad. They all slow down sooner than you'd like. They are kind of a bad choice for many things.
If you have to protect the system you have no choice but to implement some form of data protection by either filesystem of some kind. It may be possible to run some form of OS in ram on boot so that your drive is maybe used less. It would be writes or changes. May be possible to write changes to other media also like remote iscsi. A good quality ssd ought to do OK for a few years I'd think under normal use. In a simple few text edits, it might last 10 years. |
I've had the journaling come to my rescue on several occasions over the years, so I'd never even thing of disabling it.
|
If you disable journaling and then have a system crash that does not mean that the system cannot recover the file system. The system will run fsck against the entire partition. This will result in a lot of reads on the SSD. perhaps a few writes, and will be very slow.
------------------------ Steve tites |
Thanks jefro, David and jailbait for your comments.
As jefro said, I think the best way to make the system as power failure resistant as possible, and do not worry about wearing the Flash storage, is boot to RAM. After my research I think the best way to load the system to RAM on boot is by applying this script. As usual I would appreciate if there is any thought on this matter. |
The system always boots to ram, no? (goes from storage device to ram)
|
Quote:
|
Some ssd's offer built in ways to protect data also.
|
All times are GMT -5. The time now is 11:54 PM. |