From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C6B7C433F5 for ; Wed, 4 May 2022 20:40:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1A0A36B0072; Wed, 4 May 2022 16:40:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1504E6B0073; Wed, 4 May 2022 16:40:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F32616B0074; Wed, 4 May 2022 16:40:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id E46C76B0072 for ; Wed, 4 May 2022 16:40:27 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id B29C220A68 for ; Wed, 4 May 2022 20:40:27 +0000 (UTC) X-FDA: 79429228494.30.E832309 Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) by imf10.hostedemail.com (Postfix) with ESMTP id 0C59DC0089 for ; Wed, 4 May 2022 20:40:10 +0000 (UTC) Received: by mail-lj1-f179.google.com with SMTP id m23so3198273ljc.0 for ; Wed, 04 May 2022 13:40:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=n5f7afkXUKTo3IPWzmlyI8gr9ELiri6KDY4jDCLAwqk=; b=hxZbDwh249V8ZWvJvHgV8HOAuCwzitlpmdUaF1aBT2GoF1r95NpNwyDzyBX4DdfW4t S+439ChsQrTcSauZNdL3zxMoiHfb+9og+70XrhkoRCXDijiIGEY4j8RIp1HfceEd4Ycx YfSmJLaV8W0hI8BFv1q8CTPECn1nKJl+L25HM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=n5f7afkXUKTo3IPWzmlyI8gr9ELiri6KDY4jDCLAwqk=; b=A5n9OT+6UZ500v06mhsychITNNVmmuoqHdkqXLLhNZ/cLNR1vIRPXDWdrsbS0nKP/y 61ClQEE7xLAW7CsQDzLl21izO8bXhJgoYp3IvJIp1/yiel7m4Ia8FwjLyd0hNiqfRfir 44ohCLoBHORDPwY+XGLUyMEsDEdfSkcS/RtCStWcn6eg+9E0mvLRcpGGYBlcjyxCWEwE gWnNpWOQj3SVlbMF5Vm/wY4RN8KnuddH4E7NgznUMlUGf+M8HNDTMHTKRbcrc1NWnoF+ I+d3hkXbyAvzrcMNRUc8DlWqU2A3ofIQ/Dz4XD6/LeyCqTLIyyYBZX4ArgF9V/5o7yvB yQWA== X-Gm-Message-State: AOAM533CDruSKyhEht9jQIKkv8Sjdh/fYJ7pgbxLvGRjN2Jx2fQpdPDZ 46oJ30qX0LDLyBWi5cTXh5h+rjNB029iMupmsBY= X-Google-Smtp-Source: ABdhPJyfcmHO1LpNGirun09GgEADM+k6CX7HocBAi9wpxXdAHMyzGDf4z5kagTlr6dnxLITwL7ldew== X-Received: by 2002:a2e:9556:0:b0:24f:1c4f:cade with SMTP id t22-20020a2e9556000000b0024f1c4fcademr13843358ljh.39.1651696825112; Wed, 04 May 2022 13:40:25 -0700 (PDT) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com. [209.85.167.44]) by smtp.gmail.com with ESMTPSA id b15-20020ac2562f000000b0047255d21136sm1295875lff.101.2022.05.04.13.40.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 May 2022 13:40:24 -0700 (PDT) Received: by mail-lf1-f44.google.com with SMTP id x33so4344629lfu.1 for ; Wed, 04 May 2022 13:40:23 -0700 (PDT) X-Received: by 2002:a05:6512:3a4:b0:473:b9ea:7673 with SMTP id v4-20020a05651203a400b00473b9ea7673mr3445886lfp.687.1651696823645; Wed, 04 May 2022 13:40:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Wed, 4 May 2022 13:40:07 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [patch 02/14] tmpfs: fix regressions from wider use of ZERO_PAGE To: Borislav Petkov Cc: Mark Hemment , Andrew Morton , "the arch/x86 maintainers" , Peter Zijlstra , patrice.chotard@foss.st.com, Mikulas Patocka , Lukas Czerner , Christoph Hellwig , "Darrick J. Wong" , Chuck Lever , Hugh Dickins , patches@lists.linux.dev, Linux-MM , mm-commits@vger.kernel.org, Mel Gorman Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 0C59DC0089 X-Stat-Signature: d757g4smhwgqsdi3ssnxabhqwnomwfj3 X-Rspam-User: Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=google header.b=hxZbDwh2; spf=pass (imf10.hostedemail.com: domain of torvalds@linuxfoundation.org designates 209.85.208.179 as permitted sender) smtp.mailfrom=torvalds@linuxfoundation.org; dmarc=none X-Rspamd-Server: rspam09 X-HE-Tag: 1651696810-30964 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, May 4, 2022 at 1:18 PM Borislav Petkov wrote: > > Zen3 has FSRM. Sadly, I'm on Zen2 with my 3970X, and the Zen 3 threadrippers seem to be basically impossible to get. > So below's the git test suite with clear_user on Zen3. It creates a lot > of processes so we get to clear_user a bunch and that's the inlined rep > movsb. Oh, the clear_user() in the ELF loader? I wouldn't have expected that to be noticeable. Now, clear_page() is *very* noticeable, but that has its own special magic and doesn't use clear_user(). Maybe there is some other clear_user() case I never thought of. My dim memories of profiles definitely had copy_to_user, clear_page and copy_page being some of the top copy loops. Linus