Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1403460lql; Tue, 12 Mar 2024 16:57:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNpeXjwJTE9M+/xncHWgf1uiHfOEo7cTUQMec/egP9MpHiChtHKmqTdvYHldu5eeLlDoFU33vnftVT9Ixn4+eN2yJIkskNi9pz68UUNQ== X-Google-Smtp-Source: AGHT+IGoH0EKSVM80X5tKbQasa1OPQCQHiCADxwMnLHktj25CPi4j00sbV26CVPeqWChBelP+T0x X-Received: by 2002:a05:622a:cf:b0:42e:b33f:2c98 with SMTP id p15-20020a05622a00cf00b0042eb33f2c98mr2632313qtw.53.1710287859803; Tue, 12 Mar 2024 16:57:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710287859; cv=pass; d=google.com; s=arc-20160816; b=uIExa/Ug3i6Xe/ojdUvH7oaUt+Wvuo3fMNG5mi1/CBcmhkQylnivO/IU3O0tdBPORQ V+QO/7tL2Akg6C0l4hsWHNRxsjOUQvZ2W4dGGkw5+Ok4z/Y52xxxjFb75na4uGbP0LxN K+wtNNiNN9o7JqBnwIVM0p1VjHycDlZQD3yeH6ZdCUhj+RnnKXfRLYsYs1wfchGujjv1 qmmr8gCULCFO882aQMcHh5Zhm8F557aqzND4WzZkVHTk3pzzZ1W0uY9BNYTewAqUknK0 lW7jFbIjF1EGBeqXT5J4+VEnHMGrD1s1dYC47QdfrLSnO1PmrdaH9hntOIdmXOimfE5m K5WA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hVKplzrao1kHmKsp6WPoXPVUWgTqdRS1NKfYz4VmqgY=; fh=1YVnDMx89ej31X0tao0bXkThGYXDCXwNJjTMslf+fBs=; b=W3qNv7PcEqULOqQp/nfOoHC0YoJHAVgoGJGOiVnjvUwsSEd5hpkVGwwHwwK8AYhB1j brvxq5gzTLc64QzKMXnVma3leXtUrL2czEpWC5ObNHAM/H6nSVEk2Zcv9c0C+aI6K/Ct E3eT4aNI1zcxDhA/kRpx4XHXcxesPD/+f17MT5QsxTxfmeg0OTTx0QYBV3FdZwJLrhwL 54H5Uq3kSzVArnFkjmGWSUzOsY3mGh4fSe9vL783BwQAKpvuzK2synIfwCES1MxmUlmj 1os799bIVu2PUiBdHOvsZD0FaUA9JLddKQA/+M3Ga3obTR4RSyM1ahPVYu8JjPW2E1OE 6yPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MJkiRD26; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-100948-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100948-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d7-20020ac85ac7000000b00430908eb207si131234qtd.114.2024.03.12.16.57.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 16:57:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100948-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MJkiRD26; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-100948-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100948-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5B34C1C21B6F for ; Tue, 12 Mar 2024 23:57:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF3984AEC8; Tue, 12 Mar 2024 23:57:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MJkiRD26" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E0444AEC7; Tue, 12 Mar 2024 23:57:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710287854; cv=none; b=QAamE9+Y9rkWFF1eRw7nlLbjAIfFnZLOzsFjw+ohszjcFOatfeKulGrEW6ABWLuqjXn74x6nL6yTec4VYJPAAnia72DL9W32B1RdX6wYhvsxUvH8HDd7ELNeC/db+yR8/3zPjelcXufkfC92IDJC/HXFBt0B2kkdj41mBvxVXmM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710287854; c=relaxed/simple; bh=lQTDOKFnPSdYos3/V0QvsaFSFKIFteWUstF7Ceh6imI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=C3rBobs2nST3aU97r+aGuiOx3dA3dK3mEGXpXYT8+EMdmq8FG9OwbX1b/ReOBfix5skwm5qwsHh4hvXL1dOJ8r8wM2C3btnKTUgo38suybHXLNMuxSIjJbE/98qZU7TOexrVUqz0bVy3iIzm33xuGQZMZ2bqcqkXXWAifLHmQdE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MJkiRD26; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22C3EC433C7; Tue, 12 Mar 2024 23:57:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710287853; bh=lQTDOKFnPSdYos3/V0QvsaFSFKIFteWUstF7Ceh6imI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MJkiRD268/gQO8vSDTK/fASbFQBoYN+FxT3yzDd90uAUcpUYVbg/XVh6BK2ssVVD1 vNYWd8fDKJcTlyGTSGvVT1AtwCpmlcbQeDVB4zP+gYokKLrHCHibvxKNoTgTAdk6r3 J4xyXD8uCxfsqUCUaD5ITd81h+xM4y6BaeTqNZd1HFktWdpqyzgzdXGmhKCC7ahuLu 6IVN/M8ECUqMxPVbqFHNX3KXPTO1LUGq7sOn8p6UFMW2mD6o5al7oWZF89WBTXcrB/ iU5UtI/5c9+eZSCkzUbnTJRvdfUt5N69ng9PIBbyAf9DP4JC+hLkn4AvCDTa6OTbDy jnYyM4m+brocA== Date: Wed, 13 Mar 2024 00:57:30 +0100 From: Frederic Weisbecker To: kernel test robot Cc: Anna-Maria Behnsen , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner , ying.huang@intel.com, feng.tang@intel.com, fengwei.yin@intel.com Subject: Re: [tip:timers/core] [timers] 7ee9887703: netperf.Throughput_Mbps -1.2% regression Message-ID: References: <202403011511.24defbbd-oliver.sang@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202403011511.24defbbd-oliver.sang@intel.com> Le Fri, Mar 01, 2024 at 04:09:24PM +0800, kernel test robot a ?crit : > > > Hello, > > kernel test robot noticed a -1.2% regression of netperf.Throughput_Mbps on: > > > commit: 7ee988770326fca440472200c3eb58935fe712f6 ("timers: Implement the hierarchical pull model") > https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git timers/core > > testcase: netperf > test machine: 128 threads 2 sockets Intel(R) Xeon(R) Gold 6338 CPU @ 2.00GHz (Ice Lake) with 256G memory > parameters: > > ip: ipv4 > runtime: 300s > nr_threads: 200% > cluster: cs-localhost > test: SCTP_STREAM > cpufreq_governor: performance > > > > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-lkp/202403011511.24defbbd-oliver.sang@intel.com > > > Details are as below: > --------------------------------------------------------------------------------------------------> > > > The kernel config and materials to reproduce are available at: > https://download.01.org/0day-ci/archive/20240301/202403011511.24defbbd-oliver.sang@intel.com > > ========================================================================================= > cluster/compiler/cpufreq_governor/ip/kconfig/nr_threads/rootfs/runtime/tbox_group/test/testcase: > cs-localhost/gcc-12/performance/ipv4/x86_64-rhel-8.3/200%/debian-12-x86_64-20240206.cgz/300s/lkp-icl-2sp2/SCTP_STREAM/netperf > > commit: > 57e95a5c41 ("timers: Introduce function to check timer base is_idle flag") > 7ee9887703 ("timers: Implement the hierarchical pull model") So I can reproduce. And after hours staring at traces I haven't really found the real cause of this. 1% difference is not always easy to track down. But here are some sort of conclusion so far: _ There is an increase of ksoftirqd use (+13%) but if I boot with threadirqs before and after the patch (which means that ksoftirqd is used all the time for softirq handling) I still see the performance regression. So this shouldn't play a role here. _ I suspected that timer migrators handling big queues of timers on behalf of idle CPUs would delay NET_RX softirqs but it doesn't seem to be the case. I don't see TIMER vector delaying NET_RX vector after the hierarchical pull model, quite the opposite actually, they are less delayed overall. _ I suspected that timer migrators handling big queues would add scheduling latency. But it doesn't seem to be the case. Quite the opposite again, surprisingly. _ I have observed that, in average, timers execute later with the hierarchical pull model. The following delta: time of callback execution - bucket_expiry is 3 times higher with the hierarchical pull model. Whether that plays a role is unclear. It might still be interesting to investigate. _ The initial perf profile seem to suggest a big increase of task migration. Is it the result of ping-pong wakeup? Does that play a role? Thanks.