From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTtPx-0003iU-OA for qemu-devel@nongnu.org; Thu, 11 Feb 2016 10:44:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTtPt-0003UI-PS for qemu-devel@nongnu.org; Thu, 11 Feb 2016 10:44:29 -0500 Received: from mail-bl2on0145.outbound.protection.outlook.com ([65.55.169.145]:55040 helo=na01-bl2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTtPt-0003U4-I8 for qemu-devel@nongnu.org; Thu, 11 Feb 2016 10:44:25 -0500 From: Jignasha Vithalani Date: Thu, 11 Feb 2016 15:11:55 +0000 Message-ID: Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_BLUPR0801MB14895EC079B20C4F64AA7DA8F7A80BLUPR0801MB1489_" MIME-Version: 1.0 Subject: [Qemu-devel] cache.direct List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" --_000_BLUPR0801MB14895EC079B20C4F64AA7DA8F7A80BLUPR0801MB1489_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable How to set cache.direct =3D on if using aio=3Dnative with qemu 2.3 while mounting with nbd --_000_BLUPR0801MB14895EC079B20C4F64AA7DA8F7A80BLUPR0801MB1489_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
How to set cache.direct =3D on if using aio=3Dnative with qemu 2.3
while mounting with nbd
--_000_BLUPR0801MB14895EC079B20C4F64AA7DA8F7A80BLUPR0801MB1489_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUAv4-0007p7-Cl for qemu-devel@nongnu.org; Fri, 12 Feb 2016 05:25:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUAuz-00081u-B5 for qemu-devel@nongnu.org; Fri, 12 Feb 2016 05:25:46 -0500 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:36873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUAuz-00081n-3W for qemu-devel@nongnu.org; Fri, 12 Feb 2016 05:25:41 -0500 Received: by mail-wm0-x22e.google.com with SMTP id g62so13266900wme.0 for ; Fri, 12 Feb 2016 02:25:41 -0800 (PST) Date: Fri, 12 Feb 2016 10:25:37 +0000 From: Stefan Hajnoczi Message-ID: <20160212102537.GA5585@stefanha-x1.localdomain> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BOKacYhQ+x31HxR3" Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] cache.direct List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jignasha Vithalani Cc: "qemu-devel@nongnu.org" --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Feb 11, 2016 at 03:11:55PM +0000, Jignasha Vithalani wrote: > How to set cache.direct = on if using aio=native with qemu 2.3 > while mounting with nbd The NBD block driver does not honor -drive cache=on|off. It does not have a client-side cache. Instead you must set the cache mode on the NBD server side with qemu-nbd --nocache. Stefan --BOKacYhQ+x31HxR3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJWvbMhAAoJEJykq7OBq3PIImQIAKijt6Yq8ptoRHrFzY2nVNS2 YSU7svkceirwjdEovm524JQYni8EswKjSdWMSHoLcknzvaAFIedpuev1m+5Lo6yb mZZ6FbPYtChtMPhXD8dsBOFnKjLUTaLD5ITANpbf4+uDL8CIFyW40ANfDlC6S28g r09CxALPK/yLdeRcjkWWktr+/vRDSBD7YNYc6ojJFCD7wy3hKPStlT1FTEcofCcW XtXlAYL03fulMeQEnni9H7KIdrNMJIjx++HMaM7GbMwdBZAG+F9kiEQjURdCZmdp ke4tLFZlHCEOqM8X8T8/k772n96uFjG5KEGYiPHH5J0ZKsayykdz9fdjuJaw3CA= =KwB2 -----END PGP SIGNATURE----- --BOKacYhQ+x31HxR3-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUDGa-0003jB-IN for qemu-devel@nongnu.org; Fri, 12 Feb 2016 07:56:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUDGW-0007Dk-HQ for qemu-devel@nongnu.org; Fri, 12 Feb 2016 07:56:08 -0500 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:37328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUDGW-0007DU-6i for qemu-devel@nongnu.org; Fri, 12 Feb 2016 07:56:04 -0500 Received: by mail-wm0-x22a.google.com with SMTP id g62so18400084wme.0 for ; Fri, 12 Feb 2016 04:56:04 -0800 (PST) Sender: Paolo Bonzini References: <20160212102537.GA5585@stefanha-x1.localdomain> From: Paolo Bonzini Message-ID: <56BDD661.4000104@redhat.com> Date: Fri, 12 Feb 2016 13:56:01 +0100 MIME-Version: 1.0 In-Reply-To: <20160212102537.GA5585@stefanha-x1.localdomain> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] cache.direct List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi , Jignasha Vithalani Cc: "qemu-devel@nongnu.org" On 12/02/2016 11:25, Stefan Hajnoczi wrote: > On Thu, Feb 11, 2016 at 03:11:55PM +0000, Jignasha Vithalani wrote: >> > How to set cache.direct = on if using aio=native with qemu 2.3 >> > while mounting with nbd > The NBD block driver does not honor -drive cache=on|off. It does not > have a client-side cache. It also does not honor aio=native, which you can likewise set in qemu-nbd. Paolo > Instead you must set the cache mode on the NBD server side with qemu-nbd > --nocache.