Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6680509iob; Wed, 11 May 2022 03:02:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzyOuy/HEPSnqpTRuxevUPZCGKVX8UmBYUsuOUBOZ+2/TCl8cXAIQfXNXz0eboVULOXizy X-Received: by 2002:a17:906:4fd5:b0:6f8:5933:7073 with SMTP id i21-20020a1709064fd500b006f859337073mr19421166ejw.545.1652263376120; Wed, 11 May 2022 03:02:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652263376; cv=none; d=google.com; s=arc-20160816; b=QlxzWjzslUswsMZJzRRRdXhKaTVgx4XAlxTDFkEb4mjf22s/td9DrXyRtvaOHp7ACP fJbq5+8L0rQsOy98AZIUqgaFwcOO2ELFtNy4O18f8XpEAlMm0CoGZGpY+niSaA+ufJbc Zbk4Mslz3GvNEhMWQh2rS23ucds2qkTJ+2fWp16xRfk3OZijdw+rcUZbSRKWSt7lNNKa Q0o2ETXF2auq0TwAshrU/Tf5mPoePZTtkQNkVGtbmCia05JyknEu47in9n5kA60u9/3u PbMvffysLc8W31zlG83mFSzOFRWdf37JFWDCwOlFCAtgNrZLBlITnYKllDRocH0yRy/9 WzNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=2kpY6g94huLC5hHTZWrmgDyWAvIH5vP9Gsdu3GUffJk=; b=nC2lVQ4JEB7UgfJzlimjAE5T3knof8wyueaZqOW2rMmDoPSTba5ty5um0GOLobOcOR yvpvGlpawUR1NRJynLzgSEi22YJ+9UZatdBoZtOZzNEIz6pvbNC2wJ2OoYi/WHRwy+4G a3cgvj5qnc8Og1dZT8uVjOO3y2sG2YuRCFoSsNHJApfPDgim1kqfvZLL1trGMUExDl6U WX23wMKrmxB2vVov+3sBcM2lcAUspmK5NnYG82aaC57KpYOsaIuwedG17Rn8wZ5xqNq9 T+F48istDQb15bGmw6htGIMa/v3G6UJl/QjXbTYDqUxuK37G1LdKZyEaysEYAyuxnYG4 psfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bOqS1SbW; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho15-20020a1709070e8f00b006f458fb419dsi2162410ejc.223.2022.05.11.03.02.28; Wed, 11 May 2022 03:02:56 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=bOqS1SbW; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239731AbiEKCGz (ORCPT + 99 others); Tue, 10 May 2022 22:06:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229825AbiEKCGy (ORCPT ); Tue, 10 May 2022 22:06:54 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9A94A140A3 for ; Tue, 10 May 2022 19:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652234811; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2kpY6g94huLC5hHTZWrmgDyWAvIH5vP9Gsdu3GUffJk=; b=bOqS1SbWlAxjZZ8f1Uqxk3phtHqf1tH7PLSTSbNl7LPwLJHYWTs77a2KWM7neEirOx6vtx LxYmvcm1CH+xjYDgK3dLSlkXHs785+dG7rgczsOqtWIuTfpfiEy2Ew6SNVpIF9bYSoO880 qCEbaooKBuokw/KlM2CM+HpgI7mgX/Q= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-331-IfjtG01JNa-ALjvb_fplvA-1; Tue, 10 May 2022 22:06:48 -0400 X-MC-Unique: IfjtG01JNa-ALjvb_fplvA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E621C1C06912; Wed, 11 May 2022 02:06:47 +0000 (UTC) Received: from [10.22.8.20] (unknown [10.22.8.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id E837C40CF8E7; Wed, 11 May 2022 02:06:46 +0000 (UTC) Message-ID: Date: Tue, 10 May 2022 22:06:46 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [mm/page_alloc] f26b3fa046: netperf.Throughput_Mbps -18.0% regression Content-Language: en-US To: "ying.huang@intel.com" , Linus Torvalds , Peter Zijlstra , Will Deacon Cc: Aaron Lu , Mel Gorman , kernel test robot , Vlastimil Babka , Dave Hansen , Jesper Dangaard Brouer , Michal Hocko , Andrew Morton , LKML , lkp@lists.01.org, kernel test robot , Feng Tang , Zhengjun Xing , fengwei.yin@intel.com References: <20220420013526.GB14333@xsang-OptiPlex-9020> <7d20a9543f69523cfda280e3f5ab17d68db037ab.camel@intel.com> <37dac785a08e3a341bf05d9ee35f19718ce83d26.camel@intel.com> <41c08a5371957acac5310a2e608b2e42bd231558.camel@intel.com> From: Waiman Long In-Reply-To: <41c08a5371957acac5310a2e608b2e42bd231558.camel@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 5/10/22 21:58, ying.huang@intel.com wrote: > On Tue, 2022-05-10 at 11:05 -0700, Linus Torvalds wrote: >> [ Adding locking people in case they have any input ] >> >> On Mon, May 9, 2022 at 11:23 PM ying.huang@intel.com >> wrote: >>>> Can you point me to the regression report? I would like to take a look, >>>> thanks. >>> https://lore.kernel.org/all/1425108604.10337.84.camel@linux.intel.com/ >> + >> Hmm. >> >> That explanation looks believable, except that our qspinlocks >> shouldn't be spinning on the lock itself, but spinning on the mcs node >> it inserts into the lock. > The referenced regression report is very old (in Feb 2015 for 3.16- > 3.17). The ticket spinlock was still used at that time. I believe that > things become much better after we used qspinlock. We can test that. Thank for the info. Qspinlock was merged into mainline since 4.2. So ticket spinlock was used on all v3.* kernels. I was wondering why qspinlock would have produced such a large performance regression with just one lock spinning head waiter. So this is not such a big issue after all. Cheers, Longman