Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp148248pxy; Wed, 28 Apr 2021 01:09:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTTYVNa8oM+1LdbR7/TT29Vk4+ciSlIPqEIEnhRnUKiAcR4+3MkBezwg8rMG+oJGrta/eH X-Received: by 2002:aa7:84d0:0:b029:27d:fff:40c9 with SMTP id x16-20020aa784d00000b029027d0fff40c9mr1987209pfn.7.1619597353085; Wed, 28 Apr 2021 01:09:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619597353; cv=none; d=google.com; s=arc-20160816; b=n5wAEJBoo/VDY381UZDsXFDkf8UNgTFK0d6w+WyneEoXLG9MhKmHM5xvNYpXShALDe xHq6WCUdbdLa+WcBohCoEAlaHKjUt04aMWmas7g94A46DNGujUnB+hkd1d1k6msqRlg8 4XXchrYR+O8ScZLRkyGuKERTZ/mjQg/OnuFeO8zcVrMQVHc6fpBIpYg7f1HJiU9wWyL0 yzUFw0iVVfVkplUme2n5qcXQxM4MBTfXS6OCLf62fr0bjNuyYDBBSU2Sva/QPid88Zps h/7BdHAE0qRYZvFLxftadoFm7A/iqbUGvtiLs6YJuSrvXfNGiPXAnNH27IwAJ/9pA6iO HICg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=2uiV2IKJ4kQ8bmmtu4dKmACiI9lqKRiyYvpftNL6Un8=; b=rCfgXWXGKwkE4qS2uhs0sf9Mw8Mwwqfdw8VLlY+iDeN9yl7FfiNM0n97pXOxhwNPzt W4FWF+m81t41DLbR64M/deA0VNctvs66s8zfYlZPZjgkmwDvZtraH9yqG8BMxGAm7fOW SZ5f6ys/YgZ2v8KclvB+t3aC5dVWOQq4g9Et30eA+/KKUO68cI9rq2NNDuvifGEsZ3Hz 83XUhrPnnjI+UE92r2TNOabMMXpYqlk+mC1U42eUW+7nW3Ia7+IPK0bpBnwxpcGAEl21 1Qd+s01UbkFjhnRcVvLaMowDkGEJI1NVL0moHk57jgz5INHUtDOlhZ2ILRdYzgUWyh/l 7adg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j16si1601440pfh.134.2021.04.28.01.08.59; Wed, 28 Apr 2021 01:09:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236730AbhD1IJK (ORCPT + 99 others); Wed, 28 Apr 2021 04:09:10 -0400 Received: from mga05.intel.com ([192.55.52.43]:42309 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230456AbhD1IJJ (ORCPT ); Wed, 28 Apr 2021 04:09:09 -0400 IronPort-SDR: YXldW8SwvUQADZXWjtuqaglnEcB7AFp/yItSH6t8jJZculkza0FMSxfKc1ru0KFXcOx4PnraUN 2istnFlBvb3A== X-IronPort-AV: E=McAfee;i="6200,9189,9967"; a="282022014" X-IronPort-AV: E=Sophos;i="5.82,257,1613462400"; d="scan'208";a="282022014" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2021 01:08:24 -0700 IronPort-SDR: YNklEDKZwnYd3HocG82lxaF8Jsx+15ry+Ex9WF8LzzNmB/vwLKbKBOVZOOi/zKU28M4j3diCQa zxiUj+5PCQ4g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,257,1613462400"; d="scan'208";a="423418514" Received: from shbuild999.sh.intel.com (HELO localhost) ([10.239.147.94]) by fmsmga008.fm.intel.com with ESMTP; 28 Apr 2021 01:08:22 -0700 Date: Wed, 28 Apr 2021 16:08:19 +0800 From: Feng Tang To: "Song Bao Hua (Barry Song)" Cc: Thomas Gleixner , kernel test robot , Ingo Molnar , LKML , "lkp@lists.01.org" , "lkp@intel.com" , "ying.huang@intel.com" , "zhengjun.xing@intel.com" , "x86@kernel.org" Subject: Re: [genirq] cbe16f35be: will-it-scale.per_thread_ops -5.2% regression Message-ID: <20210428080819.GB53821@shbuild999.sh.intel.com> References: <20210427090013.GG32408@xsang-OptiPlex-9020> <87fszcnecr.ffs@nanos.tec.linutronix.de> <20210428050758.GB52098@shbuild999.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Barry, On Wed, Apr 28, 2021 at 07:01:35AM +0000, Song Bao Hua (Barry Song) wrote: > > > > -----Original Message----- > > From: Feng Tang [mailto:feng.tang@intel.com] > > Sent: Wednesday, April 28, 2021 5:08 PM > > To: Thomas Gleixner > > Cc: kernel test robot ; Song Bao Hua (Barry Song) > > ; Ingo Molnar ; LKML > > ; lkp@lists.01.org; lkp@intel.com; > > ying.huang@intel.com; zhengjun.xing@intel.com; x86@kernel.org > > Subject: Re: [genirq] cbe16f35be: will-it-scale.per_thread_ops -5.2% > > regression > > > > Hi Thomas, > > > > On Tue, Apr 27, 2021 at 01:42:12PM +0200, Thomas Gleixner wrote: > > > Folks, > > > > > > On Tue, Apr 27 2021 at 17:00, kernel test robot wrote: > > > > > > > Greeting, > > > > > > > > FYI, we noticed a -5.2% regression of will-it-scale.per_thread_ops due to > > commit: > > > > > > > > commit: cbe16f35bee6880becca6f20d2ebf6b457148552 ("genirq: Add > > > > IRQF_NO_AUTOEN for request_irq/nmi()") > > > > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git > > > > master > > > > > > this is the second report in the last week which makes not a lot of sense. > > > And this oneis makes absolutely no sense at all. > > > > > > This commit affects request_irq() and the related variants and has > > > exactly ZERO influence on anything related to that test case simply > > > because. > > > > > > I seriously have to ask the question whether this test infrastructure > > > is actually measuring what it claims to measure. > > > > > > As this commit clearly _cannot_ have the 'measured' side effect, this > > > points to some serious issue in the tests or the test infrastructure > > > itself. > > > > 0day has reported about 20 similar cases that the bisected commit has nothing > > to do with the benchmark case, and we were very confused too back then. And > > our debug showed many of them changed the code alignment of kernel data or text > > of other modules which is relevant with the benchmark, though some cases are > > not well explained yet. Following are links of some explained cases. > > > > https://lore.kernel.org/lkml/20200305062138.GI5972@shao2-debian/ > > https://lore.kernel.org/lkml/20200330011254.GA14393@feng-iot/ > > https://lore.kernel.org/lkml/20201102091543.GM31092@shao2-debian/ > > > > And to debug code alignment case, one debug patch to force all function address > > aligned to 32 bytes was merged in v5.9 > > > > 09c60546f04f ./Makefile: add debug option to enable function aligned on 32 bytes > > > > > > For this particular case, the commit changes the code size of > > request_threaded_irq(), and many following functions' alignment are changed. > > > > If so, the performance impact of code change would be random. Right, I heard 0day team has enabled the force_func_align_32B for some kernel build to filter the case. > > So I extended the debug patch to force 64 bytes aligned, then this commit will > > cause _no_ performance change for the same test case on same platform. > > > > diff --git a/Makefile b/Makefile > > > > ifdef CONFIG_DEBUG_FORCE_FUNCTION_ALIGN_32B > > -KBUILD_CFLAGS += -falign-functions=32 > > +KBUILD_CFLAGS += -falign-functions=64 > > endif > > > > Though I don't know the detail of how exactly this code alignment affects the > > case. > > Guess it is related with icache. Possibly, and sometime iTLB also. > But it is still an irrelevant problem. Yes, the commit itself has no problem. And my personal thought is no further action is needed. Thanks, Feng > > > > Thanks, > > Feng > > > > > Thanks, > > > > > > tglx > > Thanks > Barry