linux-bcache.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 4K sectors
@ 2012-08-13  7:19 James Harper
       [not found] ` <6035A0D088A63A46850C3988ED045A4B299F682F-mzsoxcrO4/2UD0RQwgcqbDSf8X3wrgjD@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: James Harper @ 2012-08-13  7:19 UTC (permalink / raw)
  To: linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

I notice on my system that bcache presents 4K sectors to Linux. This is causing me problems with Windows on Xen using my PV drivers (problem = doesn't work). I haven't figured out if it's my PV drivers that don't tell Windows the right thing, or if Windows just doesn't like 4K sectors.

Is the 4K sector thing intentional? I assume there is a performance improvement in doing so.

And what would be the performance impact if I just told Windows that it was dealing with 512 byte sectors (eg fake it)?

Thanks

James

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 4K sectors
       [not found] ` <6035A0D088A63A46850C3988ED045A4B299F682F-mzsoxcrO4/2UD0RQwgcqbDSf8X3wrgjD@public.gmane.org>
@ 2012-08-13 21:12   ` Kent Overstreet
  0 siblings, 0 replies; 2+ messages in thread
From: Kent Overstreet @ 2012-08-13 21:12 UTC (permalink / raw)
  To: James Harper; +Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Mon, Aug 13, 2012 at 07:19:50AM +0000, James Harper wrote:
> I notice on my system that bcache presents 4K sectors to Linux. This is causing me problems with Windows on Xen using my PV drivers (problem = doesn't work). I haven't figured out if it's my PV drivers that don't tell Windows the right thing, or if Windows just doesn't like 4K sectors.
> 
> Is the 4K sector thing intentional? I assume there is a performance improvement in doing so.

It is intentional, but it's configurable. It's mainly for devices that
don't support < 4k writes; there might also be a performance impact with
some SSDs but I'm sure it's slight.

You'll need to reformat - pass --block 512 to make-bcache.  The backing
devices need to be reformatted too, but just rerunning make-bcache won't
touch any of the existing data.

> 
> And what would be the performance impact if I just told Windows that it was dealing with 512 byte sectors (eg fake it)?
> 
> Thanks
> 
> James
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-13 21:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-13  7:19 4K sectors James Harper
     [not found] ` <6035A0D088A63A46850C3988ED045A4B299F682F-mzsoxcrO4/2UD0RQwgcqbDSf8X3wrgjD@public.gmane.org>
2012-08-13 21:12   ` Kent Overstreet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).