Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2740371pxk; Sun, 6 Sep 2020 11:37:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6x09bwtiBaq6AjU/M9SR3wRc9Rtlfy+uMCRiqIXUwHixW1i4c69pPOt8AyV6mIIBwW4jX X-Received: by 2002:a17:906:68d2:: with SMTP id y18mr18361593ejr.197.1599417474354; Sun, 06 Sep 2020 11:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599417474; cv=none; d=google.com; s=arc-20160816; b=aVcNrChJB4mPGFgAHy8cBSFDFZabwk9IdIk/PFTK9vLCwWZH+DxMInYMch9tcsP7ze VtukRRt5oYDPDPNhW9Z32mugOE39S900Sb+X57lMdWSmr73UopITWYviJLNR7X1mDx5u rBqv1V4QgQC0iKOAg5y9iAE5KCD5ECyHOFqo3102ErdZkKZIlNr7/I0PU9doCC6S5Ht1 zi2jYAJ1DnjaR5u5PNuEHc6KP2ZRpNuLzsB8hQHDcOGn9wCeF7WaM+BAXR3aZe7gi+UN 3RjLbBofss0BMpKM+NbPY6JK2hQW2xXqlBXtNXcruIoeSXgm7PrgPbs6WwQaz4DzLlGz yPOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=MeOFyiHy9Z4hVsuHIrjx8T4bTeu2U8IBsnCWIOvLOeg=; b=srAOybRhvklHlQRG34bfcfSg/zofp2xg36iYjDGh0MoWxoXewKJ2gX+7Rh33UR0nUH wrsMuta1UmDAJo5jUQeWXTmfh/hRUy4OfwpEvNi4Bekwf8ntVoONB3vrk2ESl/G77KmF HHYoxgo4wgA/gcs+8cnjCUDW9mePbDcEiL+LmeYiKjLp3XzrEn0TSEqdU7RRqdMy9kI/ y3Um+95kWOSfEfm09L9Uz5Jb/2+L/blsw3dfnodAaVMqqQEWXwkD45Li9k4V2SbogECO hjNeAmnyuuEC1cMrfmcL+yxfmCZMXM4R4WiaS4WpGKlfhpmiKq68slmfHI6eovUP21yF LUWw== 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 k30si8403184edk.76.2020.09.06.11.37.29; Sun, 06 Sep 2020 11:37:54 -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 S1729118AbgIFSfw (ORCPT + 99 others); Sun, 6 Sep 2020 14:35:52 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:32069 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728969AbgIFSfv (ORCPT ); Sun, 6 Sep 2020 14:35:51 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4Bl0Tr26tZzB09Zw; Sun, 6 Sep 2020 20:35:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id 6BBji7Lwk8wd; Sun, 6 Sep 2020 20:35:44 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4Bl0Tr0vrfzB09Zt; Sun, 6 Sep 2020 20:35:44 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 096C18B778; Sun, 6 Sep 2020 20:35:48 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id QNdS5biYzokR; Sun, 6 Sep 2020 20:35:47 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 59D688B75B; Sun, 6 Sep 2020 20:35:47 +0200 (CEST) Subject: Re: [PATCH] /dev/zero: also implement ->read To: Pavel Machek , David Laight Cc: Christoph Hellwig , "arnd@arndb.de" , "gregkh@linuxfoundation.org" , "linux-kernel@vger.kernel.org" References: <20200903155922.1111551-1-hch@lst.de> <55d1ecb8-4a0c-fa58-d3cf-bf6796eea7bd@csgroup.eu> <3b0b58be4b844162b73db1b108a9b995@AcuMS.aculab.com> <20200906182122.GA12295@amd> From: Christophe Leroy Message-ID: <8c353864-76a9-90bf-fa2f-f7a8231b5487@csgroup.eu> Date: Sun, 6 Sep 2020 20:35:38 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200906182122.GA12295@amd> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Le 06/09/2020 ? 20:21, Pavel Machek a ?crit?: > 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 >>> >>> Tested-by: Christophe Leroy >> >> 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. > Was measured on an 8xx powerpc running at 132MHz with: dd if=/dev/zero of=/dev/null count=1M With the patch, dd displays a throughput of 113.5MB/s Without the patch it is 99.9MB/s Christophe