From: "erich" <erich@areca.com.tw>
To: "Jens Axboe" <axboe@suse.de>
Cc: dax@gurulabs.com, "\"(廣安科技)安可O\"" <billion.wu@areca.com.tw>,
"\"Al Viro\"" <viro@ftp.linux.org.uk>,
"\"Andrew Morton\"" <akpm@osdl.org>,
"\"Randy.Dunlap\"" <rdunlap@xenotime.net>,
"\"Matti Aarnio\"" <matti.aarnio@zmailer.org>,
linux-kernel@vger.kernel.org,
"\"James Bottomley\"" <James.Bottomley@steeleye.com>,
"Chris Caputo" <ccaputo@alt.net>
Subject: Re: new Areca driver in 2.6.16-rc6-mm2 appears to be broken
Date: Wed, 12 Apr 2006 21:20:00 +0800 [thread overview]
Message-ID: <002901c65e33$ceac9e00$b100a8c0@erich2003> (raw)
In-Reply-To: 20060331074237.GH14022@suse.de
Dear Jens Axboe,
I had found a big difference of generic_make_request(struct bio *bio)
got message : sdb1: rw=0, want=...., limit=.....
*****************
** TEST 1
*****************
I used "MAX_XFER_SECTORS 4096" driver to do mkfs.ext2 with ARECA RAID
volume sdb1.
and copy a big file (900MB) into sdb1.
If I copy this file from sdb1, the message rw=.... ,want=......,
limit=...... will appear immediately.
When I reboot the system and used "MAX_XFER_SECTORS 512" driver.
I copy this big file from sdb1, the message rw=.... ,want=......,
limit=...... still appear immediately.
When I redo mkfs.ext2 with ARECA RAID volume sdb1 (used "MAX_XFER_SECTORS
512")
and copy the same file (900MB) into sdb1.
I copy this file from sdb1 again,the message rw=.... ,want=......,
limit=...... disappear.
****************
** TEST 2
****************
When I do another test with "MAX_XFER_SECTORS 4096" driver
#echo 0 > /sys/block/sdb/queue/read_ahead_kb
#mkfs.ext2 /dev/sdb1
then copy the same file (900MB) into sdb1.
I copy this file from sdb1 again,the message rw=.... ,want=......,
limit=...... disappear.
Even I redo "echo 4096 > /sys/block/sdb/queue/read_ahead_kb" with ARECA RAID
volume.
The message rw=.... ,want=......, limit=...... never appear at my "copy
compare" test script.
Now I can say the bug come from "block read ahead".
And this bug will certainly appear when do "mkfs.ext2" if read_ahead_kb
value large enough.
Best Regards
Erich Chen
----- Original Message -----
From: "Jens Axboe" <axboe@suse.de>
To: "Andrew Morton" <akpm@osdl.org>
Cc: "James Bottomley" <James.Bottomley@steeleye.com>; <erich@areca.com.tw>
Sent: Friday, March 31, 2006 3:42 PM
Subject: Re: new Areca driver in 2.6.16-rc6-mm2 appears to be broken
>
> (irk, Erich wasn't in the cc, sorry to Andrew and James for getting this
> mail twice)
>
> On Thu, Mar 30 2006, Andrew Morton wrote:
>> "erich" <erich@areca.com.tw> wrote:
>> >
>> > Dear Chris Caputo,
>> >
>> > Thanks you to conform this issue again, my colleague assisted me and
>> > to
>> > double check my older version driver yesterday.
>> > and the old driver is working fine as your mention before.
>> >
>> > The ARCMSR_MAX_XFER_SECTORS is the reason why cause "attempt to access
>> > beyond end of device".
>> >
>> > #define ARCMSR_MAX_XFER_SECTORS
>> > 256 -----old
>> > #define ARCMSR_MAX_XFER_SECTORS
>> > 4096 -----new
>>
>> That seems odd. ARCMSR_MAX_XFER_SECTORS just gets put into
>> scsi_host_template.max_sectors. Could it be a scsi core buglet?
>
> Perhaps the larger max sectors setting is causing read-ahead to be
> overly optimistic and going beyond the end? Should not happen.
>
> Erich, can you try and shrink read-ahead on that device and retest?
> Basically just do
>
> # echo 0 > /sys/block/sdX/queue/read_ahead_kb
>
> and see if it still complains.
>
> --
> Jens Axboe
>
next prev parent reply other threads:[~2006-04-12 13:20 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.64.0603212310070.20655@nacho.alt.net>
2006-03-30 8:54 ` new Areca driver in 2.6.16-rc6-mm2 appears to be broken erich
2006-03-30 15:46 ` Chris Caputo
[not found] ` <004a01c65470$412daaa0$b100a8c0@erich2003>
[not found] ` <20060330192057.4bd8c568.akpm@osdl.org>
[not found] ` <20060331074237.GH14022@suse.de>
2006-03-31 8:36 ` erich
2006-04-12 13:20 ` erich [this message]
2006-04-19 10:40 ` Jens Axboe
2006-04-19 13:16 ` erich
2006-04-19 13:19 ` Jens Axboe
2006-04-20 1:54 ` erich
2006-04-20 6:42 ` Jens Axboe
2006-04-20 8:11 ` erich
2006-04-20 8:23 ` Jens Axboe
2006-04-20 9:32 ` erich
2006-04-20 9:39 ` Jens Axboe
2006-04-20 12:53 ` James Bottomley
2006-04-20 15:38 ` Randy.Dunlap
2006-04-25 8:45 ` erich
2006-04-25 16:02 ` Randy.Dunlap
2006-04-26 3:24 ` erich
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='002901c65e33$ceac9e00$b100a8c0@erich2003' \
--to=erich@areca.com.tw \
--cc=James.Bottomley@steeleye.com \
--cc=akpm@osdl.org \
--cc=axboe@suse.de \
--cc=billion.wu@areca.com.tw \
--cc=ccaputo@alt.net \
--cc=dax@gurulabs.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matti.aarnio@zmailer.org \
--cc=rdunlap@xenotime.net \
--cc=viro@ftp.linux.org.uk \
/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