Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2734136pxk; Sun, 6 Sep 2020 11:22:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeeJ/EYWWj/plZQltBTVOpsZxqCidDDskwHueVK8P30BorR2PP8ky+o7IyZ9Bu1+nVFbcH X-Received: by 2002:aa7:c693:: with SMTP id n19mr19043630edq.101.1599416563635; Sun, 06 Sep 2020 11:22:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599416563; cv=none; d=google.com; s=arc-20160816; b=0Y7JjY1X2B88+Maqx8yaOrMKG7704TtxiECYz8jTPtV8F9YZ0BWQf2n46Y/Wcp2s4X Mmcjmue3APW39E/MyPYySSTefNPzZJ415A58XY8oqEFE8rcAN2mlmRtAWKFdMwc2Kh2+ VHYj1OGGtc20a2hP06D/2ypdpUo4qYAaY7vrCj/+N2RCKwy0KoKTjh+/XQiSs3NmohcY S0mYHFGlJTCSjzIdSqnmdwORZYHT5Z6agIj5WaKWWiVeiq708YE8GAmq1FLggh/7m0KH 5n5erlYyWUpX/ZA2+8kv20kSwhGG0CxmZq3nxhi5oPpFP9S6p8wQBJ+acmhL59AHf8PW 8J5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ziCDvBXJZ7lTOeO2HHhyprFaosGCMhI9ZCW2OlFg3yY=; b=tA4UWUJUIhb/y9gtIDku7NABZlD4ypQLqyJ+V3kczVTWsI2zrLfRBvD7WUWKFpcSsY q27zszDIjxItMS9KssL5rDVVWHus5dRWTNA+Xf2931WQ9bGMeCOzUhrLjaf9iRPHCxmf NgIX9p8iKdt5wrKJlfwtcHgnGK9FZNUYoUDcA9uryX7qAN/O0Gd9JzOVnJmXpsn84IWJ RsBHPRoq4vBUk4wWL8d/5yEu/39sbrN+TDccktJouGoHlTeoTDakpjESudVl9fs5x4zw d2Y7A77cTdEdePD+jU46JM9xTMWnyMDkM2vn9i1p71aQg2sAATDjz3rhs5VoKJsbaVWO k2kg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gq14si6677091ejb.354.2020.09.06.11.22.19; Sun, 06 Sep 2020 11:22:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729122AbgIFSV1 (ORCPT + 99 others); Sun, 6 Sep 2020 14:21:27 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:43378 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728969AbgIFSV0 (ORCPT ); Sun, 6 Sep 2020 14:21:26 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 7B16E1C0B7C; Sun, 6 Sep 2020 20:21:23 +0200 (CEST) Date: Sun, 6 Sep 2020 20:21:22 +0200 From: Pavel Machek To: David Laight Cc: 'Christophe Leroy' , Christoph Hellwig , "arnd@arndb.de" , "gregkh@linuxfoundation.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] /dev/zero: also implement ->read Message-ID: <20200906182122.GA12295@amd> References: <20200903155922.1111551-1-hch@lst.de> <55d1ecb8-4a0c-fa58-d3cf-bf6796eea7bd@csgroup.eu> <3b0b58be4b844162b73db1b108a9b995@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline In-Reply-To: <3b0b58be4b844162b73db1b108a9b995@AcuMS.aculab.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > Christophe reported a major speedup due to avoiding the iov_iter > > > overhead, so just add this trivial function. Note that /dev/zero > > > already implements both an iter and non-iter writes so this just > > > makes it more symmetric. > > > > > > Christophe Leroy > > > Signed-off-by: Christoph Hellwig > >=20 > > Tested-by: Christophe Leroy >=20 > Any idea what has happened to make the 'iter' version so bad? Exactly. Also it would be nice to note how the speedup was measured and what the speedup is. Best regads, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --G4iJoqBmSsgzjUCe Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl9VKKIACgkQMOfwapXb+vKZlwCdFfFAEv0cdTUQKC8HL8e4o4qF jgYAmwbYMoMEhknMT1mDu4MFPQbcO3/d =vvM5 -----END PGP SIGNATURE----- --G4iJoqBmSsgzjUCe--