qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Choice of BDRV_REQUEST_MAX_SECTORS


From: Peter Lieven
Subject: Re: Choice of BDRV_REQUEST_MAX_SECTORS
Date: Mon, 17 Aug 2020 16:04:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

Am 17.08.20 um 15:44 schrieb Eric Blake:
On 8/17/20 7:32 AM, Peter Lieven wrote:
Hi,


I am currently debugging a performance issue in qemu-img convert. I think I 
have found the cause and will send a patch later.

But is there any reason why BDRV_REQUEST_MAX_SECTORS is not at least aligned 
down to 8 (4k sectors)?

Any operation that is not able to determinate an optimal or maximum request 
size from a driver will likely use this value and

might generate unaligned requests (as qemu-img convert does) as soon as the 
first iteration of an operation is done.

Vladimir's work to make the block layer 64-bit clean should help resolve this, 
as we will be relying more heavily on values aligned to the driver's limits 
rather than arbitrary 32-bit cutoffs.


Would it be worth aligning this constant if it is not at all eliminated by 
Vladimirs work?


Peter






reply via email to

[Prev in Thread] Current Thread [Next in Thread]