Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp145515rdb; Thu, 16 Nov 2023 14:37:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IHywYDytiKDROi9LRtMWPE9LC6pGz2jcQFXGh2V/PgPSrQsW8slkluOIjKfe4d2ZpW8PVEZ X-Received: by 2002:a05:6a00:10c1:b0:690:c75e:25c8 with SMTP id d1-20020a056a0010c100b00690c75e25c8mr18071535pfu.7.1700174247137; Thu, 16 Nov 2023 14:37:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700174247; cv=none; d=google.com; s=arc-20160816; b=Pvvfxiu6hLHDTAUBk9hDZdQ9jmuXT4zZq4HZOUGgZDinNQBpAHz9Ps99AfyUiktLlB GcCiv4yvsdCXlsPFE+Yc5AbEADtMuzpH8Joju2av6RH2S4B/2KUyoEFN5kwkyZTWkr1/ TRd8Xv82V9ICqR0W1O9qaS20vpWRlBJ3ks1S6gx6H6seKxcJMICiR5e1yMhKjKqicDqz igPft/OhS4cO3sWpLmwzZazqTZaBM3ODYVz1ksQQdDQ6fWaCsaWsCQkqyNZTezkBD4Wj JJdMqMWX+jmaGGC2Bi814KEMkZc1RtJ00MgXngTu+Zy0Xjh2oHklQ5H4Zjq+xo8ETKaq uYoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Fg0CJY1mi+VcLE2vTZuvqELHi9zo++jHybcNxPzB83U=; fh=OWEPqVNoDNCOxjOcFUxeJTl3zCBbx5znrXcPpfE9vKs=; b=kLkthwek4pGeOF4b0TkHR/hj0P3si/dcsXtMjl8PERaUSMUBZ4F0dksXfttqSZI+RV 22gGk2IOQzut6NRyFhVE+ebfnRhrBzHpmlRusvs8//fP6RHtp8+rXntIhv6yr4Kd8fAS 8NKM8QxjvyZs4GIwdRMhk7YOS/tC6DPzoh87S689tI5I79hGINv9egX7Lt9nY/kpfrJW f8KHtuJZpbpmpYRuc3HfDf/pwN7wXfIQPf+7BABsFUFw4izlJ6UCEy+QbbB2jvVuy8ff 0hxUyfZcs4Ac1tpLpY0BlzC31NhTDaLq/Fn9py5vjC1T/r+IalWmvBVm2kBrWZfoiSOc gdUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=SGbFVB5T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id bw32-20020a056a0204a000b005bddb4be6fcsi458315pgb.520.2023.11.16.14.37.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 14:37:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=SGbFVB5T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 795B68260EE1; Thu, 16 Nov 2023 14:37:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229771AbjKPWhP (ORCPT + 99 others); Thu, 16 Nov 2023 17:37:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjKPWhO (ORCPT ); Thu, 16 Nov 2023 17:37:14 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B4B2120 for ; Thu, 16 Nov 2023 14:37:10 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-53dd752685fso2020099a12.3 for ; Thu, 16 Nov 2023 14:37:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1700174229; x=1700779029; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Fg0CJY1mi+VcLE2vTZuvqELHi9zo++jHybcNxPzB83U=; b=SGbFVB5TpzUKVqoQ25AHLDH1nvWIkYX5/9S2DPjb5b/z5aix+Kk11VYNIdVXSP64gb dHZ26OENFtRFmVxJm9SfrSHVAzGosizBDCoO59VoRXPkM/BIjNSyuMNDAJ5K9gSAclWu KUIhYKO42KTB3JIsM5lmyb9BElbyyR0QN5SSA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700174229; x=1700779029; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Fg0CJY1mi+VcLE2vTZuvqELHi9zo++jHybcNxPzB83U=; b=LlxIj3dnFqBaEbas/5Jw0E92F8O1i6xgAcDxnZd0QhQ3fZM7gvZeCh7TCjItYB851M PGQBBrkGRqUIzDK5UVgjfUg+waLSAqzeHc3O04EpllCFKuzRjFemyjIY2ntO1jp5WB46 4FWjLUeC2SnQtQRD1fuRzSESRiTK4s5sxQK96J+8l1amOUdODGlWfWmb2rbijC6efnsn E7KDaaCr665ubXAqzuPQBig7sU5mWHJh+hY4fcCuCQP6+G37ZFGGEM8LTmnU5NYSvr+i ZoZWyVhjZO/+RoTGHo+N1GcPhLR+HCVGCpyabdALucmqkb66FRguw4p21ITjh5KjyNAt fhrw== X-Gm-Message-State: AOJu0Yz3RrrBdIT6yfSUABM0NxHkJtr26aqoLNCCa6e8rAVEqrTZ3htz 6/6zG9twD+YKv20fmQQAe3+q05ejVzFcjNNrfUimcqgf X-Received: by 2002:a50:cc95:0:b0:540:97b5:3719 with SMTP id q21-20020a50cc95000000b0054097b53719mr13849793edi.25.1700174228877; Thu, 16 Nov 2023 14:37:08 -0800 (PST) Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com. [209.85.208.44]) by smtp.gmail.com with ESMTPSA id b8-20020aa7dc08000000b00543597cd190sm115444edu.47.2023.11.16.14.37.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Nov 2023 14:37:07 -0800 (PST) Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-53e3b8f906fso2024984a12.2 for ; Thu, 16 Nov 2023 14:37:07 -0800 (PST) X-Received: by 2002:a05:6402:2050:b0:543:d584:7d8f with SMTP id bc16-20020a056402205000b00543d5847d8fmr12994935edb.32.1700174226739; Thu, 16 Nov 2023 14:37:06 -0800 (PST) MIME-Version: 1.0 References: <202311061616.cd495695-oliver.sang@intel.com> <3865842.1700061614@warthog.procyon.org.uk> <4097023.1700084620@warthog.procyon.org.uk> <42895.1700089191@warthog.procyon.org.uk> <282731.1700168945@warthog.procyon.org.uk> In-Reply-To: <282731.1700168945@warthog.procyon.org.uk> From: Linus Torvalds Date: Thu, 16 Nov 2023 17:36:47 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linus:master] [iov_iter] c9eec08bac: vm-scalability.throughput -16.9% regression To: David Howells Cc: Borislav Petkov , kernel test robot , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, Christian Brauner , Alexander Viro , Jens Axboe , Christoph Hellwig , Christian Brauner , Matthew Wilcox , David Laight , ying.huang@intel.com, feng.tang@intel.com, fengwei.yin@intel.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Thu, 16 Nov 2023 14:37:24 -0800 (PST) On Thu, 16 Nov 2023 at 16:13, David Howells wrote: > > > Okay, I disabled RETPOLINE, which seems like it should be the important one. > With inlined memcpy: Yeah, your machine really seems to hate the out-of-line call version. It is also not unlikely that the benchmark is the perfect example of that kind of "bad memory copy benchmark" where the actual results of the copy are never used or touched. It's one case that sometimes makes "rep movs" look (somewhat artificially) good, just because the optimized rep string will do cacheline copies in L2. So if you never touch the source or the destination of the copy, it never even gets brought into the L1. Linus