Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2057225ybt; Thu, 2 Jul 2020 22:57:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJXlFfWUFRFpqj1OIJTmrS0DZYC4aN83rjvZYVYNnqe/Fn34cTFvdCQsBvQQEPQjlFptcX X-Received: by 2002:aa7:db4f:: with SMTP id n15mr22719383edt.193.1593755874001; Thu, 02 Jul 2020 22:57:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593755873; cv=none; d=google.com; s=arc-20160816; b=TS5mDYl5Dq9B2JKgZPrmvnwlVV2zbkyFYHgZ1d4UxJvM1Y4xPQT/nfCojqRHl0/qrq QSU72Faj6i+2mzaVPdlW6Z0DQu/mOgIYfIyhk4lz+rS/l9rxyPnhGao7aIXtxsFw7GB7 NrlCimKw5T/dyUXY5iMubCzW33ezyskBbSDgWXaUq7m7BoHifetjvAl0Xa9dZX+KlQUB y5eRzTUFABxLGXuhVmNDitZ53IRXXAcnT4214vNOpSJQmYz/tFr+vFHNAZXxl3TZ6/WZ CAf7rGf+K3LNxyw+2at+jY2alT4FkM+Xqgk5zHPpUNRUGnuPKlZDQYOwsBUEaTFGj82O QlnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=L84aoiLYQJDfB+yamcOFUWmeBHp/MLFgIGC1+TLdnJQ=; b=pI1TsDkN4WLWX5LYcuc7eJPLLRHdt5DINLazPvFgLTb3F57nhHcafXxJQGeN2jk+p9 ALFBl2paR2GNX7aSB6oL4yKoURDyvjy9r4+ZwG982QtsIauAzbhFihzV/VPI+Nq9tz0j WRnny3l3I3b70XvDb406rGMoCmKMYBtLQ/Ph8ZhrXHrzBq+dfq95iVU1JzPr2q1GR5bu Wl5bi2ZELdi5z86moWqwpptYMXE9/lcq8WCYhOdlJWm2JUhBQJqpU9cWw9hkIGB/D5nE kwWVD7vX+N9dGJtQVnsIIR6hMd/SljeiFV7rdo8z0wKcjw0+xWjSftqryyS1yhqxocZJ 1ujQ== 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 p5si7080500ejx.318.2020.07.02.22.57.31; Thu, 02 Jul 2020 22:57:53 -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 S1726082AbgGCFzE (ORCPT + 99 others); Fri, 3 Jul 2020 01:55:04 -0400 Received: from mga06.intel.com ([134.134.136.31]:18291 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725764AbgGCFzD (ORCPT ); Fri, 3 Jul 2020 01:55:03 -0400 IronPort-SDR: cyE/XyKNTNP02QGL9eZ++jUH7tQLOlY6uI8mJeKM04XHvpGhF1LIBNsRINWF3TZvVhyamJSLyJ +67QT3iWbIuw== X-IronPort-AV: E=McAfee;i="6000,8403,9670"; a="208614433" X-IronPort-AV: E=Sophos;i="5.75,307,1589266800"; d="scan'208";a="208614433" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2020 22:55:02 -0700 IronPort-SDR: 1/dfEGOro3OAp3tG2MJqrkY5IghHqv7u5uY+3ngl3gAohzd5F0aeqOqnBbBiejAoHWeqVvuGwh 8P6CBD5tp6tQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,307,1589266800"; d="scan'208";a="321718978" Received: from shao2-debian.sh.intel.com (HELO [10.239.13.3]) ([10.239.13.3]) by FMSMGA003.fm.intel.com with ESMTP; 02 Jul 2020 22:55:00 -0700 Subject: Re: [bpf] af7ec13833: will-it-scale.per_process_ops -2.5% regression To: Yonghong Song Cc: Alexei Starovoitov , Andrii Nakryiko , Martin KaFai Lau , LKML , lkp@lists.01.org References: <20200628085032.GT5535@shao2-debian> From: Rong Chen Message-ID: <1d98d1f0-fe84-6df7-f5bd-f4cb2cdb7f45@intel.com> Date: Fri, 3 Jul 2020 13:54:39 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/29/20 11:10 PM, Yonghong Song wrote: > > > On 6/28/20 1:50 AM, kernel test robot wrote: >> Greeting, >> >> FYI, we noticed a -2.5% regression of will-it-scale.per_process_ops >> due to commit: >> >> >> commit: af7ec13833619e17f03aa73a785a2f871da6d66b ("bpf: Add >> bpf_skc_to_tcp6_sock() helper") >> https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master > > One of previous emails claims that > ??? commit: 492e639f0c222784e2e0f121966375f641c61b15 ("bpf: Add > bpf_seq_printf and bpf_seq_write helpers") > is reponsible for 2.5% improvement for will-it-scale.per_process_ops, > which I believe is false. > > This commit should not cause regression. > > Probably the variation of performance is caused by test environment > which you may want to investigate further to reduce false alarming. > Thanks! Hi Yonghong, It's a function align issue, the commit effects the align of functions which causes a little regression, we force to set -falign-functions=32 in KBUILD_CFLAGS and the regression is gone: diff --git a/Makefile b/Makefile index 70def4907036c..9746afa4edc21 100644 --- a/Makefile +++ b/Makefile @@ -476,7 +476,7 @@ LINUXINCLUDE??? := \ ??????????????? $(USERINCLUDE) ?KBUILD_AFLAGS?? := -D__ASSEMBLY__ -fno-PIE -KBUILD_CFLAGS?? := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \ +KBUILD_CFLAGS?? := -Wall -Wundef -falign-functions=32 -Werror=strict-prototypes -Wno-trigraphs \ ?????????????????? -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \ ?????????????????? -Werror=implicit-function-declaration -Werror=implicit-int \ ?????????????????? -Wno-format-security \ Best Regards, Rong Chen > >> >> 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: 16 >> ????mode: process >> ????test: mmap1 >> ????cpufreq_governor: performance >> ????ucode: 0x5002f01 >> >> 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: > [...]