Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp268766pxb; Wed, 18 Nov 2020 04:10:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJcZz0eB1H30FGIqPz5I9T63CHDdy5+dat4/pWNH0CSKPTtlwscbuE3cBVESTMzDTCLTt6 X-Received: by 2002:a17:906:1412:: with SMTP id p18mr23757814ejc.480.1605701447819; Wed, 18 Nov 2020 04:10:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605701447; cv=none; d=google.com; s=arc-20160816; b=uQFh3aEWpCzVyHPuJrfY6XfJp8QTkvN8gJQ5JEsop0BFFE7dFS39MQBrrpjVTCI1Hz ke2PBkKgJhoDhIf8fZRUMzHg78Fhxpzql/4pdiYD4sxuXJHOvl2OqzctllRxJAiKhJ97 liiABUVHhXuiAuF3HhnLg0KUtTpg6zl5Mf/ogglV949Bq0DRqkpPKA1/6y8t+9anp0GQ hYVyoAPbcmheKV1KPMgc7VBbVBn+bISCyLMut8r5LnmV42fqN4NAMX2MeKI1ueXyxjSg 1fiwO9ndm7NtOPUA2e09NVZXYxNlu2myEVPx4M96MXKCp0nVFgHgTv61mshgd8g8zAdm 8oag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:in-reply-to:subject :cc:to:from:user-agent:references; bh=0glKIhAeJTxuz7rSJ9gdn/MNpCBZoIbgB/VhZc43miw=; b=Oax5k3ajosFtwXjYIJ3hYZVhck3NsUT3IHnF4XN04rvR7BpPLUAgHRgA0cid81mLKO 0318Q6libQOzZpXNNpGdcm9tctPGre9XmVIx8kZMniSOrlf6e+mBwwKRBuMjzdfhJGJJ Hzf3puWkyPiLmUKs0J3+pwvcKdd2MTEKbsjT19U2SsyAOpOdu9vmw79XBigHueA6/kGx qk4FbsvofTYcplr522QVKbam1ZwvnMxooJYjHuO/lWJMIfQ08IAmZkSSgR6e2v8ZvotA ZoUzjoWvb1k8hBVLU8cteDBnf5QPiTR3l582e12Z/PdyT6xPRIo63d3sgjvUXl0JJP5F 0+lA== 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=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e24si14888694ejr.575.2020.11.18.04.10.25; Wed, 18 Nov 2020 04:10:47 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728091AbgKRMGp (ORCPT + 99 others); Wed, 18 Nov 2020 07:06:45 -0500 Received: from foss.arm.com ([217.140.110.172]:53094 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726731AbgKRMGp (ORCPT ); Wed, 18 Nov 2020 07:06:45 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E705011D4; Wed, 18 Nov 2020 04:06:44 -0800 (PST) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0FA0B3F70D; Wed, 18 Nov 2020 04:06:42 -0800 (PST) References: <20201116200428.47359-1-aubrey.li@linux.intel.com> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Aubrey Li Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, mgorman@techsingularity.net, qais.yousef@arm.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, tim.c.chen@linux.intel.com, linux-kernel@vger.kernel.org, Aubrey Li , Mel Gorman , Jiang Biao Subject: Re: [RFC PATCH v4] sched/fair: select idle cpu from idle cpumask for task wakeup In-reply-to: <20201116200428.47359-1-aubrey.li@linux.intel.com> Date: Wed, 18 Nov 2020 12:06:36 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/11/20 20:04, Aubrey Li wrote: > From: Aubrey Li > > Add idle cpumask to track idle cpus in sched domain. When a CPU > enters idle, if the idle driver indicates to stop tick, this CPU > is set in the idle cpumask to be a wakeup target. And if the CPU > is not in idle, the CPU is cleared in idle cpumask during scheduler > tick to ratelimit idle cpumask update. > > When a task wakes up to select an idle cpu, scanning idle cpumask > has low cost than scanning all the cpus in last level cache domain, > especially when the system is heavily loaded. > > Benchmarks were tested on a x86 4 socket system with 24 cores per > socket and 2 hyperthreads per core, total 192 CPUs. Hackbench and > schbench have no notable change, uperf has: > > uperf throughput: netperf workload, tcp_nodelay, r/w size = 90 > > threads baseline-avg %std patch-avg %std > 96 1 0.83 1.23 3.27 > 144 1 1.03 1.67 2.67 > 192 1 0.69 1.81 3.59 > 240 1 2.84 1.51 2.67 > > Cc: Mel Gorman > Cc: Vincent Guittot > Cc: Qais Yousef > Cc: Valentin Schneider > Cc: Jiang Biao > Cc: Tim Chen > Signed-off-by: Aubrey Li That's missing a v3 -> v4 change summary