Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4532701rdb; Fri, 15 Sep 2023 05:21:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGxpYxztMx7ROuge2uoSsza1UE2Xm7iwF9cvfR+F5OTksl8fBIC4SV9vBEey4HlD8oLkmF9 X-Received: by 2002:a05:6358:904:b0:141:1e2:2e75 with SMTP id r4-20020a056358090400b0014101e22e75mr1626149rwi.3.1694780511974; Fri, 15 Sep 2023 05:21:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694780511; cv=none; d=google.com; s=arc-20160816; b=ZwUz0FGQAAyFMMaEoHxkvs/Z5l4R9E7cyf15E5TajmE0W5L9yyovwl4izndYLY0wrs WAbinlolWUHXAnUcXFJopyfIzhS5lmY7sPrgQsyKYFVM09cqvtGnx4UwSd2tyi8e/404 1MBL+i9zdbPQRg9wDxwL3/NkKM2DrzIssbgp8cqqVbECVxHiJekdNW8PAo08kPBfXpF/ IKK/Ew2J/iADrD7deeTCF4g6j+oXKZqcUPsKsJBzqU/HcF4uvIF33UdQdBArplnOz04S 6yGP2vGNn97kLuz50hVH7jiF1Nc+nWqUslccMW3Pg3lNbH6o8nDaEgrc/2h5jA0ohQzt ieiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=EhEkzeLyIulwFU8KMiiUO+czOeSxbzUB0eD3xO8yef0=; fh=FevkPa+mLszS+WfpfHO5nl2iXin1D8MhqgULfFUySnM=; b=QJF65BSjuxi0VqFsBE5ycjG3oc9Te+Zfg7s6fRXTXCQ8ZThCVoO1f6eN+4N92BLwb2 HekJBo69uKhqwDfCpMdPTZVNmWW5cJ3oFBxaBJ+Wc0gUIKkhVoiXyYBZbrSXGBXyb4PA VgYWkbEOPZfYOGTNcBEFomD9qLJUADyWwoyxE1yHi7gbVrUfh1gZYE9kLKSZIZFZzMEX YW586HXl8KREZoHBo7peGCciWtsbS4aT5FsmYhX1KHCxr4Zyi218+qih/2Jw9+3qMXq+ HPwYuFdfU3WRTW1aNlhUBDCCBjx07kvnDeH4fRSwtjkZVq7wv7xaodQI36ID2F+F69Tm 3BLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id m9-20020a654389000000b00565335587absi3068756pgp.802.2023.09.15.05.21.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 05:21:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 0FC0B80A442B; Fri, 15 Sep 2023 05:11:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234636AbjIOMLb convert rfc822-to-8bit (ORCPT + 99 others); Fri, 15 Sep 2023 08:11:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234482AbjIOMLN (ORCPT ); Fri, 15 Sep 2023 08:11:13 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 39890273E for ; Fri, 15 Sep 2023 05:10:25 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-284-UcFWVE2yOQ6WrAoloj9v_Q-1; Fri, 15 Sep 2023 13:10:12 +0100 X-MC-Unique: UcFWVE2yOQ6WrAoloj9v_Q-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Fri, 15 Sep 2023 13:10:07 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Fri, 15 Sep 2023 13:10:07 +0100 From: David Laight To: 'David Howells' CC: Al Viro , Linus Torvalds , Jens Axboe , "Christoph Hellwig" , Christian Brauner , "Matthew Wilcox" , Brendan Higgins , David Gow , "linux-fsdevel@vger.kernel.org" , "linux-block@vger.kernel.org" , "linux-mm@kvack.org" , "netdev@vger.kernel.org" , "linux-kselftest@vger.kernel.org" , "kunit-dev@googlegroups.com" , "linux-kernel@vger.kernel.org" , Andrew Morton , Christian Brauner , "David Hildenbrand" , John Hubbard Subject: RE: [RFC PATCH 9/9] iov_iter: Add benchmarking kunit tests for UBUF/IOVEC Thread-Topic: [RFC PATCH 9/9] iov_iter: Add benchmarking kunit tests for UBUF/IOVEC Thread-Index: AQHZ51kQ26Nrcgq1TkqWWiI5nPv6dLAbdkPggAAj+YCAABqPYP//+bcAgAAdLuA= Date: Fri, 15 Sep 2023 12:10:07 +0000 Message-ID: <72e93605b28742c2a496ce4890ecaa80@AcuMS.aculab.com> References: <5017b9fa177f4deaa5d481a5d8914ab4@AcuMS.aculab.com> <20230914221526.3153402-1-dhowells@redhat.com> <20230914221526.3153402-10-dhowells@redhat.com> <3370515.1694772627@warthog.procyon.org.uk> <3449352.1694776980@warthog.procyon.org.uk> In-Reply-To: <3449352.1694776980@warthog.procyon.org.uk> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 15 Sep 2023 05:11:32 -0700 (PDT) From: David Howells > Sent: 15 September 2023 12:23 > > David Laight wrote: > > > > > Some measurements can be made using readv() and writev() > > > > on /dev/zero and /dev/null. > > > > > > Forget /dev/null; that doesn't actually engage any iteration code. The same > > > for writing to /dev/zero. Reading from /dev/zero does its own iteration thing > > > rather than using iterate_and_advance(), presumably because it checks for > > > signals and resched. > > > > Using /dev/null does exercise the 'copy iov from user' code. > > Ummm.... Not really: I was thinking of import_iovec() - or whatever its current name is. That really needs a single structure that contains the iov_iter and the cache[] (which the caller pretty much always allocates in the same place). Fiddling with that is ok until you find what io_uring does. Then it all gets entirely horrid. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)