From: Jamie Lokier <jamie@shareable.org>
To: Amol Lad <amol.lad@gmail.com>
Cc: linux-mtd <linux-mtd@lists.infradead.org>,
David Woodhouse <dwmw2@infradead.org>
Subject: Re: JFFS2 mount fail & crash on 2.4.26 kernel
Date: Thu, 11 Feb 2010 21:50:00 +0000 [thread overview]
Message-ID: <20100211215000.GD407@shareable.org> (raw)
In-Reply-To: <8c675e9b1002111222ibfe32b6p4c513262a10ac518@mail.gmail.com>
Another amazing coincidence...
My work is using JFFS2 on 2.4.26-uc0 kernels too. The devices have
been in the field for about 5 years and are still very much in use -
we're still shipping new ones, and I'm still doing some development
work on those devices - and still write patches occasionally for those
ancient kernels. Binary patches sometimes to fix bugs without
reflashing the kernel. No joke :-)
Sure, 2.4.26 was old even 5 years ago, but it wasn't old when the
upstream chip supplier produced their SDK, from which the shipped SDK
was a "stable" branch presumably, and it wasn't economic to follow the
2.6 cycle, as the CPU architecture wasn't well supported in 2.6 even
1 year ago (no-MMU ARM).
Back to JFFS2 and 90% full.
In our case, we found that on a 1MB JFFS2 filesytem, with 64k erase
blocks, 90% is simply too much. All sorts of problems ensue, like the
GC thread running for 5 minutes or more occasionally, writes sometimes
being very slow (but sometimes quick), can't predict when "disk full"
will occur. Sometimes they linger near full for a long time without
problems, and then suddenly it's a problem. We've had many devices
crash (without a panic message) and go into weird bootup states where
they don't boot properly and their watchdogs get stuck. I suspect a
kernel bug is responsible for triggering the weird bootup state.
Limiting fullness to 60% appears to have solved all those problems.
Amol, the amount you can get away with will depend on erase block size
and filesystem size.
-- Jamie
prev parent reply other threads:[~2010-02-11 21:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-11 5:57 JFFS2 mount fail & crash on 2.4.26 kernel Amol Lad
2010-02-11 7:22 ` David Woodhouse
2010-02-11 20:22 ` Amol Lad
2010-02-11 20:33 ` David Woodhouse
2010-02-11 21:50 ` Jamie Lokier [this message]
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=20100211215000.GD407@shareable.org \
--to=jamie@shareable.org \
--cc=amol.lad@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.