Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1172944rwb; Thu, 1 Dec 2022 13:28:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf5yLOukc5TWGQ0EmN7M1L0Y5ObwTYKedS+thYNHtVilW+wsj5w0JzzFIboU7NaWWYw3m7sn X-Received: by 2002:a63:ed58:0:b0:478:53ff:330e with SMTP id m24-20020a63ed58000000b0047853ff330emr11108373pgk.198.1669930135993; Thu, 01 Dec 2022 13:28:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669930135; cv=none; d=google.com; s=arc-20160816; b=wmJlJRiV4S34TzG6WlajdVLARTWhMzFInZY7ilnZhRM3IaPVYUl9nZZHGYtnc42rL+ hwnpcAMvIAO/3M58MCU0PWZO0y1H4WCUaXrfHdXOEH6JagmE2WL8SDD0xYBfEufL5LaB kC/yRlzAnjCm7wphQgU0RJvZUBmk524a6W+UYVHAiTod3xGTb/Ljvw0ECRs74+xhMTMT k95nw4nF3T+KwarDV+VZavlVqjg0Xcg31WGmYR/PYO5Rrz4OO1w8FdIVSW5VCsVYhJ5e Qb5k//6NsYvdy1TTXxfC7ADDfUYPXSZnl0VIUj8pD7DUCqXQ7wQkr2QuwKuXiprto2hq SQsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=vudatqI7sO+O5mLGeRNJcdrkOR1VbabMpvKV2WlTrPM=; b=MNyB++0GQvdczPIQPu4TzgoM/ZVkNPTYnA8AaKqUIKtyPuGc9NrNq0cR2xxcwl4I5U 0ygphnCObPG4tM1dIqBVA1mFK3OiU1vGZoQb0ZCfDbRGNY+pOcdev6U5SnGr6NowcmY9 jd6i3YDlXBQbChbPn9GF8pTL8egUtbnAl4r4bJtb5Q4tY7uB/h8l0dcEIw2asS0cApAC O5dxI77XOwEdBomj7FhOfVhyzwQ3AtJk6LSADT/zwHisMisjdMGqIBj3cihVeaxl5Diq DvRNb6MM7NcoSJC4Dk9QAIqLTlcGNnzGGUFl3v3kf8L/cQbHqoANIEUaamVwjDTKm/PW cqhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=ezNAOPx5; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rm3-20020a17090b3ec300b002009ed52bf6si6426759pjb.19.2022.12.01.13.28.46; Thu, 01 Dec 2022 13:28:55 -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=@linux-foundation.org header.s=korg header.b=ezNAOPx5; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230450AbiLAVWo (ORCPT + 82 others); Thu, 1 Dec 2022 16:22:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229793AbiLAVWm (ORCPT ); Thu, 1 Dec 2022 16:22:42 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 414552316F for ; Thu, 1 Dec 2022 13:22:40 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C09FB62129 for ; Thu, 1 Dec 2022 21:22:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B9BAC433D6; Thu, 1 Dec 2022 21:22:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1669929759; bh=GIsKWp+Z1ekqEUas+5otTGGZ0St38k31vgjqrcnxpmE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ezNAOPx5mJeTaeYSxoCj90/+zMNm6SMoJqzDe1achx9NeQ5aiExRrBPoGbifDVlkO pQADvDcok3kxJbGNmwPaggm1laXkxugF8AaKOyZpf1E6q/Ti7UvtcO91u82++JyrtI A++mK2NytQbcbxl8sYa0kzZc58Fl3r2xKlSKPtXA= Date: Thu, 1 Dec 2022 13:22:37 -0800 From: Andrew Morton To: Rik van Riel Cc: Thorsten Leemhuis , Yang Shi , "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 Subject: Re: [mm] f35b5d7d67: will-it-scale.per_process_ops -95.5% regression Message-Id: <20221201132237.c55c4bd07ba44463b146882e@linux-foundation.org> In-Reply-To: <07adee081a70c2b4b44d9bf93a0ad3142e091086.camel@surriel.com> 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> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, 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, 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.