Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2558152pxb; Mon, 11 Jan 2021 12:55:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgSrSPIaS7YD4qHKPlykbeVxR1G2dF2MAKBJUNS5Wb4tJe0fkZOvpUL//YVPPMlAMVv0ZR X-Received: by 2002:a17:906:7689:: with SMTP id o9mr899123ejm.324.1610398522227; Mon, 11 Jan 2021 12:55:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610398522; cv=none; d=google.com; s=arc-20160816; b=s5pQQmNyeeQb34lansPrLCuIDbgZ8kp59gc9l9pgkfs/xo91TNkTeD8TB/u+VKQboS MCC20QHKV77pl86fS5J8Vbtse9b1UoLmx1zaG8V5Byau/waYHQMMjAkAILJrbo6OGdf0 NkjZ/xMkLDJU0W0oUvv1GlX56q1GAzInu2ZCJVrJ8V61nukx32hmCp2WUiy4YkfqboPd Zu+Zil5iSCUBasWl2BDMAEoTD2CdCeHZp+LejzgxrgiJnbOZMfnTP6YQoCyZkDtARwLa 6OzVaZuM4Qca8C7/P0Dg//eUMJRCFrFf7MlhgvYuKGKoVVKdu6alR5Wr5XXODTdflWuy YR8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:references:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=iCuH3Dm4ZS/PvS+RBwx5pqXArW0XF2BUGzyBiQebWXQ=; b=RUKKsdu7rMBmJE6ixnjIFRxy138OQGR6mVDUvepT2U+sFxKqpS7P/Fo64uyEXFq8f1 DMdeiaGpREZGffgjjob5x5yFa9T9Z6zqg7i9+eSe6TiXy4t3bqfA/Eez8zyZaYDyFRCX RgHgjZExbvMYibym6q4kQsf5jU/j7rjgcFAjbJ+SNO+5LMv5t+CSyJLLkF3jWCO3B07/ tfavO49nZSAfmRIpF0h2vpCQcRVj9xFN0qLEVNyOMq+QH2aIZWRWQvhQf2FNSfdhTn5W cHdbCW216pMTvmBI2NOo5/uXx1fYTb9Qn0l0+rDTb01cuEHTVFy3ZeoA4SXjNMwwbew6 b5Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@163.com header.s=s110527 header.b=UJ6UEcsL; 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=163.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx27si323432edb.264.2021.01.11.12.54.58; Mon, 11 Jan 2021 12:55:22 -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; dkim=neutral (body hash did not verify) header.i=@163.com header.s=s110527 header.b=UJ6UEcsL; 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=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404054AbhAKUuI (ORCPT + 99 others); Mon, 11 Jan 2021 15:50:08 -0500 Received: from m13101.mail.163.com ([220.181.13.101]:43568 "EHLO m13101.mail.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728354AbhAKUuH (ORCPT ); Mon, 11 Jan 2021 15:50:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:MIME-Version:Message-ID; bh=oLvsT gZemaYY5rCQ6nzdR9caKx5Vm6zBzOwg/h/AcMQ=; b=UJ6UEcsL2TXMGns8taCXz 6VPK7dBUX3/VuWTh7ul4R57y7MrPI/qoLKNkw3oc7zgALCo1BGRA+YrhrYhJMpuW fmoV1MjSOYzV5yqpgsUVuX7mMYkdJE/IlOJ3jEDvb6HwTxhLSp83b5MPe6cTY98Z DmcopHN47NnPUzkLHJzoGA= Received: from ultrachin$163.com ( [111.206.145.10] ) by ajax-webmail-wmsvr101 (Coremail) ; Mon, 11 Jan 2021 16:26:21 +0800 (CST) X-Originating-IP: [111.206.145.10] Date: Mon, 11 Jan 2021 16:26:21 +0800 (CST) From: chin To: "Vincent Guittot" Cc: linux-kernel , "Ingo Molnar" , "Peter Zijlstra" , "Juri Lelli" , "Dietmar Eggemann" , "Steven Rostedt" , "Ben Segall" , "Mel Gorman" , "Daniel Bristot de Oliveira" , heddchen@tencent.com, =?GBK?Q?xiaoggchen=28=B3=C2=D0=A1=B9=E2=29?= Subject: Re: [PATCH] sched: pull tasks when CPU is about to run SCHED_IDLE tasks X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.13 build 20201118(ab4b390f) Copyright (c) 2002-2021 www.mailtech.cn 163com In-Reply-To: References: <1608710968-31475-1-git-send-email-ultrachin@163.com> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=GBK MIME-Version: 1.0 Message-ID: <1fefea2e.70bf.176f08d9fae.Coremail.ultrachin@163.com> X-Coremail-Locale: zh_CN X-CM-TRANSID: ZcGowADn75euC_xf_OEAAQ--.36308W X-CM-SenderInfo: xxow2thfkl0qqrwthudrp/1tbiNR4XWFrPahA0-gACsD X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CkF0IDIwMjAtMTItMjMgMTk6MzA6MjYsICJWaW5jZW50IEd1aXR0b3QiIDx2aW5jZW50Lmd1aXR0 b3RAbGluYXJvLm9yZz4gd3JvdGU6Cj5PbiBXZWQsIDIzIERlYyAyMDIwIGF0IDA5OjMyLCA8dWx0 cmFjaGluQDE2My5jb20+IHdyb3RlOgo+Pgo+PiBGcm9tOiBDaGVuIFhpYW9ndWFuZyA8eGlhb2dn Y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do aWxlIHRoZXJlIGFyZSBvbmxpbmUgdGFza3Mgd2FpdGluZyB0byBydW4uClNvIGluIG91ciBzaXR1 YXRpb24gd2UgaG9wZSB0aGUgU0NIRURfTk9STUFMIHRvIHJ1biBpZiBoYXMgYW55LgoKTGV0J3Mg YXNzdW1lIHdlIGhhdmUgMiBDUFVzLApJbiBDUFUxIHdlIGdvdCAyIFNDSEVEX05PUk1BTCB0YXNr cy4KaW4gQ1BVMiB3ZSBnb3QgMSBTQ0hFRF9OT1JNQUwgdGFzayBhbmQgMiBTQ0hFRF9JRExFIHRh c2tzLgoKICAgICAgICAgICAgIENQVTEgICAgICAgICAgICAgICAgICAgICAgQ1BVMgogICAgICAg IGN1cnIgICAgICAgcnExICAgICAgICAgICAgY3VyciAgICAgICAgICBycTIKICAgICAgKy0tLS0t LSsgfCArLS0tLS0tKyAgICAgICArLS0tLS0tKyB8ICstLS0tKyArLS0tLSsKdDAgICAgfE5PUk1B THwgfCB8Tk9STUFMfCAgICAgICB8Tk9STUFMfCB8IHxJRExFfCB8SURMRXwKICAgICAgKy0tLS0t LSsgfCArLS0tLS0tKyAgICAgICArLS0tLS0tKyB8ICstLS0tKyArLS0tLSsKCiAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIE5PUk1BTCBleGl0cyBvciBibG9ja2VkCiAgICAgICstLS0t LS0rIHwgKy0tLS0tLSsgICAgICAgICAgICAgICAgfCArLS0tLSsgKy0tLS0rCnQxICAgIHxOT1JN QUx8IHwgfE5PUk1BTHwgICAgICAgICAgICAgICAgfCB8SURMRXwgfElETEV8CiAgICAgICstLS0t LS0rIHwgKy0tLS0tLSsgICAgICAgICAgICAgICAgfCArLS0tLSsgKy0tLS0rCgogICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICBwaWNrX25leHRfdGFza19mYWlyCiAgICAgICstLS0tLS0r IHwgKy0tLS0tLSsgICAgICAgICArLS0tLSsgfCArLS0tLSsKdDIgICAgfE5PUk1BTHwgfCB8Tk9S TUFMfCAgICAgICAgIHxJRExFfCB8IHxJRExFfAogICAgICArLS0tLS0tKyB8ICstLS0tLS0rICAg ICAgICAgKy0tLS0rIHwgKy0tLS0rCgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBT Q0hFRF9JRExFIHJ1bm5pbmcKdDMgICAgKy0tLS0tLSsgfCArLS0tLS0tKyAgICAgICAgKy0tLS0r ICB8ICstLS0tKwogICAgICB8Tk9STUFMfCB8IHxOT1JNQUx8ICAgICAgICB8SURMRXwgIHwgfElE TEV8CiAgICAgICstLS0tLS0rIHwgKy0tLS0tLSsgICAgICAgICstLS0tKyAgfCArLS0tLSsKICAg ICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcnVuX3JlYmFs YW5jZV9kb21haW5zCiAgICAgICstLS0tLS0rIHwgICAgICAgICAgICAgICAgKy0tLS0tLSsgfCAr LS0tLSsgKy0tLS0rCnQ0ICAgIHxOT1JNQUx8IHwgICAgICAgICAgICAgICAgfE5PUk1BTHwgfCB8 SURMRXwgfElETEV8CiAgICAgICstLS0tLS0rIHwgICAgICAgICAgICAgICAgKy0tLS0tLSsgfCAr LS0tLSsgKy0tLS0rCgpBcyB3ZSBjYW4gc2VlCnQxOiBOT1JNQUwgdGFzayBpbiBDUFUyIGV4aXRz IG9yIGJsb2NrZWQKdDI6IENQVTIgcGlja19uZXh0X3Rhc2tfZmFpciB3b3VsZCBwaWNrIGEgU0NI RURfSURMRSB0byBydW4gd2hpbGUKYW5vdGhlciBTQ0hFRF9OT1JNQUwgaW4gcnExIGlzIHdhaXRp bmcuIAp0MzogU0NIRURfSURMRSBydW4gaW4gQ1BVMiB3aGlsZSBhIFNDSEVEX05PUk1BTCB3YWl0 IGluIENQVTEuCnQ0OiBhZnRlciBhIHNob3J0IHRpbWUsIHBlcmlvZGljIGxvYWRfYmFsYW5jZSB0 cmlnZ2VyZCBhbmQgcHVsbApTQ0hFRF9OT1JNQUwgaW4gcnExIHRvIHJxMiwgYW5kIFNDSEVEX05P Uk1BTCBsaWtlbHkgcHJlZW1wdHMgU0NIRURfSURMRS4KCkluIHRoaXMgc2NlbmFyaW8sIFNDSEVE X0lETEUgaXMgcnVubmluZyB3aGlsZSBTQ0hFRF9OT1JNQUwgaXMgd2FpdGluZyB0byBydW4uClRo ZSBsYXRlbmN5IG9mIHRoaXMgU0NIRURfTk9STUFMIHdpbGwgYmUgaGlnaCB3aGljaCBpcyBub3Qg YWNjZXB0YmxlLgoKRG8gYSBsb2FkX2JhbGFuY2UgYmVmb3JlIHJ1bm5pbmcgdGhlIFNDSEVEX0lE TEUgbWF5IGZpeCB0aGlzIHByb2JsZW0uCgpUaGlzIHBhdGNoIHdvcmtzIGFzIGJlbG93OgoKICAg ICAgICAgICAgIENQVTEgICAgICAgICAgICAgICAgICAgICAgQ1BVMgogICAgICAgIGN1cnIgICAg ICAgcnExICAgICAgICAgICAgY3VyciAgICAgICAgICBycTIKICAgICAgKy0tLS0tLSsgfCArLS0t LS0tKyAgICAgICArLS0tLS0tKyB8ICstLS0tKyArLS0tLSsKdDAgICAgfE5PUk1BTHwgfCB8Tk9S TUFMfCAgICAgICB8Tk9STUFMfCB8IHxJRExFfCB8SURMRXwKICAgICAgKy0tLS0tLSsgfCArLS0t LS0tKyAgICAgICArLS0tLS0tKyB8ICstLS0tKyArLS0tLSsKCiAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIE5PUk1BTCBleGl0cyBvciBibG9ja2VkCiAgICAgICstLS0tLS0rIHwgKy0t LS0tLSsgICAgICAgICAgICAgICAgfCArLS0tLSsgKy0tLS0rCnQxICAgIHxOT1JNQUx8IHwgfE5P Uk1BTHwgICAgICAgICAgICAgICAgfCB8SURMRXwgfElETEV8CiAgICAgICstLS0tLS0rIHwgKy0t LS0tLSsgICAgICAgICAgICAgICAgfCArLS0tLSsgKy0tLS0rCgp0MiAgICAgICAgICAgICAgICAg ICAgICAgICAgICBwaWNrX25leHRfdGFza19mYWlyIChhbGw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