From: Keir Fraser <keir.xen@gmail.com>
To: Joseph Glanville <joseph.glanville@orionvm.com.au>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: James Harper <james.harper@bendigoit.com.au>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: bug when using 4K sectors?
Date: Sun, 16 Sep 2012 09:31:16 +0100 [thread overview]
Message-ID: <CC7B4CE4.3EE74%keir.xen@gmail.com> (raw)
In-Reply-To: <CAOzFzEiZopdFQuZkUcSWWre9b=NeZpJM9n2VtEoZcRo=ejYQPA@mail.gmail.com>
On 16/09/2012 08:00, "Joseph Glanville" <joseph.glanville@orionvm.com.au>
wrote:
> After reading through blkback it appears that it can only support 512
> byte sector sizes and removing this limitation would take quite abit
> of work.
> It uses hard coded bitshifts pervasively to convert between number of
> requests/pages and size of sectors etc. (that is all the >> 9
> everywhere)
>
> I am going to see what I can about working on getting it to support 4k
> sectors too and eventually uncoupled logical/physical sizes but that
> would take even more work as far as I can tell.
>
> Being able to use 4k sectors seems like it would provide pretty
> massive gains in performance just by being more efficient let alone
> increasing byte aligned writes to the underlying block storage system.
The PV blk transport may be based on 512-byte sectors, but the real sector
size is communicated between blkfront and blkback via xenbus (field
'sector-size') and blkfront is expected to only make requests that are
multiple of, and aligned according to, that real 'sector-size'.
I would kind of expect it to work, as CD-ROMs have a larger sector size (2kB
IIRC) and we support those...
Bashing your head against the PV blk transport code may be premature. ;)
-- Keir
next prev parent reply other threads:[~2012-09-16 8:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-13 14:12 bug when using 4K sectors? James Harper
2012-09-05 20:29 ` Konrad Rzeszutek Wilk
2012-09-05 23:56 ` James Harper
2012-09-06 10:58 ` Konrad Rzeszutek Wilk
2012-09-16 7:00 ` Joseph Glanville
2012-09-16 8:31 ` Keir Fraser [this message]
2012-09-16 9:00 ` Joseph Glanville
2012-09-16 10:37 ` James Harper
2012-09-16 11:18 ` Keir Fraser
2012-09-16 11:21 ` James Harper
2012-09-16 11:27 ` Alan Cox
2012-09-16 11:50 ` James Harper
2012-09-16 16:07 ` Alan Cox
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=CC7B4CE4.3EE74%keir.xen@gmail.com \
--to=keir.xen@gmail.com \
--cc=james.harper@bendigoit.com.au \
--cc=joseph.glanville@orionvm.com.au \
--cc=konrad.wilk@oracle.com \
--cc=xen-devel@lists.xen.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.