[Voyage-linux] Best Practices for writing logs & data to CF

Nils Toedtmann (spam-protected)
Fri Jul 12 04:06:18 HKT 2013


Hi John

On 11.07.2013 18:57, John Coltrane wrote:
>>
>>   * Besides your recommendations to adjust the vm.dirty_* syscontrols
>> when writing to CF [2] - What are your recommended file systems and
>> mount options for rw data partitions to reduce the risk of data loss on
>> a powercycle? E.g. i see people recommending to use ext3 or ext4 with
>> 'journal=data' and/or 'sync' (at the expense of reduced write speed). Is
>> that sound?
>
> I have seen recommendations to use EXT4 without journaling, to get the
> advantages of EXT4 without the disadvantages of EXT3 and older. So far I
> have no bad experience. You can format a fresh partition by doing a
> 
> mke2fs -t ext4 -O ^has_journal /dev/sdaX
> 
> or remove the journal of an existing FS with
> 
> tune2fs -O ^has_journal /dev/sdaX


Turning of journalling probably increases write speed and reduces write
load on the flash (so it increases the CF's life expectancy). But it
surely makes it *more* likely to end up with an inconsistent file system.

But my aim is to *reduce* the risk of corrupt read-write file systems,
and i am willing to pay with write performance or even with CF life time.

/nils.





More information about the Voyage-linux mailing list