Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp688053ioo; Sat, 21 May 2022 10:52:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPcUoOK+1HQ58M05pJNZQ9+Bhf8eUTBcTqcacDDe0sfL7JpKkKEQux0f24JM07EGMabrsC X-Received: by 2002:a63:1312:0:b0:3f2:678b:d166 with SMTP id i18-20020a631312000000b003f2678bd166mr13696545pgl.279.1653155553923; Sat, 21 May 2022 10:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653155553; cv=none; d=google.com; s=arc-20160816; b=F0+4Hn1n6xOsMugS99jHNYsr92eB4geVeYUcAv85l4ewQownE96GTLEIA2gBpxEAbh l7QWk4YxW5GSRA5h1W0goJ8sy3l1fsz6fgJXk6BhLuGYQVREWB3v1pS2+MvwMXauBfLG rrvR/TESt76XOI1U1UwPtwW1N2Nz5Tc/XYz4uUdHJCvAqGDMklPozeB2Vy3ecqzO4sdI SBVPajuloe8pmq9apEAV5llaawIvW8UNDbGrp/hjvx/ws/nzmbsltdw+4mHZxyQ3r1j+ a+E2hzVQ3HKdN6GnPXgChswKVClRf4AfYX2dTWvuX/biJi58864fuID5rga83qJqflpv OhLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RjTQZJZQgulPn2m9ZCd5zit3zBo1nt5rUKPxbyzkWLk=; b=sGgix+52Mlx8i8VNCFJ/AzDzxhuvzL7jBBBN4Yw7kSX1qpTCiM/qHbJiayoYjMNkTv mmdtHQV8c04rmLwSRSARSEj5qBUEoOPKHL29uWIvomKPO94vyeuTMeI+lklZiscxv6AD THDwZgXHr4wvBNj4aL2G3KE5gwmV0jndBEd4GNcxfTAqB3QWEnEVhsoGqfW8ZP1x6jxz K0sDwHRNl+Tra0m9pt7VHE7IdzIok3ivDqInDugA2z4fPAhb3QoPJY1sWbJVCjFWAZ4G 22PBuPGYNtJsQcOh5iEmkbCVZFho0ywZgWYjubXFzoI7OD+fUNTn+1z0nEzPcQQc92NY InTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=CdDA93IP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s22-20020a63ff56000000b003c6bf873abesi4148580pgk.73.2022.05.21.10.52.22; Sat, 21 May 2022 10:52:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=CdDA93IP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350929AbiETPjv (ORCPT + 99 others); Fri, 20 May 2022 11:39:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238804AbiETPjt (ORCPT ); Fri, 20 May 2022 11:39:49 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3A3A1790AC for ; Fri, 20 May 2022 08:39:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4A745B82C52 for ; Fri, 20 May 2022 15:39:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3399FC34114; Fri, 20 May 2022 15:39:44 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="CdDA93IP" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1653061182; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RjTQZJZQgulPn2m9ZCd5zit3zBo1nt5rUKPxbyzkWLk=; b=CdDA93IPTM0liA99LP3bUYL8IPFJc4pZ6gUPKjzdV4nx/BEvl9EJnGN38VEwwmD6RTWIfT pV+nKUCZe0863XlzCIqvhI/H+qa8gAxnC4SpUJdlRykLcPBAoSA2EUxAYJG8a477amhden E7A4S+Oxm4haa4x+SR1yqJD/+oTE+7Y= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id fd1a99f0 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 20 May 2022 15:39:42 +0000 (UTC) Date: Fri, 20 May 2022 17:39:40 +0200 From: "Jason A. Donenfeld" To: Jens Axboe Cc: Theodore Ts'o , Christoph Hellwig , LKML , Al Viro Subject: Re: [PATCH v4 0/3] random: convert to using iters, for Al Viro Message-ID: References: <20220520094459.116240-1-Jason@zx2c4.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jens, On Fri, May 20, 2022 at 09:34:46AM -0600, Jens Axboe wrote: > On 5/20/22 9:25 AM, Jason A. Donenfeld wrote: > > Hi Jens, > > > > On Fri, May 20, 2022 at 11:44:56AM +0200, Jason A. Donenfeld wrote: > >> Jens Axboe (3): > >> random: convert to using fops->read_iter() > >> random: convert to using fops->write_iter() > >> random: wire up fops->splice_{read,write}_iter() > > > > FYI, this series makes reads from /dev/urandom slower, from around 616 > > MiB/s to 598 MiB/s on my system. That seems rather unfortunate. > > How reproducible is that? That seems like a huge difference for the > change. How big are the reads? Fairly reproducible. Actually, if anything, it reproduces consistently with worst results; I chose the most favorable ones for the new code. This isn't any fancy `perf` profiling, but just running: $ pv /dev/urandom > /dev/null From looking at strace, the read size appears to be 131072. Jason