ts-7000
[Top] [All Lists]

[ts-7000] Re: SD card corruption, please help!

To:
Subject: [ts-7000] Re: SD card corruption, please help!
From: Alexander Clouter <>
Date: Mon, 10 Mar 2008 14:49:05 +0000
Hi,

tedapt <> [20080310 13:49:07 -0000]:
>
> [snipped lots of SD bits'n'bobs]
> 
> I've found this rather alarming article on wikipedia which addresses
> the instability of the ext3 filesystem, specifically the section
> titled "No checksumming in journal" and the equally frightening
> footnotes 13 and 14 which are noted in it:
> http://en.wikipedia.org/wiki/Ext3#No_checksumming_in_journal.  Tech.
> Systems tells me that they don't do "out-of-order" write caching,
> though I still wonder if this is related to the async vs. sync options
> in the mount options.
>
'sync' might overly write data to your filesystem[1] and just slow things 
down un-necessarily.  I would suggest if you want the 'effect' of sync 
without the belts'n'braces you either:

1) play with /proc/sys/... to tweak (they exist for XFS[2]) how often the OS 
        writes dirty data to the filesystem
2) have a daemon that calls 'sync' every five or so seconds on an 'async' 
        mounted filesystem
3) call fsync after every filesystem write, making your system transactional
        (but potentially dogslow)

> One response (from Andrew Taylor) to my original posting suggests
> creating large files in advance for all my writes, to avoid block
> allocation.  Would others agree that would reduce the risk? If so, I
> could create a pool of files to write to once, then use them for my
> various writing needs.
> 
Sounds like a good idea.  Mentioned on the syslog-ng mailing list, syslog-ng 
is getting circular logfile support (or already has?), this you might find 
useful too.

I personally am surprised no one has suggested JFS, or am I missing 
something?  Support is already in the TS supplied kernel and memory/cpu wise 
it is meant to be far more friendly[3] to hardware than XFS/ReiserFS/ext[23], 
etc.  This is what I am using on my SD cards, although I have only just 
started recently to use it.

Cheers

Alex

[1] forget that it is an SD card for a moment, it's not relevant as correctly 
        pointed out they have wearleveling hardware hidden inside
[2] from the 2.6.25-rc4 changelog it *looks* like XFS is stable now on ARM, 
        you will have to backport the patch yourself though
[3] http://linuxgazette.net/102/piszcz.html
        and http://www.debian-administration.org/articles/388

--
 _____________________________________
/ He who laughs last is probably your \
\ boss.                               /
 -------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU