Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1565319lql; Wed, 13 Mar 2024 01:26:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVyWWBMrSys78jF8PXTTnqq1ionArpQql/Rneht2jrvqArAMh1nmoKaFjPC8h87Z79fGQPkI0liKpBWGyG5Remqg7dzz9fdPNfn7ukLg== X-Google-Smtp-Source: AGHT+IEg38246fZlxcHSFyXsEWS0TjRyGrjRnvgVJZMdvcCiPPm7x7CLEjN0BE6GNIAdOqZrdyyL X-Received: by 2002:a05:620a:191f:b0:787:f71c:2f4 with SMTP id bj31-20020a05620a191f00b00787f71c02f4mr3398648qkb.70.1710318363882; Wed, 13 Mar 2024 01:26:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710318363; cv=pass; d=google.com; s=arc-20160816; b=A6bL6/H+idjUVM/huKH0E2GYbZTSSiS9j0viQd5yFDgrze5vqVfAA6opNYJYx4vEi7 yAK0T+JYs1m55rIkk633vCUIDXlXCz8Ws3TMCRb2Xx6KUnQW4cbUIj14THSnmfnHRb5i G4u0rNCs/keA7zbT3RmBJI/CTRf/YiNtUrSDIrw5uGiWxw0mV8OkjOIL9ExntwVXZJF8 omSTV+0/eHLlb48hUltnLTCeDcaVKYiNZjWjB2K8alofESm65acxB0uiTSqyXzFPg8Su k1hFp1UCl7ZL8qPoAk9jbvp+Kryx9Rxr7hZJKyWBqEh5IBmlGSVKenenxOwVwsKobkh9 GT6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=2qmDJo6fzPhBsNX/lp9m4dC3u9FOBCYDlZ4df3GKyEY=; fh=bQroEE8kRWa9XE9OrXDYYd9ZilgIsDf1GC0xA1FeHU0=; b=LxIwgPOQQ2VVV64upHJo4WOkKZnMYfSEpccl6xpxbK6ys2olxUbMBCzxNGN403s4X9 pC0B/e49XFVMTgAoC6gvsEJ2kXm5DRiwgUD7GrTo9CeINnECNAYW4wXMHHHz6reTkmgd 4f4vkja90VyA7J7H8BMtQIA173Neq3a7rreVmcaPjIaiO0s8iLRmmKF/c+Q31LjyEo4Q 2Qnp1vbxkZb218JwDGzv5mlSYqUMgJCUXxzoqtAe436nKmM0jtd9KxiYeSjonkrULkff Qzau5psa/KBbUGy7tXNzlfPETc23FXOYBHbZAJqceyjsRNP49PK3LbN9hq5x20eAmlHf aqUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Jy7pPcWB; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="kPllyf/N"; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-101213-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101213-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w8-20020a05620a148800b00788318079a8si9371674qkj.778.2024.03.13.01.26.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 01:26:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101213-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=@linutronix.de header.s=2020 header.b=Jy7pPcWB; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="kPllyf/N"; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-101213-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101213-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 9A1FE1C217BD for ; Wed, 13 Mar 2024 08:26:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D222119477; Wed, 13 Mar 2024 08:25:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Jy7pPcWB"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="kPllyf/N" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 8DFE61428A for ; Wed, 13 Mar 2024 08:25:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710318356; cv=none; b=cx14gMD5J8M0P+OAR22Sl6oH67CZ2falP1X4y/amjcMaEKnkh38ZB2iQ7hpcfdCs25OOaQHwjcATK0ZAWUOEgDVL9mQ3DKafOG3qDnHvdxMy9pRO7NbBzHNpFceIWB5Jsoubf0yg/fIzIrRmypjm7IOYK7NN8XXhNNVH59D8fMw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710318356; c=relaxed/simple; bh=b7Tnp/Yse8g4h03H59s1KXPCgkVcxgZsLUGUxUbjJxE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=KUL3oxXtcyyRL9dO6ROFZiDZmXn9n4+CssCIMLFaQteyti4191ArbRrw74G/151+g+xLB31R2zCaB0w6NMopLPnvxAR5HhJq45GgiI3c6IdhgU9F7hqbCpX2pslJr/8m8U0Mk6FzuNCxar2ScdiGmkLHmHMUWAOz/QdQcELY8iA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Jy7pPcWB; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=kPllyf/N; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1710318352; 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=2qmDJo6fzPhBsNX/lp9m4dC3u9FOBCYDlZ4df3GKyEY=; b=Jy7pPcWBk013DFJwQ3yEQ60pnAG5sQXoYL1Va1ljMEowzlVxHuzeuA7zW+x+/YKdc7IaXy JV6b0tRnaZl5LLw+WAqKozdA0UuWMzHqYS1yt/CJcDhALEeKnnuxswujtUnRoyCg263MqP 5peXiJBkuBdbNu873c15iYFMtkmP4JOzdcb3TOhal3UnOBgnFYC1DsukIaWTi3RPTXMKsm xiXOBLqMKATTifgdXLitIriA0pszaDowTuAQyDb0BgGMGQ7geY0bMrNyu6e6gW0fFWg0Zs 2TWKso8X2uQ/DmCNJtAOTtqSRXlABJbaOVdVm5gW57+TDlRhEDWy9cxViilABw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1710318352; 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=2qmDJo6fzPhBsNX/lp9m4dC3u9FOBCYDlZ4df3GKyEY=; b=kPllyf/NWwBadhYPR26w1HrFbuQ/COKEacMoWt9eN4o3RlwbVW32izhgAYCtOEA07lAFF2 X1yhR0VdSoAtwCCw== To: Frederic Weisbecker , kernel test robot Cc: Anna-Maria Behnsen , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, x86@kernel.org, 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 In-Reply-To: References: <202403011511.24defbbd-oliver.sang@intel.com> Date: Wed, 13 Mar 2024 09:25:51 +0100 Message-ID: <87y1amo7w0.ffs@tglx> 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=utf-8 Content-Transfer-Encoding: quoted-printable On Wed, Mar 13 2024 at 00:57, Frederic Weisbecker wrote: > So I can reproduce. And after hours staring at traces I haven't really fo= und > 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 threadi= rqs > 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 behal= f of > idle CPUs would delay NET_RX softirqs but it doesn't seem to be the cas= e. I > don't see TIMER vector delaying NET_RX vector after the hierarchical pu= ll > model, quite the opposite actually, they are less delayed overall. > > _ I suspected that timer migrators handling big queues would add scheduli= ng > 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 hierarc= hical > 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 migrati= on. Is > it the result of ping-pong wakeup? Does that play a role? Migration is not cheap. The interesting question is whether this is caused by remote timer expiry. Looking at the perf data there are significant changes vs. idle too: perf-profile.calltrace.cycles-pp.poll_idle.cpuidle_enter_state.cpuidle_= enter.cpuidle_idle_call.do_idle 36.91 =C2=B1 2% -12.6 24.32 =C2=B1 10% -12.3 24.63 = =C2=B1 5%=20 That indicates that cpuidle is spending less time in idle polling, which means that wakeup latency increases. That obviously might be a result of the timer migration properties. Do you have traces (before and after) handy to share? Thanks, tglx