Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4178783pxb; Tue, 26 Jan 2021 14:43:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5bdsk8iWBSeM0xpdGjOQqjQlvUIW5T3ZJuWPa5ifneJoR3vN5MiQMfAUOofsnC/VMCj81 X-Received: by 2002:a17:906:eca7:: with SMTP id qh7mr4841856ejb.437.1611700994304; Tue, 26 Jan 2021 14:43:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611700994; cv=none; d=google.com; s=arc-20160816; b=eCgpGRcP4AwY0hzd2RofyaQTno9lgZ8nvUkNnX9oRZK82EW95Hxi3stnch4OtFSX/h Jm5L2dpDBEJD6XKP0QJKs+f4rP6OECs//hKLXCxXr0su7Qtnr6Hh1KcHdPS3lrs1UW74 qXTeqtgDHn+9sbuTSvF/kurdDoP/nHKZr92tqIC8gKvANZiQrHy/u24gub5d5HD48lWM Yo/fuq5jA+VoqtVsGoMI/VVw7Rn0hySKUMmdPzeJUW7mYZBtlswGcjv15gmHXPTZWhst 0fefNgj7wyc3UW1AY+aH+oXuIXMRe8JQVTYR/AcfLMoLXRJllk7hCvpSg4OiOXZ7fTK2 uUQA== 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; bh=94OmSyQc1VRbDlFHW5+tp+s+BU3f94gTQ50LVla1OEc=; b=ZtYWNNNqSkBI/Fz4mO4V3kKSlDIfCP8RLqr01mxp1CPIxXSOBDjFqp/2l26/uzmzNj WWDUo39V7rh/ZDtobL4quhawEHqKcpghCUdHjCUVR2k4SsUzV6hZD7m83DLoKelDGEsC APK8tf0/G0FKbK1kZNW/AP02ibkaxsU2ygZAw6MpIxL8J5ihytYDpyIbOOLy3dkC56ZJ phLscLswQmCNjOA3lN5/z8P55J6vlLqFXlEJ582uDMn6Zvo7svbofX090XjBbcg7g7ie z8zzdfG30WCcXM7TJ+TWvStusIjcH/pTK/SDDqi1oSGBzoqPT9uPE1cvfMHTyv1wE3TT h2KA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o18si19150ejm.737.2021.01.26.14.42.49; Tue, 26 Jan 2021 14:43:14 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728496AbhAZEui (ORCPT + 99 others); Mon, 25 Jan 2021 23:50:38 -0500 Received: from outbound-smtp25.blacknight.com ([81.17.249.193]:42788 "EHLO outbound-smtp25.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726160AbhAYJRR (ORCPT ); Mon, 25 Jan 2021 04:17:17 -0500 Received: from mail.blacknight.com (pemlinmail04.blacknight.ie [81.17.254.17]) by outbound-smtp25.blacknight.com (Postfix) with ESMTPS id E0F5F42091 for ; Mon, 25 Jan 2021 09:04:20 +0000 (GMT) Received: (qmail 4005 invoked from network); 25 Jan 2021 09:04:20 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.22.4]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 25 Jan 2021 09:04:20 -0000 Date: Mon, 25 Jan 2021 09:04:19 +0000 From: Mel Gorman To: "Li, Aubrey" Cc: Vincent Guittot , Peter Zijlstra , Ingo Molnar , Qais Yousef , LKML Subject: Re: [PATCH v3 0/5] Scan for an idle sibling in a single pass Message-ID: <20210125090419.GW3592@techsingularity.net> References: <20210119112211.3196-1-mgorman@techsingularity.net> <20210119120220.GS3592@techsingularity.net> <20210122101451.GV3592@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 25, 2021 at 12:29:47PM +0800, Li, Aubrey wrote: > >>> hackbench -l 2560 -g 1 on 8 cores arm64 > >>> v5.11-rc4 : 1.355 (+/- 7.96) > >>> + sis improvement : 1.923 (+/- 25%) > >>> + the patch below : 1.332 (+/- 4.95) > >>> > >>> hackbench -l 2560 -g 256 on 8 cores arm64 > >>> v5.11-rc4 : 2.116 (+/- 4.62%) > >>> + sis improvement : 2.216 (+/- 3.84%) > >>> + the patch below : 2.113 (+/- 3.01%) > >>> > > 4 benchmarks reported out during weekend, with patch 3 on a x86 4s system > with 24 cores per socket and 2 HT per core, total 192 CPUs. > > It looks like mid-load has notable changes on my side: > - netperf 50% num of threads in TCP mode has 27.25% improved > - tbench 50% num of threads has 9.52% regression > It's interesting that patch 3 would make any difference on x64 given that it's SMT2. The scan depth should have been similar. It's somewhat expected that it will not be a universal win, particularly once the utilisation is high enough to spill over in sched domains (25%, 50%, 75% utilisation being interesting on 4-socket systems). In such cases, double scanning can still show improvements for workloads that idle rapidly like tbench and hackbench even though it's expensive. The extra scanning gives more time for a CPU to go idle enough to be selected which can improve throughput but at the cost of wake-up latency, Hopefully v4 can be tested as well which is now just a single scan. -- Mel Gorman SUSE Labs