From: Wolfgang Denk <wd@denx.de>
To: David Jander <david.jander@protonic.nl>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Which way to store log in flash on mpc8xx?
Date: Mon, 19 Sep 2005 21:21:01 +0200 [thread overview]
Message-ID: <20050919192101.C6267353BF3@atlas.denx.de> (raw)
In-Reply-To: Your message of "Mon, 19 Sep 2005 19:26:12 +0200." <200509191926.12736.david.jander@protonic.nl>
In message <200509191926.12736.david.jander@protonic.nl> you wrote:
>
> What happened: System boots, all fs are mounted. The first app that writes
> something to the log-partition (in this case a config file that is
> overwritten) causes the GC thread for that partition to crash with a BUG() in
> line 139 of gc.c, and the application freezes forever. Since GC is dead, all
> further write-accesses to that partition also hang forever.
Are you 100% sure your system is stable and wihout any memory errors?
Never seen any other erros or crashes?
> My big question: Is it at all possible that gc.c comes to that BUG() in line
> 139 because of anything other than a bug in jffs2-code?
Yes, for example when your SDRAM initialization is broken and/or
other memory corruption happens.
> I mean, if hardware really was a problem, then I should also get at least
> CRC-errors from jffs2, shouldn't I? IMHO at least, jffs2 should be robust
> enough to not crash on flash-errors, shouldn't it?
I don't think it's a flash error. If there is data corruption, then
it's more likely the SDRAM.
> The logs of almost all files in fs/jffs2/ which I have say that the actual
> version corresponds to the CVS-snapshot of March 13, 2005, and that the
> previous version of April 2004 is broken.
> Which files were modified _after_ March 13, 2005?
> (A hint to what command options or tools to use to browse cvs-logs more easily
> at this point is appreciated... I am using cervisia).
cvsps is really helpful, see http://www.cobite.com/cvsps/cvsps-2.1.tar.gz
Also there are web interfaces to our kernel tree;
for CVS see
http://81.169.171.120/cgi-bin/cvsweb/
for git see
http://81.169.171.120/cgi-bin/gitweb.cgi
Make sure to use at least the version tagged as LABEL_2005_05_09_1245
or later.
> I know about the problems jffs2 has with logfiles and alikes. I am still
> thinking about what would be the most robust way of coping with this, and
> until now, oversized partitions with log-rotation on size seems to do the
> trick. I don't want to loose log-data on power-loss so I don't feel so
> comfortable with buffering much of it in RAM.
The problem with your approach is the number of erase cycles which
will cause the flash to die sooner than you may want.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
A dog always bit deepest on the veterinary hand.
- Terry Pratchett, _Wyrd Sisters_
next prev parent reply other threads:[~2005-09-19 19:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-19 9:55 Which way to store log in flash on mpc8xx? David Jander
2005-09-19 15:09 ` Frank
2005-09-19 15:37 ` Wolfgang Denk
2005-09-19 17:26 ` David Jander
2005-09-19 19:21 ` Wolfgang Denk [this message]
2005-09-20 9:17 ` David Jander
2005-09-20 18:07 ` Wolfgang Denk
2005-11-29 1:06 ` David Ho
2005-11-29 14:17 ` David Jander
2005-09-19 18:40 ` Shawn Jin
2005-09-19 19:07 ` Jörn Engel
2005-09-19 19:29 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2005-09-20 20:25 Eli Brin
2005-11-29 15:37 Fillod Stephane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050919192101.C6267353BF3@atlas.denx.de \
--to=wd@denx.de \
--cc=david.jander@protonic.nl \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).