[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH RFC] Advertise IDE physical block size as 4K
From: |
Christoph Hellwig |
Subject: |
Re: [Qemu-devel] [PATCH RFC] Advertise IDE physical block size as 4K |
Date: |
Mon, 4 Jan 2010 09:36:48 +0100 |
User-agent: |
Mutt/1.3.28i |
On Tue, Dec 29, 2009 at 12:07:58PM +0200, Avi Kivity wrote:
> Guests use this number as a hint for alignment and I/O request sizes. Given
> that modern disks have 4K block sizes, and cached file-backed images also
> have 4K block sizes, this hint can improve guest performance.
>
> We probably need to make this configurable depending on machine type. It
> should be the default for -M 0.13 only as it can affect guest code paths.
The information is correct per the ATA spec, but:
(a) as mentioned above it should not be used for old machine types
(b) we need to sort out passing through the first block alignment bits
that are also in IDENTIFY word 106 if using a raw block device
underneat
(b) probably need to adjust the physical blocks size depending on the
underlying storage topology.
I have a patch in my queue for a while now dealing with (b) and parts of
(c), but it's been preempted by more urgent work.