Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2842237rdb; Wed, 15 Nov 2023 12:07:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzlUNkrd3m7rePPrFuVXBptxjOZcflt77P9kUOEFaF9bMg/UoNnEv1WrkFGlnsTig8eO1x X-Received: by 2002:a05:6a20:6a1c:b0:181:7d6d:c10b with SMTP id p28-20020a056a206a1c00b001817d6dc10bmr9766867pzk.7.1700078877192; Wed, 15 Nov 2023 12:07:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700078877; cv=none; d=google.com; s=arc-20160816; b=qQFPZQgo22STbGg40iBbObUJuf5OQiwigLK4lU5dSS8tPuyJfDCF4OU0Z9B2cO9Ms3 ArvrcBAqL5ZrcONUfSNyYM34C6lUn2M9JNs1eNo1Y3s2lq18EbVf+NtcdWlq+INSxSwe zVWDS0irOT3g+3S2FdfuRvp71GR+eNAbquHS+sb8yPLOVpF4MSr5g2iGYZSXKkJQpaTL 71UYG/wsPUzg/JYff45YuxYrKhM9eMuwIq4ex9czrmlOIK5iKLapjR7qpXONhbWYStpf XtkMLSzlwh151zaliqovoiL2CrnyZkOdRzHsdSw3QBkasiPvv1ZidmvL1ILdTbUSUZ2B LTyQ== 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=WW2Yloo89o/8fjCDn3VtwHsMIhFIpKiAMzGXOe2NTzA=; fh=O4rNFgBXe7gL1Xb5T7LcphrOPlFXf4AvwUu3ZeHYo34=; b=PfxEqqDzSlsfw5/EyKlXhaD0vSu9yDrZE00corsOhN48kwnbIzVJTati2SidZvt/jC YRuI03WccakQMOnGa0oSGrdsAZj2WKQ9safVg2Ooh816op7PmuclCqNNQIK3eBi7U4bT WFchmcGwMDXq/o/g8Ex9/v7FJPt5hPHZpcGfcx6adyy5ZlH23406Kq8wfvXWkdvrnhh1 T4K2maiZhX4nk2Xo5oQAbsqXPmLMf/UB/cS4naNfsKQqKvHLXcqW91pDM/IkeYOFIYWz pVXVPkpm2rOSo9mNlmc+njLyb3OKjtb2WSFhO60um9aWl8KklAAXQv9YmWvk8iz1Rn+9 Wkyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Q9b6oqJo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id ei35-20020a056a0080e300b0068fcf6fe22esi10459022pfb.306.2023.11.15.12.07.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 12:07:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Q9b6oqJo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id B67AD8039F6C; Wed, 15 Nov 2023 12:07:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344283AbjKOUHt (ORCPT + 99 others); Wed, 15 Nov 2023 15:07:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344093AbjKOUHr (ORCPT ); Wed, 15 Nov 2023 15:07:47 -0500 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9281892 for ; Wed, 15 Nov 2023 12:07:44 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2c509f2c46cso404201fa.1 for ; Wed, 15 Nov 2023 12:07:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1700078862; x=1700683662; 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=WW2Yloo89o/8fjCDn3VtwHsMIhFIpKiAMzGXOe2NTzA=; b=Q9b6oqJoy689+rub+E+mNLZB4McDefCubqrAd1Re2Umc99LoLd0aq8O7ewWKhBv2K5 ppdJwgw7O6EG7ufEjar3aiaR77fpGUE8g3yuEv/aq91AZcZHLWon6KWxnLafsQYeEApd 97IhlsrK12DJ1ee/4av+ctll2x7VHPuEPKbfk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700078862; x=1700683662; 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=WW2Yloo89o/8fjCDn3VtwHsMIhFIpKiAMzGXOe2NTzA=; b=MlE5RE0+NQ8VLO8Nu8XhI9xZvQYDHGINJ3SsmGMsZYvi8fQupAvVhY8Ebyc663+XHr 4N8beUpcJCRP/xspxtGw+5FIUlMgwHaeW/bPVsai8JIlaOKycrgObxHvLC0PUujSpOhU AQS1hxguGpKesLVOkMQeiVE1o8bqeJtT7I0XlYCNtjhbRAQuKAZp58RBMjkMnrwszCiB xUUhNoAEK3T2hrkqu6V5g/jCwnEWgxd+LcgOxSy2lHAQ5qv3e/K86/c6edV0KkDBDpbO QGTeLVPhaBOrcoTEM63//2rL/c85WAfVKxSPNPoCSBh1DYwG1rg7ALt965BbySYren3o NwWA== X-Gm-Message-State: AOJu0YzkPNhrCZPtDY/3VXgtJJDCcRZCaoskWDisuUGSYfQoncUeYcuv FQfCL8FFSKQlGfE7qeUtO7l0clqaxvOwz34miEqdd1JS X-Received: by 2002:a2e:891a:0:b0:2c5:3339:71d6 with SMTP id d26-20020a2e891a000000b002c5333971d6mr5538968lji.19.1700078862726; Wed, 15 Nov 2023 12:07:42 -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 p20-20020a2eba14000000b002bcbb464a28sm1808511lja.59.2023.11.15.12.07.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Nov 2023 12:07:42 -0800 (PST) Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-507be298d2aso33808e87.1 for ; Wed, 15 Nov 2023 12:07:41 -0800 (PST) X-Received: by 2002:ac2:488d:0:b0:509:4c7b:c734 with SMTP id x13-20020ac2488d000000b005094c7bc734mr9119876lfc.20.1700078861508; Wed, 15 Nov 2023 12:07:41 -0800 (PST) MIME-Version: 1.0 References: <202311061616.cd495695-oliver.sang@intel.com> <3865842.1700061614@warthog.procyon.org.uk> <20231115190938.GGZVUXcuUjI3i1JRAB@fat_crate.local> In-Reply-To: From: Linus Torvalds Date: Wed, 15 Nov 2023 15:07:24 -0500 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=-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 15 Nov 2023 12:07:54 -0800 (PST) On Wed, 15 Nov 2023 at 14:15, Linus Torvalds wrote: > > So my patch really is broken. It might happen to work when everything > else goes right, and it's small, but it is very much a "proof of > concept" rather than something that is actually acceptable. More breakage details (a) need to not do this with the boot code and EFI stub code that doesn't handle alternatives. It's not a huge deal in that obviously both alternatives work, but it causes build issues: ld: error: unplaced orphan section `.altinstructions' from `arch/x86/boot/compressed/misc.o' ld: error: unplaced orphan section `.altinstr_replacement' from `arch/x86/boot/compressed/misc.o' ... etc - our current "memcpy_orig" fallback does unrolled copy loops, and the rep_movs_alternative fallback obviously doesn't. It's not clear that the unrolled copy loops matter for the in-kernel kinds of copies, but who knows. The memcpy_orig code is definitely trying to be smarter in some other ways too. So the fallback should try a *bit* harder than I did, and not just with the whole "don't try to handle exceptions" issue I mentioned. Linus