From: Jens Axboe <jens.axboe@oracle.com>
To: Alok kataria <alokkataria1@gmail.com>
Cc: Jeff Garzik <jeff@garzik.org>, linux-ide@vger.kernel.org
Subject: Re: use_clustering (sht) bit set to 0 in AHCI ?
Date: Mon, 21 May 2007 14:17:26 +0200 [thread overview]
Message-ID: <20070521121726.GT14746@kernel.dk> (raw)
In-Reply-To: <35f686220704252249y6d4fe0c3y1a772119c7b6657f@mail.gmail.com>
On Thu, Apr 26 2007, Alok kataria wrote:
> Hi Jeff,
>
> I recently got a new AHCI disk, and was using the AHCI-libata driver to run
> this. I noticed that the scattergather lists that were being built for
> the I/O on this device were just of PAGE_SIZE length, even though i
> was doing IO on
> contiguous pages.
>
> Through a little instrumentation i figured out that the use_clustering
> bit in the ahci_sht (scsi_host_template) is set to zero. Due to which
> we are not putting consecutive bios into one sg in blk_rq_map_sg.
>
> I tried changing the clustering bit to 1, but encountered a panic at
> the initialization of the disks during the bootup process, and so
> couldn't entirely get hold of the panic mesg.
> I was wondering, though the max segment size suported with this driver
> is 65536, why was i not able to feed in bigger SG's to this driver.
>
> I searched on the net and the intel ahci arch doc too but couldn't
> find anything relative to the clustering support for AHCI.
>
> It would be great help if you could let me know about the possible
> problems with clustering on AHCI ? why is it off by default in the
> driver ? or anything else that might help.
It's a good question. If you look at the documentation, it states that
ahci supports up to 64k sg entries and each can have a size of up to 4mb
(bits 0 through 21). So as far as I can tell, clustering should work
with a segment size up to those 4mb.
ahci has always had clustering disabled, perhaps Jeff can expand on why?
--
Jens Axboe
next prev parent reply other threads:[~2007-05-21 12:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-26 5:49 use_clustering (sht) bit set to 0 in AHCI ? Alok kataria
2007-05-21 12:17 ` Jens Axboe [this message]
2007-05-21 21:17 ` Jeff Garzik
2007-05-22 7:45 ` Jens Axboe
2007-05-25 3:06 ` Jeff Garzik
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=20070521121726.GT14746@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=alokkataria1@gmail.com \
--cc=jeff@garzik.org \
--cc=linux-ide@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 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.