Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2813433rdb; Wed, 15 Nov 2023 11:10:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+mEt+AMd5+bsXSI6cRRvK0GqYBerSKLRnrNUueSlGpe2Vv4qq/atQUg38sHX71nCI+vEH X-Received: by 2002:aa7:8888:0:b0:68e:3eab:9e18 with SMTP id z8-20020aa78888000000b0068e3eab9e18mr12168027pfe.12.1700075452731; Wed, 15 Nov 2023 11:10:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700075452; cv=none; d=google.com; s=arc-20160816; b=Gu9RkxWBxGv4EU4xQhdhjVRNwyacN8Uh0RWaSmmr8QujypUZCaW9cT7Twg+ob0L0zL f2GaUVhZ5n2HC61lohNN7oFfA8Od8+q390gF+fvHhsmJW5b5Sm2VTw4m9kf5dBK7OpEL 9toPTGoPLfKcwXkeuAa7EhLCBiN0BH3LWJCA2puGevioOLviv1TQokJJaw7IMORY7Jc9 tO5Hx2WWuSTc8ROWsIpu+jmgtpscf8Pbu1EOZ0WF8OUnayza3ONz6a+heODtjCmFJsXx gi/Bs71AGOgky6RRuqzS2qWJi4toTDX0Cnw39I7E6QAI1qe1JwaDAVXqniyycknYZNrS UO/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2L6bBSOEIxLUM46VfhXj4EAqxacbXr1fxz8KBrPopbw=; fh=4yJc638SGTPkGLwkNFQgIu8eHqmCdxukUJVwHLahvLU=; b=rPQdhIHmjdaBK0/TRLGwekmyzotE7+7qaGY8s3UvqNjIa8zX+LhUhsI0O2RBZBKNzZ Qp5CdrJoLQiplUg+OsbMg6EtASelBk7apln0WRniyshXKP9l4AbBc3VXo6DDM11Joegi yd71QoRZx4IwVtzEkpSp4eI+WT8mRfBy+Kh0tOroSpeVqiZmsq7dthcQFCH1VKRL9p6a BaCLLPA2QjN1yZOVTYUa0kxftmkthwM493JaLs1Qml+WzGfSdaP4h6Zj7pSrO0ZJmwAy 3qXa+k1z8W04jVMlPPyFDJGzCe0utTqKpHpQSMz5Qfxfl789UTeY3YDFiVXOQIYXORM8 tJqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=Yf7mrVH5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id i126-20020a636d84000000b005b96c4292basi10315248pgc.29.2023.11.15.11.10.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 11:10:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=Yf7mrVH5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 565858074064; Wed, 15 Nov 2023 11:10:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229818AbjKOTKJ (ORCPT + 99 others); Wed, 15 Nov 2023 14:10:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbjKOTKI (ORCPT ); Wed, 15 Nov 2023 14:10:08 -0500 Received: from mail.alien8.de (mail.alien8.de [IPv6:2a01:4f9:3051:3f93::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB537C7 for ; Wed, 15 Nov 2023 11:10:04 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 7BFBA40E0032; Wed, 15 Nov 2023 19:10:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id sd4vaiG5L_sC; Wed, 15 Nov 2023 19:10:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1700075400; bh=2L6bBSOEIxLUM46VfhXj4EAqxacbXr1fxz8KBrPopbw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Yf7mrVH5CHxhNc3AhayfwLGYL/ttPb2RRBXH+bgaDFD2ffg6OXfhuwMCkF4Id2YgT tQB1w+dGpmU4ictK0YEp2r6s1onnnsiTxzskS2GugGiAzsE4xqI5rbApmryGjFCLlj +zh13Rhgy8POL0Mv374xo2XwE1O1cMscN6X2Z/kOMi65vuoqtzk7mnLLaqnlvbuCUs 94YdHRZmkOcIOAIkY+7YxEBPzC1/ZQulZ4U4GkogqwHCNZtwaAMkwLDxdQ+NBMw0hB LGBweNG7Kkhu7QNnXeok6/0+xFY6XK/8uT5z5jRVpgZJSgwSNBCq2ygD6iujKrM4g0 Z1/JQzCvDyMFUmtPcxbio8T+MElUQ5J35q/JJnDYSkBwB/DX+cGKyHeJ2YxCk7GOE5 kZSkIqDpcyIH2DaDk94soxLEhjrr+Ad/lIrWK9xc38M9Ym1HZQz0VzSH/zCMShwdvB OujD1HHUgnufgSjoAJILTMIm08XdxaBq+8ZbC0bwYZfiQenvjL2tLnhREWJjgsFsf6 DUqcYYJUVwabqpRgkE51nUI9S39xHigDx6C2fZwKlsIqrylQvHBp8uZ7osRlcwGHpT lS22IDeests0T5pnIBinaOAv7Rb8PTX6UZoCH6gEIdkoSBf6vN3P085YEjlu/9XPmy wdnEHSfN8oO5DMKoTgFhzzOY= Received: from zn.tnic (pd95304da.dip0.t-ipconnect.de [217.83.4.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id E30E040E0030; Wed, 15 Nov 2023 19:09:43 +0000 (UTC) Date: Wed, 15 Nov 2023 20:09:38 +0100 From: Borislav Petkov To: Linus Torvalds 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 Subject: Re: [linus:master] [iov_iter] c9eec08bac: vm-scalability.throughput -16.9% regression Message-ID: <20231115190938.GGZVUXcuUjI3i1JRAB@fat_crate.local> References: <202311061616.cd495695-oliver.sang@intel.com> <3865842.1700061614@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 15 Nov 2023 11:10:49 -0800 (PST) On Wed, Nov 15, 2023 at 01:38:18PM -0500, Linus Torvalds wrote: > It's probably completely broken. I particularly worry about "memcpy()" > being used *during* the instruction rewriting, so the whole approach > with ALTERNATIVE() is probably entirely broken. Should we define an alternative_memcpy() which is used *only* during rewriting so that this becomes a non-issue? > But I'm cc'ing Borislav, because we've talked about the whole "inline > memcpy() with alternatives" before, so maybe this gives Borislav some > ideas for how to do it right. Yours looks simple enough and makes sense. Lemme poke at it a bit in the coming days and see what happens. > Borislav, see > > https://lore.kernel.org/all/CAHk-=wjCUckvZUQf7gqp2ziJUWxVpikM_6srFdbcNdBJTxExRg@mail.gmail.com/ > > for some truly crazy code generation by gcc. Yeah, lemme show that to gcc folks. That asm is with your compiler, right? Version? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette