Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp822732rdb; Fri, 17 Nov 2023 13:58:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IEeWw9KK9uc1QU99SvvBHhk1G9DbqPp6TAX+mT+XVqrCZpu0Vsx8r9l5eXXtneZ4jKXdRKx X-Received: by 2002:a05:6a20:8409:b0:181:1fc8:c5de with SMTP id c9-20020a056a20840900b001811fc8c5demr649942pzd.43.1700258280928; Fri, 17 Nov 2023 13:58:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700258280; cv=none; d=google.com; s=arc-20160816; b=D/oDVBvCJxGkefSRm8SpeY5a4glB2P/ZHMnN+ZfkyHGMMvK61x46rMLKPhxow5ZHLN 4N7Dfseh6z+ZQ+093kWaPxmvPpFbHmie2d+Dz50ltsCKbj1H+KLc/9UjcTtwf7IFsLit oVtgMExyBOr1/UKye/RkHTuO9KKyIfmvR/6y0Zyc5Bcb1ND+LG7V0BbHWQSkI6mKxzWa 2nFoxOScnmEy9q43c+58KK7ujrID7y6QKOVwgOPXMRDpFX+y3Vii/FYfZGRIMgOd7Cx3 nfphRKi8AwqnmrGVtlLAMuCGwIEpTS1yuXqHZ5bENc5jOykZiuhGMi029JbnLlmeg11f WG3g== 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=+6VZ1GkKB2rFO5TykEwur/IyTwYdR4pBiOjNsHftfp0=; fh=O4rNFgBXe7gL1Xb5T7LcphrOPlFXf4AvwUu3ZeHYo34=; b=zEKz8+EnMOmOxV40tYCsnRV4Pl0Jl91sPWOYlkj2XErtdcJyBTdNY2I/RqGUuj6M+2 hI5EONQdq2AHmno+hHOk9WHuPbMrzDVlq1BGkbMDXvsK8Ua6z03hMETm958PEREUAHa0 Unghm/nNsfTZqj4DKUh9GAM5TNPe66xuO7SMLMRVKLzCKuHpsKI8iA7p1/Bgf3KkYLgu J1tq9oVhuyLPFljDCLM3QCcDa4u+04uVGCEl65OH/xzi9dpKEUcDjEU92/5SgkrFYIdb Rj2sMrbnEr4KoXMa7YaQOjIlsNYqr7S8FPlubIdA8gZOO1cA2WktimSovAd3wsjiiukF LkDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=WkEb63uR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id d12-20020a170902cecc00b001b8c4021be9si2796240plg.397.2023.11.17.13.58.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 13:58:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=WkEb63uR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 34B3982AE2C3; Fri, 17 Nov 2023 13:57:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231533AbjKQV56 (ORCPT + 99 others); Fri, 17 Nov 2023 16:57:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230287AbjKQV54 (ORCPT ); Fri, 17 Nov 2023 16:57:56 -0500 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75689120 for ; Fri, 17 Nov 2023 13:57:52 -0800 (PST) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2c509f2c46cso34805251fa.1 for ; Fri, 17 Nov 2023 13:57:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1700258271; x=1700863071; 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=+6VZ1GkKB2rFO5TykEwur/IyTwYdR4pBiOjNsHftfp0=; b=WkEb63uR4ClwR2/evflEmgCfxz1wSsoKPZt1HBqgx3sR0kKSRCBJjIqb52ynLYo7Ft qt/uYtJBgUinGk5G7CSkbX38gLpvgB6b4veXaSAndbsBQhWKF0d8rVx2Ux5Uw3PaixJP eJhItcKKHFKZHIbeRioSC8z/LqcM20KtqwUL8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700258271; x=1700863071; 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=+6VZ1GkKB2rFO5TykEwur/IyTwYdR4pBiOjNsHftfp0=; b=ZDWuFb19/Lt9G7pjUa8OQPBpgXfwlYB2zJfdtjb9KzTVT2Z9FTvXcI8ZQ4JBLxQ7i2 sKjGeaCLHoCf1759vl+y2LwTcYbDjbK6OLhQA3cAVmYep6i1PR0TQRq8GjW7vDzQu8D9 y9/lZh2zEyQSE/R34U0tca69XbCAngwvT7E++ji/TgRtU2eCkuWbM9Kghjc6IA6HKv3R e7+MDhwlJvBOluzzJqh6j7c1zxyd4pxOYOJmReUgzqY061XbTtZW+oIaNq40X0y9OSag TtQds+YMsKRwsIoo6NUe+IIx5wWOQ19nJTXWtLKpVgibo48y1MCF3ve36g0t+6Yb5lLH 5SHQ== X-Gm-Message-State: AOJu0Yy+fgZFjlb11gOiCJitQ0uVrF89e9PMuVEdNvk0hRekO65uaY+z p5TfE2Jrt64X7xM0bDd6w5ng1PuIOcn+S5q89MpC5ip5 X-Received: by 2002:ac2:4256:0:b0:50a:73a8:ae4f with SMTP id m22-20020ac24256000000b0050a73a8ae4fmr542498lfl.29.1700258270770; Fri, 17 Nov 2023 13:57:50 -0800 (PST) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com. [209.85.167.45]) by smtp.gmail.com with ESMTPSA id q2-20020ac24a62000000b00507c72697d0sm358227lfp.303.2023.11.17.13.57.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Nov 2023 13:57:50 -0800 (PST) Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-507be298d2aso3254643e87.1 for ; Fri, 17 Nov 2023 13:57:50 -0800 (PST) X-Received: by 2002:ac2:4552:0:b0:509:4530:e7fb with SMTP id j18-20020ac24552000000b005094530e7fbmr598249lfm.32.1700258270001; Fri, 17 Nov 2023 13:57:50 -0800 (PST) MIME-Version: 1.0 References: <20231115190938.GGZVUXcuUjI3i1JRAB@fat_crate.local> <232440.1700153046@warthog.procyon.org.uk> <864270.1700230337@warthog.procyon.org.uk> <20231117160940.GGZVeQRLgLjJZXBLE1@fat_crate.local> <20231117191243.GHZVe7K4vN9n5M92gb@fat_crate.local> In-Reply-To: <20231117191243.GHZVe7K4vN9n5M92gb@fat_crate.local> From: Linus Torvalds Date: Fri, 17 Nov 2023 13:57:32 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linus:master] [iov_iter] c9eec08bac: vm-scalability.throughput -16.9% regression To: Borislav Petkov Cc: David Howells , 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=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 13:57:59 -0800 (PST) On Fri, 17 Nov 2023 at 11:13, Borislav Petkov wrote: > > I wouldn't want to optimize some weird loads. Especially if you have > weird loads which perform differently depending on what uarch > "optimizations" they sport. > > I guess optimizing for the majority of machines - modern FSRM ones which > can do "rep; movsb" just fine - is one way to put it. And the rest is > best effort. Yeah, we shouldn't optimize for microbenchmarks in particular. The kernel robot performance reports have been interesting, because they do end up often pointing to real issues. But we've had these kinds of things too, where the benchmark is just odd and clearly happens to trigger something that is just very machine-specific. So I don't think we should use either of these benchmarks as a "we need to optimize for *this*", but it is another example of how much memcpy() does matter. Even if the end result is then "but different microarchitectrues react so differently that we can't please everybody". Linus