Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp86326pxb; Wed, 18 Nov 2020 17:17:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZ/+48gQn6+bgogkDlCYt0ija84rGzuvleuEoN7zfiPIyCcNjXRvDQiO1feddC+SoPX1y+ X-Received: by 2002:a17:906:4705:: with SMTP id y5mr25767962ejq.112.1605748649085; Wed, 18 Nov 2020 17:17:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605748649; cv=none; d=google.com; s=arc-20160816; b=bjZCMTSRMfnX96QmgbVAe2dL5i+2jvSmwGfMJAxtorjURHTPEmI4nvLbTGJ1wrmPuH 2j+3DaHqy1atITae/Eq9GHD92iS3I/ne/IY//wJPJ0VMXRX5O5E8BYDWn8ScBi+xIUjn rKt3+fWNDaSbI+HZ42f+WksN5z6pbvPA5oGPbgpI5B+z3G9bLZBNwK8DXbBx1rOAKigi EtxlKdBcMG1i/NbKUoJhRRb2lcVoF/LlWoIE3yAKVs+8IMrHbmWw9wypnH7RJmxmI3hk wg/JJnX9qKideyHEyJWs2qpV00HgtuqlS9Vju0MMsrUigau16toLo6XCD2nenhHUzY0g VUeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=/e1L4bsAilFqxOGAAT1Z7as/DE2xYIs2bDsoQ72XZVA=; b=Zt7yiNi81hVB1FcNNHg10iHGQsB+9spAZzmieSG2I0u8U25d2vdjL1Li0yw72IAQnc Zmj6ytBca48olH52gDNDAYOx/Uk/TWI7l5KHUnxohZ9FBBYb8AIY9NgGNESf9g9BEbkX DhkQvobJjlTGKtQpno/3k6bKZZKUQ22xXIgSNx0ACrbrxOwOO7JzI/cTTQv7lme7wBxg 5b8FIyrlhtFRCMwGs7On7SSXUGEyNxgI73hu2vxSXeNMqvYCeNm9Lx+KG4xWiyge62sb oarmD30OZC8q2f4ViNT7rQDVvCzxJdjrJcwx5iQ6jjP3oUMgMF+K76nzL9hujh93bhAE RhFg== 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 oq18si8439269ejb.33.2020.11.18.17.17.05; Wed, 18 Nov 2020 17:17:29 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727358AbgKSBNP (ORCPT + 99 others); Wed, 18 Nov 2020 20:13:15 -0500 Received: from mga09.intel.com ([134.134.136.24]:16346 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727238AbgKSBNP (ORCPT ); Wed, 18 Nov 2020 20:13:15 -0500 IronPort-SDR: khWteIRhFpZKIFHirz4UMCmbAfCesiW45m6Ro3tzj6OkQM4pFdK6BXIsCj2tBtKs3tKVoxIk7U JpIZI5kIxx0g== X-IronPort-AV: E=McAfee;i="6000,8403,9809"; a="171382406" X-IronPort-AV: E=Sophos;i="5.77,488,1596524400"; d="scan'208";a="171382406" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2020 17:13:14 -0800 IronPort-SDR: XmnOwdhb8nBV3dHO8tLz40nMCMV+mCwGfBBqVBauiLe47xX0C16JKgqz6Vi7zGNsjXmb0UWfN9 Q96ogSJl3Tkw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,488,1596524400"; d="scan'208";a="368576551" Received: from cli6-desk1.ccr.corp.intel.com (HELO [10.239.161.125]) ([10.239.161.125]) by FMSMGA003.fm.intel.com with ESMTP; 18 Nov 2020 17:13:10 -0800 Subject: Re: [RFC PATCH v4] sched/fair: select idle cpu from idle cpumask for task wakeup To: Valentin Schneider 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 References: <20201116200428.47359-1-aubrey.li@linux.intel.com> From: "Li, Aubrey" Message-ID: Date: Thu, 19 Nov 2020 09:13:09 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/11/18 20:06, Valentin Schneider wrote: > > 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 > okay, I'll add in the next version soon. Thanks, -Aubrey