Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1205971rwb; Thu, 1 Dec 2022 14:01:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf7qDZcaFWHnRJVs5DEYqf9rY0Cd26WEkDq4gFvuwS83hitEkDwjM/PHNHI1DoGOF8wqZyil X-Received: by 2002:a05:6a00:1a14:b0:572:5be2:505b with SMTP id g20-20020a056a001a1400b005725be2505bmr49158696pfv.52.1669932095088; Thu, 01 Dec 2022 14:01:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669932095; cv=none; d=google.com; s=arc-20160816; b=kIcJVwEvvtXGJ4gAR7wKYtGU70yeSRtCQ84q/KZbvA+GJ+zKHPA7YkFojtSELKZt6b LJnOLG3fefk7jh2fFO7jHMH85Fg8I/pMFI8gid2zmERjT25Rvo+tolf+EhHQTdsa5EXG L9Alh8jnfoGxr66DTK3u1zbCUOsoJ0zIOeTFUp9fr8gcYYeNwpT5qs/ue8VergeyvBVB Z7QjfuUvO6YnpDOHF7UdDR+VIUb5PU9FTwG9aXdBhJPsjn5IyA//qTmvQOyS3i2XY1i1 bbLFB9pIVqf5faxp3pHthWzZ4iPD1Gsrj8Yf5P8qQx8AyvCT9EnZpQYQ5RjyJtsdGroj tE/w== 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=Wn46VnyUMqzSzQ1K8Ll32Y84XAVx4QsLdJfs9pzff2s=; b=lshwxzDBn2iMfApZ1FO+8x0427F4q02xvNvDCJQRq+hctTvVWxaNfcwt1eFfYpZgC1 RtbI9l4JL/oSBFKHOVCi8wkHfBK2tX6mPABANTGpFsWLtPmxiyuCSdpitXdbQX151BLe WgWCeWiPMVobbZvO5SFDnscbyLHfQjcnn/RFunY1J5nj3v2KQDTaWHjmBQ1tjCxgS9gc aqrb8bG2B/WwmUBj6AacLgBxzv0JjLJ5Mt3E0wK1CYpRSUfVYCC+bxWXGB0+OYKuxUUW CjjItBTIOl7TAHa7w8Y1Ux+0xk4POPWazzqOeHrKYoxg+22nXS4vhIFXD1vmRmtGMdc0 +r6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=njUgiMv1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w10-20020a63474a000000b004776762655fsi5433494pgk.606.2022.12.01.14.01.24; Thu, 01 Dec 2022 14:01:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=njUgiMv1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231142AbiLAVpP (ORCPT + 81 others); Thu, 1 Dec 2022 16:45:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231166AbiLAVpL (ORCPT ); Thu, 1 Dec 2022 16:45:11 -0500 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B110CC673 for ; Thu, 1 Dec 2022 13:45:09 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id f9so2791385pgf.7 for ; Thu, 01 Dec 2022 13:45:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Wn46VnyUMqzSzQ1K8Ll32Y84XAVx4QsLdJfs9pzff2s=; b=njUgiMv1w3eaALeRfGiRAfEogZF0XpkTXtaI/JcN69XbIgDREebzyGcYDeeyfwqxwr didsmGudQD3e+ffzRjUxzTg0RB/NaIq+WwaQnOzIs69/aA5I65o/69bn+G74NEoMYEzK rcvYS9N5m3ZpuBRmTGVvOmCM+8kBxy1TVHi0/oTQPQ7ClwDJ2zQqaosuOS8wRZheQoVy 8B3zR+DhH9XLVcAZgqkYQ12xJUmNyWmIxg/eJF9Rd9IcD5qCZ0ZZQQmRLa8AI/ohGTNb xRNeSMSfRgawDoRhyOOQsOQBoWyvjw0RysTu0cy63T4RcGgfIgTgTh1rnnGuVIVA+/N4 dawA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Wn46VnyUMqzSzQ1K8Ll32Y84XAVx4QsLdJfs9pzff2s=; b=HnG1L1UYBlQjO5ilGc6Cxr1+Af2CrSjJc+gQrJjc/7u4ypScvPll1C3lnVF1o2Grqc k6DavC7R4cuHBI/Uqfim2sA4qh09UEh2ghosJwaO21VS2AQ5ypVgqhCPRNxBuP+6GXax QT2QsG4XaORrqVkTXABYdArG1myRFbwxOlpWdBoXsGvZx/fm0iyCQwMxGmfE37It0rGd CVeuCYyRiFqHr037KCV0s2g+1Zni5oKEh255wgGbq3FQu85u0EilvDPhIWwRV6ecSFr5 Y3OKXTPVuz8mqa7f39oc07os8qqQLAOramxv24iVtMWYZbuuyNf8a6y0oNoD4r1+XfQL 4fzA== X-Gm-Message-State: ANoB5pksE1l10rxOvDJDGbPfsdojdLda2rcvWqRlrZSpyE8XkeLkEruE LYUUsJDesVcEM7TQNhvQ9MO3w+V+XI2BAN6vkNM26B1v X-Received: by 2002:aa7:8753:0:b0:576:4673:ce3e with SMTP id g19-20020aa78753000000b005764673ce3emr2005323pfo.39.1669931108703; Thu, 01 Dec 2022 13:45:08 -0800 (PST) MIME-Version: 1.0 References: <202210181535.7144dd15-yujie.liu@intel.com> <87edv4r2ip.fsf@yhuang6-desk2.ccr.corp.intel.com> <871qr3nkw2.fsf@yhuang6-desk2.ccr.corp.intel.com> <366045a27a96e01d0526d63fd78d4f3c5d1f530b.camel@surriel.com> <07adee081a70c2b4b44d9bf93a0ad3142e091086.camel@surriel.com> <20221201132237.c55c4bd07ba44463b146882e@linux-foundation.org> In-Reply-To: <20221201132237.c55c4bd07ba44463b146882e@linux-foundation.org> From: Yang Shi Date: Thu, 1 Dec 2022 13:44:57 -0800 Message-ID: Subject: Re: [mm] f35b5d7d67: will-it-scale.per_process_ops -95.5% regression To: Andrew Morton Cc: Rik van Riel , Thorsten Leemhuis , "Huang, Ying" , kernel test robot , lkp@lists.01.org, lkp@intel.com, Matthew Wilcox , linux-kernel@vger.kernel.org, linux-mm@kvack.org, feng.tang@intel.com, zhengjun.xing@linux.intel.com, fengwei.yin@intel.com, Nathan Chancellor 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,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Thu, Dec 1, 2022 at 1:22 PM Andrew Morton wrote: > > On Thu, 01 Dec 2022 15:29:41 -0500 Rik van Riel wrote: > > > On Thu, 2022-12-01 at 19:33 +0100, Thorsten Leemhuis wrote: > > > Hi, this is your Linux kernel regression tracker. > > > > > > On 28.11.22 07:40, Nathan Chancellor wrote: > > > > Hi Rik, > > > > > > I wonder what we should do about below performance regression. Is > > > reverting the culprit now and reapplying it later together with a fix > > > a > > > viable option? Or was anything done/is anybody doing something > > > already > > > to address the problem and I just missed it? > > > > The changeset in question speeds up kernel compiles with > > GCC, as well as the runtime speed of other programs, due > > to being able to use THPs more. However, it slows down kernel > > compiles with clang, due to ... something clang does. > > > > I have not figured out what that something is yet. > > > > I don't know if I have the wrong version of clang here, > > but I have not seen any smoking gun at all when tracing > > clang system calls. I see predominantly small mmap and > > unmap calls, and nothing that even triggers 2MB alignment. > > 2.8% speedup for gcc is nice. Massive slowdown in the malloc banchmark > and in LLVM/clang is very bad - we don't know what other userspace will > be so affected. > > So I think we revert until this is fully understood. +1 > >