From: "Alex Ryan" <alexryan1@rediffmail.com>
To: linux-kernel@vger.kernel.org
Subject: optimal value for blksize_size
Date: 27 Nov 2002 23:24:31 -0000 [thread overview]
Message-ID: <20021127232431.7188.qmail@webmail36.rediffmail.com> (raw)
Hello,
I am writing a Linux block driver for our RAID firmware, and I am
very confused about blksize_size.
The documentation simply says that blksize_size should be the size
of the block used by the device in bytes.
Now, for my device(hard disk), the only restriction is that calls
must be a multiple of 512 bytes(1 sector).
I thought the natural choice for blksize_size would be 512, but I
saw that if I make it as 512 then the upper layer breaks up all
calls into buffer heads , each of size 512.
I think that is bad for sequential performance, even though my
device has scatter gather capability.
And if I make blksize_size of a higher value(e.g 4K), then the
upper layer gives calls of 4k size even for 512 byte reads.
Making blksize_size greater than PAGE_SIZE results in kernel
panic.
I am really very confused about what blksize_size really means,
and what should be an optimum value to put in there.
One more question about clustering:
All IO requests for consecutive sectors are clustered in the same
request structure, this much I understand. My question is, does
the b_data field of the corresponding bufferheads are also
sequential in the physical memory? In other words, can I satisfy a
request if I simply transfer req->nr_sectors amount of data to
req->buffer?
-Alex
next reply other threads:[~2002-11-27 23:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-27 23:24 Alex Ryan [this message]
2002-11-28 10:21 ` Jens Axboe
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=20021127232431.7188.qmail@webmail36.rediffmail.com \
--to=alexryan1@rediffmail.com \
--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
all inboxes | Powered by JetHome®