Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2778958pxk; Sun, 6 Sep 2020 13:13:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4b7aOA08wp5ygLlTT+uHvjvSi0n5NpDjekhpyUg4fp0A7NXxWR71jIESC+MKgOkyX4jGb X-Received: by 2002:a17:906:a141:: with SMTP id bu1mr17899179ejb.303.1599423235760; Sun, 06 Sep 2020 13:13:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599423235; cv=none; d=google.com; s=arc-20160816; b=sDJgT8fknM3Jr6bshN+uemzL/12U3aAYzIG11rPAxirlcZ8q8HyXzlIOkt6Nip3waW pJMbAI3rd45GKkZi+40LMYxT2JOtfQzIEwi7ebcWkxevQso8G7MgStFdVt2jO+uC9tfq 1Eq+mYkFJL5Frh8w05xOqkVubUmMe2Rr+U64UMhXCbCKariRU5Gf2RkWFpjRo7h/g0K4 +dZQDu1MJmdhVCQis6cvrr9n1OHj+nvN9N1mJ94VqQrGkimve95XgZMU7jmOgsoRciTm Nm0RPnF5xbxXJX8GMUhX2wqWdOR7U4mcyYmhguoPE9783HKXI+q/AWSlKLaAoxaSCa0O Wbaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Q9rxf0xxIVqhnrhSENsKnOV3ucx3xdC+VlzHcfXV1NY=; b=zJhkHCQNlNbkcPhoxxWL8AqNPKpRRrqZGsevEXMraUElWt9/cfB+tErfYUqcx2zrrL 5YblfWZ4+qjBv+vDuzFUy6ktbaDLJSorsQQlq9vFomnkuvfbqS/lWoBXfisZ/pQrGiJ8 7nYPBYJN6z1g3iI8rQzx0YZspP/mbXdtWBqXr/+U44hfg1jJCWXpT5y3OVtAl89pPFuH U9teDt4Qk9grrEwjc8vDK1JJisfzsOBCNnrfhz9Z2a5Vu+wx+vLtYnoS1S5kBQBxBJXR JlGcAs5rSeN2sf4v9XIMrG87bKV9XWJzGuYUcKP8qICMY+7iAU823AF0qHDAK4kb8+8Y M/kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IBFgIQKP; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x18si9319196ejd.495.2020.09.06.13.13.30; Sun, 06 Sep 2020 13:13:55 -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; dkim=pass header.i=@kernel.org header.s=default header.b=IBFgIQKP; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726286AbgIFUJP (ORCPT + 99 others); Sun, 6 Sep 2020 16:09:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:39058 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726063AbgIFUJO (ORCPT ); Sun, 6 Sep 2020 16:09:14 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 003DB208B3; Sun, 6 Sep 2020 20:09:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599422953; bh=meX/Fm+ItdLklwXvfvZ1OtWwc9SIs7LcjL3XvWaMhnw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IBFgIQKPUvH9/wjWI+cAznRFeU92TlPIaJ2yzbFjxTyimuAg0Bih/rsjsohGCUuev pjAJLyVY6esCBTg5nwl5yKlrtW2b1RkY1Yjof8L5L022zA8bQBmXaFc36q5AqkbNol 0mJ5NARU9kPagKMcRggLgK00Kga/SemNLlrxgHWc= Date: Sun, 6 Sep 2020 22:09:29 +0200 From: "gregkh@linuxfoundation.org" To: Pavel Machek Cc: Christophe Leroy , David Laight , Christoph Hellwig , "arnd@arndb.de" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] /dev/zero: also implement ->read Message-ID: <20200906200929.GA554621@kroah.com> References: <20200903155922.1111551-1-hch@lst.de> <55d1ecb8-4a0c-fa58-d3cf-bf6796eea7bd@csgroup.eu> <3b0b58be4b844162b73db1b108a9b995@AcuMS.aculab.com> <20200906182122.GA12295@amd> <8c353864-76a9-90bf-fa2f-f7a8231b5487@csgroup.eu> <20200906183820.GA13290@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200906183820.GA13290@amd> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 06, 2020 at 08:38:20PM +0200, Pavel Machek wrote: > On Sun 2020-09-06 20:35:38, Christophe Leroy wrote: > > 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 > > Actually... that does not seem like a huge deal. read(/dev/zero) is > not that common operation. There is nothing wrong with this patch (aside from the sparse warning), and it's in my tree now, so I don't understand complaining about it... greg k-h