Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp110463pxy; Fri, 30 Apr 2021 01:17:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxC8xQS2sHVvuwARsMk6/swz0HYlPh7Ll3MEdDQBz81+GDvepUQgJBxP1FAXmxuH61a66mc X-Received: by 2002:a17:907:a044:: with SMTP id gz4mr2993306ejc.55.1619770653149; Fri, 30 Apr 2021 01:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619770653; cv=none; d=google.com; s=arc-20160816; b=B1oV9wOmop0utoPlevTanMSns71gB5HK7pFtnaVrjAaA0+ce7y2cw+f3WX9FTYLTNB FE70hOY16C1JE6k5cCOmXfl3dtvrN1E0a1ktRZ6hHAHcfqmOHG3al6d5kt54D21GRgoj gWsmuBzmaKQ2uIUKFzU1bsC/6NdX0MLFN6SBDcwyjrZR0Mp5YLWjpdgBNR+Of9hCpVEg HySus48KHVOJrhwjmNafn756sk3gRwvmIEIkzcOeqJDyyZ4enabvbiaxb0Pp3fkNw6Tc Uv833Qnzx1Rlq+mzRgodYdF9b3qj33bouzXFkS/wrGEr7b3PoYX1PLWJWRDjy4S3xKvE 2OTQ== 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=nVLYboxuhLd++xNPoBuqxTXbfoT8RvgWceDO4NEKatY=; b=sso5x689ZjxZpX6p1vSDxhv+n7790jTB8Vi9X3D2V2IZRx9+3EI9fbRqgkaEzY6XQA gOafUQfs1Vqrvmjlo8O2ckX1fVUCYdXkAFid0upKjehWxjai28a7g1Qw2Otw+JykhI1u ye+Zx0WfBlXwy2yw687GYs7yay4MrwX3jj2fCS+uuhwV20gGlT996dBXu0EM9hVeKTAi EaFHpxF+3FXB8IytuWKsKgE0C3c0istuBgGlHyioQfsgScl50P+tSkzFRLGLV2KAJhkF u9N35PQKLhfTWz//B5KOD77BIczz1D1Fl47bxMsdaiVG3EouGetYsIz1zvvj5fwlIcfi j/WA== 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 n26si2570783ejx.488.2021.04.30.01.17.08; Fri, 30 Apr 2021 01:17:33 -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 S229766AbhD3IOy (ORCPT + 99 others); Fri, 30 Apr 2021 04:14:54 -0400 Received: from mga07.intel.com ([134.134.136.100]:35446 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbhD3IOw (ORCPT ); Fri, 30 Apr 2021 04:14:52 -0400 IronPort-SDR: 6IMK2J5w3kil8tCzz64+cGqzau/fTgu2NMNDL2RpkK0EFPATil4fyOuyLjcxhyBNvQNlgURdsv DCpc6YZTlHkw== X-IronPort-AV: E=McAfee;i="6200,9189,9969"; a="261172218" X-IronPort-AV: E=Sophos;i="5.82,262,1613462400"; d="scan'208";a="261172218" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2021 01:14:04 -0700 IronPort-SDR: +bdN6GNT0E1QkWH5/hx+wo9ywdmUJdD8aJ2R+TKkIoHFu7wBSlLtNc03NP6t4FmBhY5rFi47di knie9ScJqfEQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,262,1613462400"; d="scan'208";a="459262030" Received: from shbuild999.sh.intel.com (HELO localhost) ([10.239.147.94]) by fmsmga002.fm.intel.com with ESMTP; 30 Apr 2021 01:14:00 -0700 Date: Fri, 30 Apr 2021 16:13:59 +0800 From: Feng Tang To: kernel test robot , Thomas Gleixner Cc: Thomas Gleixner , Peter Zijlstra , Oleg Nesterov , LKML , x86@kernel.org, lkp@lists.01.org, lkp@intel.com, ying.huang@intel.com, zhengjun.xing@intel.com Subject: Re: [signal] 4bad58ebc8: will-it-scale.per_thread_ops -3.3% regression Message-ID: <20210430081359.GB79529@shbuild999.sh.intel.com> References: <20210420030837.GB31773@xsang-OptiPlex-9020> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210420030837.GB31773@xsang-OptiPlex-9020> User-Agent: Mutt/1.5.24 (2015-08-30) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, On Tue, Apr 20, 2021 at 11:08:37AM +0800, kernel test robot wrote: > > > Greeting, > > FYI, we noticed a -3.3% regression of will-it-scale.per_thread_ops due to commit: > > > commit: 4bad58ebc8bc4f20d89cff95417c9b4674769709 ("signal: Allow tasks to cache one sigqueue struct") > https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git sched/core > > > in testcase: will-it-scale > on test machine: 192 threads Intel(R) Xeon(R) Platinum 9242 CPU @ 2.30GHz with 192G memory > with following parameters: > > nr_task: 100% > mode: thread > test: futex3 > cpufreq_governor: performance > ucode: 0x5003006 > > test-description: Will It Scale takes a testcase and runs it from 1 through to n parallel copies to see if the testcase will scale. It builds both a process and threads based test in order to see any differences between the two. > test-url: https://github.com/antonblanchard/will-it-scale > > > > If you fix the issue, kindly add following tag > Reported-by: kernel test robot > > > Details are as below: > --------------------------------------------------------------------------------------------------> > > > To reproduce: > > git clone https://github.com/intel/lkp-tests.git > cd lkp-tests > bin/lkp install job.yaml # job file is attached in this email > bin/lkp split-job --compatible job.yaml > bin/lkp run compatible-job.yaml > > ========================================================================================= > compiler/cpufreq_governor/kconfig/mode/nr_task/rootfs/tbox_group/test/testcase/ucode: > gcc-9/performance/x86_64-rhel-8.3/thread/100%/debian-10.4-x86_64-20200603.cgz/lkp-csl-2ap2/futex3/will-it-scale/0x5003006 > > commit: > 69995ebbb9 ("signal: Hand SIGQUEUE_PREALLOC flag to __sigqueue_alloc()") > 4bad58ebc8 ("signal: Allow tasks to cache one sigqueue struct") > > 69995ebbb9d37173 4bad58ebc8bc4f20d89cff95417 > ---------------- --------------------------- > %stddev %change %stddev > \ | \ > 1.273e+09 -3.3% 1.231e+09 will-it-scale.192.threads > 6630224 -3.3% 6409738 will-it-scale.per_thread_ops > 1.273e+09 -3.3% 1.231e+09 will-it-scale.workload We've double checked this, and it seems to be another case of the code alignment change caused regression change, just like the other case we debugged " [genirq] cbe16f35be: will-it-scale.per_thread_ops -5.2% regression" https://lore.kernel.org/lkml/20210428050758.GB52098@shbuild999.sh.intel.com/ With the same debug patch of forcing function address 64 bytes aligned, then commit 4bad58ebc8 will bring no change on this case. commit 09c60546f04f "./Makefile: add debug option to enable function aligned on 32 bytes" only forced 32 bytes align, with thinking 64B align will occupy more code space, and affect iTLB more. Maybe we should just extend it to 64B align, as it is for debug only anyway. Thanks, Feng