From: Paolo Ornati <ornati@fastwebnet.it>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Jens Axboe <axboe@suse.de>, ck@vds.kolivas.org
Subject: 2.6.17-ck1: fcache problem...
Date: Sun, 25 Jun 2006 09:35:34 +0200 [thread overview]
Message-ID: <20060625093534.1700e8b6@localhost> (raw)
Hello,
I'm trying to get fcache (2.6.17-ck1) working on my machine, but it
works just once ;)
In Gentoo the root fs is remounted rw in "checkroot" init script, so
I've done this:
--- /etc/init.d/checkroot.orig 2006-06-24 18:47:41.000000000 +0200
+++ /etc/init.d/checkroot 2006-06-25 09:17:52.000000000 +0200
@@ -70,8 +70,10 @@
if mount -vf -o remount / 2> /dev/null | \
awk '{ if ($6 ~ /rw/) exit 0; else exit 1; }'
then
- ebegin "Remounting root filesystem read/write"
- mount -n -o remount,rw / &> /dev/null
+ ebegin "Remounting root filesystem read/write (FCACHE)"
+ # try with fcache
+ mount -n -o remount,rw,fcache_dev=8/10,fcache_prime=0 / &> /dev/null || \
+ mount -n -o remount,rw / &> /dev/null
if [[ $? -ne 0 ]] ; then
eend 2 "Root filesystem could not be mounted read/write :("
if [[ ${RC_FORCE_AUTO} != "yes" ]] ; then
1) priming - it works
[ 167.488268] fcache: ios r/w 8304/4747, hits 0, misses 0, overwrites 1217
[ 167.882597] fcache: wrote 8304 extents, holding 347648 sectors of data
[ 167.899555] fcache: wrote header (extents=8304,serial=33)
"remounting with priming=0"
[ 167.905498] fcache: header looks valid (extents=8304 extents, serial=33)
[ 167.928273] fcache: loaded 8304 extents
[ 167.928320] fcache: sda10 opened successfully (not priming)
2) first boot with priming=0 - it works! Great speedup :)
[ 37.845964] fcache: header looks valid (extents=8304 extents, serial=33)
[ 37.874101] fcache: loaded 8304 extents
[ 37.874105] fcache: sda10 opened successfully (not priming)
3) reboot - it doesn't work anymore :(
[ 26.673525] fcache: found serial 33, expected 34.
[ 26.673529] fcache: reprime the cache!
[ 26.673535] ext3: failed to open fcache (err=-22)
I'm doing something wrong?
--
Paolo Ornati
Linux 2.6.17-ck1 on x86_64
next reply other threads:[~2006-06-25 7:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-25 7:35 Paolo Ornati [this message]
2006-06-25 10:28 ` 2.6.17-ck1: fcache problem Jens Axboe
2006-06-25 13:23 ` Paolo Ornati
2006-06-25 17:43 ` Jens Axboe
2006-06-27 9:21 ` Paolo Ornati
2006-06-27 9:54 ` Jens Axboe
2006-06-27 10:24 ` Paolo Ornati
2006-06-27 13:04 ` Paolo Ornati
2006-06-27 13:10 ` Jens Axboe
2006-06-27 13:30 ` Paolo Ornati
2006-06-27 13:35 ` Jens Axboe
2006-06-27 14:20 ` Paolo Ornati
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=20060625093534.1700e8b6@localhost \
--to=ornati@fastwebnet.it \
--cc=axboe@suse.de \
--cc=ck@vds.kolivas.org \
--cc=linux-kernel@vger.kernel.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