From: Jens Axboe <axboe@suse.de>
To: Nirmala S <nmala@mail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Clustering of Request in block layer
Date: Sun, 13 Apr 2003 15:12:22 +0200 [thread overview]
Message-ID: <20030413131222.GL9776@suse.de> (raw)
In-Reply-To: <20030413125438.71422.qmail@mail.com>
On Sun, Apr 13 2003, Nirmala S wrote:
> Hi,
>
> As per my understanding the block layer clusters requests for all
> block drivers.
> Clustering -
> Creating a linked list of buffer_heads using b_reqnext.
>
> But, when I run my block driver and try to view the number of
> clustered requests in my Request function, I do not find any
> clustering done.
>
> void own_request(request_queue_t *q)
> {
> struct buffer_head *tmp;
> int count;
> while(1) {
> INIT_REQUEST;
> printk("<1>request %p: cmd %i sec %li (nr. %li)\n", CURRENT,
> CURRENT->cmd,
> CURRENT->sector,
> CURRENT->current_nr_sectors);
> count=0;
> for (tmp=bh; tmp; tmp=tmp->b_reqnext)
> count ++;
> printk("Count = %d\n", count);
> end_request(1); /* success */
> }
> }
>
> The above always shows 'Count = 1'. dd if=/dev/mydevice of=/dev/null.
> Does this mean that no clustering is done ??
try to add a bs=256k or something like that.
> Just read a document a
> "http://www.usenix.org/publications/library/proceedings/usenix2000/freenix/full_papers/gopinath/gopinath_html/node14.html"
> which says "This clustering is performed only for the drivers compiled
> in the kernel and not for loadable modules."
2.2 and newer clusters for all drivers.
--
Jens Axboe
prev parent reply other threads:[~2003-04-13 13:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-13 12:54 Clustering of Request in block layer Nirmala S
2003-04-13 13:12 ` Jens Axboe [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=20030413131222.GL9776@suse.de \
--to=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=nmala@mail.com \
/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