Received: from eggs.gnu.org ([2001:4830:134:3::10]:55967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bz2pV-0005HL-IF for qemu-devel@nongnu.org; Tue, 25 Oct 2016 10:35:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bz2pR-0008Aa-Mz for qemu-devel@nongnu.org; Tue, 25 Oct 2016 10:35:53 -0400 References: <1469129688-22848-1-git-send-email-eblake@redhat.com> <1469129688-22848-5-git-send-email-eblake@redhat.com> <20160727072543.GF23258@ad.usersys.redhat.com> <5799704D.9060408@redhat.com> <18c31752-8399-1763-a42e-c2b924920b55@redhat.com> <12c8e895-f8ab-825f-82e7-4a2c8cc22de5@kamp.de> <9078195b-160a-e18f-b8ef-c9f2ba712416@redhat.com> <4cd56bb4-fa0d-493c-18b1-4cec0467a6bf@kamp.de> <567caf97-24bd-b5e6-a999-405ef01b2c21@redhat.com> <78e7e5d9-4f43-c50d-4531-de5c1a0e1a83@kamp.de> <25f42457-369e-152e-edce-44a4835c6c68@redhat.com> From: Eric Blake Message-ID: <3a8e046e-7a31-bdff-4dcc-7b3d42ab00a2@redhat.com> Date: Tue, 25 Oct 2016 09:35:35 -0500 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Mq3wIBgiWoxl81J2tSLiRtfuMUGPmoged" Subject: Re: [Qemu-devel] [PATCH 4/4] block: Cater to iscsi with non-power-of-2 discard List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven , Paolo Bonzini , Fam Zheng Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, Stefan Hajnoczi , Kevin Wolf , Max Reitz This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Mq3wIBgiWoxl81J2tSLiRtfuMUGPmoged From: Eric Blake To: Peter Lieven , Paolo Bonzini , Fam Zheng Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, Stefan Hajnoczi , Kevin Wolf , Max Reitz Message-ID: <3a8e046e-7a31-bdff-4dcc-7b3d42ab00a2@redhat.com> Subject: Re: [PATCH 4/4] block: Cater to iscsi with non-power-of-2 discard References: <1469129688-22848-1-git-send-email-eblake@redhat.com> <1469129688-22848-5-git-send-email-eblake@redhat.com> <20160727072543.GF23258@ad.usersys.redhat.com> <5799704D.9060408@redhat.com> <18c31752-8399-1763-a42e-c2b924920b55@redhat.com> <12c8e895-f8ab-825f-82e7-4a2c8cc22de5@kamp.de> <9078195b-160a-e18f-b8ef-c9f2ba712416@redhat.com> <4cd56bb4-fa0d-493c-18b1-4cec0467a6bf@kamp.de> <567caf97-24bd-b5e6-a999-405ef01b2c21@redhat.com> <78e7e5d9-4f43-c50d-4531-de5c1a0e1a83@kamp.de> <25f42457-369e-152e-edce-44a4835c6c68@redhat.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/25/2016 09:20 AM, Peter Lieven wrote: >> The firmware is probably technically buggy for advertising too large o= f >> a minimum granularity, if it can piece together smaller requests into = a >> larger discard. If discards need to happen at a smaller granularity, >> the firmware (or kernel quirk system) should fix the advertisement to >> the actual granularity that it will honor. I don't see a reason to >> change qemu's current behavior. >> >=20 > The issue is that the optimal unmap granularity is only a hint. > There is no evidence what happens with unaligned requests or requests > that are smaller. They could still lead to a discard operation in the > storage device. It just says if you can send me discards of that size > thats optimal for me. Thats not said that smaller or unaligned requests= > have no effect. So your argument is that we should always pass down every unaligned less-than-optimum discard request all the way to the hardware, rather than dropping it higher in the stack, even though discard requests are already advisory, in order to leave the hardware as the ultimate decision on whether to ignore the unaligned request? --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --Mq3wIBgiWoxl81J2tSLiRtfuMUGPmoged Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJYD223AAoJEKeha0olJ0Nq434H/jPFIPdb+o7eZMBuV6CfklC1 /GFgv1FgQuOV1QwVLEDf91+c6SRKNfLqk740Zvlc8MwO14riMzizkFz0pGyBZZGu n5Z4w3ufaFrH6isOrlNSuUx3tLO5W6yX+uka83SknpKsUAJiD3Cv9LTOzYtFj4hH X6NOilFKhkgA2AM+jvUL2+IljmlSeeZUVuoHKruyOTzbh7eOHI+Z8Xi7BfSx57ny NfnC5XhhF4OjxKiKYoj4Apu8dy21TVWorSvK6IIqviAGjGkFQPRE9rpiC1F31c1Y GzCPsze7txNT1bQ9+gotug73O10+N7QBZyYRIH5ucYeZPsqzQR9vWVd7xOYFtKc= =ngpo -----END PGP SIGNATURE----- --Mq3wIBgiWoxl81J2tSLiRtfuMUGPmoged--