Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4393908rdb; Fri, 15 Sep 2023 00:09:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE6hh1VxITkLXpm2eMNj/79277Q3KoSUUkcg8gSJK4Pu8DtfhJSOd75znYFpLDBvMkcyviU X-Received: by 2002:a05:6a00:1a8d:b0:68f:da2a:637b with SMTP id e13-20020a056a001a8d00b0068fda2a637bmr769160pfv.19.1694761772566; Fri, 15 Sep 2023 00:09:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694761772; cv=none; d=google.com; s=arc-20160816; b=iSrIHRv3Jmu6xqIhrakKqSfb/kW98+kq1sCjBG3fZ1ddT4QnoMvJ9xOPbXps6+9Byf 3bZKC3taTSpEN+SQMUkjQGQtl+VNDl/xEBqK+C65YjAGYNfPucz0kRlDY8+FV4TdyFcm DQ2nAA8a/uWLnMM6gnWXxJ4MDYwtwBT890163Uk6sRmKuxboaZwEgd9ZgsfA1pIUjX3N c4NZcTnb5bOrvRiScMtzALFDoY06lWm9cfwQycqVavdatzhAB/Q1Y61Xw3RDqbVO2//E LqY2U8aeF6o72Vf7GNOzsIuXtu27Suo6ZAuEGmf+eTTLW10AS91KBEWuN1LO8N7womLx FpMg== 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=94aDaquEpXH4DNlBezaF0dThI2zdpHlrZ3q0HmMeADM=; fh=66uc8fG2C1WgUzzmxjg3n/ZLmuME9uKsIemuyNuqy7w=; b=jxNn6eJFDZ7I97USCj1B/dfQNQFVfXaM4lyHUzWAyPKgC37RsFEkpCAFLdYhpojYjI RPo8kF55TFfPTocyKGmBiHyY6gvp69CqGHojbLeGQ2a2kHMYqOxWZax91jZZFUbsD6Lj 7Z82he8wPDvRDsIR2Skwp7hQgTz+asRA5wNRw6K5v23QzRAdPiRvitWNdoflrEOjBpup bbwr0DUDB8lh51OO9QZQ+EakSAnPs1sNsVfYXR4zyW4+HHNmyEFDt7COuxF1zHbANb2j xoiCtViIPQek1r3/OGShwwRHcNyHqBSD9N5Mf3VfkxWqWZFgfCvuPLAEKWf7F9Jin2Yt m0Lg== 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:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id by12-20020a056a00400c00b0068fe2d990a1si2821672pfb.299.2023.09.15.00.09.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 00:09:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id C23DC83FEB89; Fri, 15 Sep 2023 00:09:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232454AbjIOHJZ convert rfc822-to-8bit (ORCPT + 99 others); Fri, 15 Sep 2023 03:09:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229693AbjIOHJY (ORCPT ); Fri, 15 Sep 2023 03:09:24 -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 F354AE0 for ; Fri, 15 Sep 2023 00:09:18 -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-198-t_eZK13gOEuJOSE7_IKRiA-1; Fri, 15 Sep 2023 08:09:16 +0100 X-MC-Unique: t_eZK13gOEuJOSE7_IKRiA-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 08:09:12 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Fri, 15 Sep 2023 08:09:12 +0100 From: David Laight To: 'David Howells' , Al Viro , Linus Torvalds CC: 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: AQHZ51kQ26Nrcgq1TkqWWiI5nPv6dLAbdkPg Date: Fri, 15 Sep 2023 07:09:12 +0000 Message-ID: References: <20230914221526.3153402-1-dhowells@redhat.com> <20230914221526.3153402-10-dhowells@redhat.com> In-Reply-To: <20230914221526.3153402-10-dhowells@redhat.com> 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 pete.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 (pete.vger.email [0.0.0.0]); Fri, 15 Sep 2023 00:09:28 -0700 (PDT) From: David Howells > Sent: 14 September 2023 23:15 > > Add kunit tests to benchmark 256MiB copies to a UBUF iterator and an IOVEC > iterator. This attaches a userspace VM with a mapped file in it > temporarily to the test thread. Isn't that going to be completely dominated by the cache fills from memory? I'd have thought you'd need to use something with a lot of small fragments so that the iteration code dominates the copy. Some measurements can be made using readv() and writev() on /dev/zero and /dev/null. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)