Received: by 10.223.176.5 with SMTP id f5csp373143wra; Sat, 27 Jan 2018 01:33:19 -0800 (PST) X-Google-Smtp-Source: AH8x224EpQr9t5Ew/yXZFV6krpL/6OW+hi0hH3aQiRuRn+FBOh32C+vf8LzRSwa6ar4+TCjSexuQ X-Received: by 2002:a17:902:a24:: with SMTP id 33-v6mr16460119plo.141.1517045599069; Sat, 27 Jan 2018 01:33:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517045599; cv=none; d=google.com; s=arc-20160816; b=wP7rAKKeuMgO2BrjkMmnsaeXhNLXSR0do1M7y2rkBtEOPbOzj9odiWwKYPfvVy4c+h D1ANXxxE5UT2lxptcgCpqnjnYhjdNMP/krMhJztpIWgQ3VzlGwYvKztCNsicNLkUKbb2 JpRzbpTRk01D3HDwH1w0wvzq8urWhHiBYrWD3l+UAcBzk3pQod/3bxK3drqY9x5Q7aUw XVVLzMQksd0uL7Pm36b+teDr18AH3+6YGIRD4MTJYtesmzjImQkMWZ4K0ZkxHhbqeD+m cSd+PRxYcBGRd8PnVoIxsIas6KdZMpyOnuVtZY/JwW/gU9cZdN3ctCtvec4zbbIOjnJk ZCDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=tgKRpx3XJUF9lViOa7+eGeDumRFRXaQcQcUMA+ctHDY=; b=deVMOJaQfhIgDbtC8BzHv0f16CmNeElqPQNCsVjQ9tlWhIE1dsAGatENkxx2DTAF9J eMFG7dkgjjNjcqo22PxxzgDYp1nYsQs64E+t/3Phz62xNsuvZyICGpeK6F0xfD0VSQe/ Unh2Zlf+AAB2QoaNrZhhBBaiYbDAL8kpyV5kXctgdRaCix+u12IRf/Vx0Crb7KT1LmgU gjYqjtGMYMWX3GuvXAm1OjOOr/QFSy3ozFAw17lOrCMzmsCvcFeE8kMU8UtVqg6NRFTi RSJrYPS3KKQpUYGdGUfZBBLs0ThUEz59FeJQQzOTy6RHCz5UCjw4R3tSjZc+fi6i8MGF iF+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7si4194014pgr.525.2018.01.27.01.33.04; Sat, 27 Jan 2018 01:33:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752474AbeA0JcR convert rfc822-to-8bit (ORCPT + 99 others); Sat, 27 Jan 2018 04:32:17 -0500 Received: from mout.gmx.net ([212.227.17.21]:58425 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752136AbeA0JcO (ORCPT ); Sat, 27 Jan 2018 04:32:14 -0500 Received: from homer.simpson.net ([185.191.217.115]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MRXVc-1eCkB93BYO-00Scrq; Sat, 27 Jan 2018 10:31:47 +0100 Message-ID: <1517045504.15811.18.camel@gmx.de> Subject: Re: [RFC PATCH V5 5/5] workqueue: introduce a way to set workqueue's scheduler From: Mike Galbraith To: Wen Yang , tj@kernel.org Cc: zhong.weidong@zte.com.cn, Jiang Biao , Tan Hu , Lai Jiangshan , kernel test robot , linux-kernel@vger.kernel.org Date: Sat, 27 Jan 2018 10:31:44 +0100 In-Reply-To: <1517030127-21391-5-git-send-email-wen.yang99@zte.com.cn> References: <1517030127-21391-1-git-send-email-wen.yang99@zte.com.cn> <1517030127-21391-5-git-send-email-wen.yang99@zte.com.cn> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.20.5 Mime-Version: 1.0 Content-Transfer-Encoding: 8BIT X-Provags-ID: V03:K0:VzHbVoips4WdZ4hSnKcFK3hqSSlBmEgE3lMQRONx0t4u9Le6wwA wPZJ5v6H7ykkGhwNUF4Rmp2cY6XYDdPM9+OeJXop1/JjDqlaflRxRBVdCpUtLdq7TcA35cz KAT+86hz3+mt2qOBPsQ8JgPfPaPc/jMJVyNJ39LWgd3JzL0DjTDWOS6n15uizO+Lo4l62d7 6cogfVvvxOjKCYvyYxa0Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:gRaawC8K/iw=:JepKtetyDQL8oznL3Xer5u ZX6FuhqIkXfvbXixvFpg1dex9bT0oDeNBBtryeAvPrllH17YIWo11XNW1afkr0hA/ZaXcOsQ5 eedVEj7KFQrLiAocaFQMGHLcLi3HPBw+L2IBV+JqJTeWmNd6aMqrIZAUZIzkyqed5T/XYw/x/ 3cD0fXUYdmeFJHQl7KWRYZiAaj2S0C51f/c5V1aM6l/4swhr0L9ubWKFvSEYOXv2ij/7tmnt7 JgIlezVhsIyiCZ6p656YddsAykHUk/5YJ3V25hFaNif34/2LxlDv9TrBuonkU5zHP4+w5o14+ 7YoVqotuFvDeQgTJS8hzKQv/0VinE7g8coLsHXj2YyiTsVPdCi4QL+S6ryL1XQnNQEewj/Gpl 2bZTgb/9EdKUdlutm0TtLaBSmmuiS9ZmxoH5F84Kj7V1hFk+mQ1IW+maJj2+IZe436svIuvTx odtRGZwTSZZhId0Uzkti9GeJEwfclReBwEanhI6PAng29wkpfDu+gOPT52XNW4Cpngg31NuaY sojYAVwI6h4ETWRvO7Ct2oG3zTeXn9YbwL6WWPxbh59/MPsPpm7k/kc417nPXrj0I1EuKTcGq 4nua5PFMBCBX6NlQDR6fG45kkwmMdLBQIeOQZq5CyxiYvjtBCy9WqExkCxLoUyBdF8lMTwfcf U/wl7+iNgAKRZy6H4hu/4EM+1BdQda6aw3VHml4LBofY8M9VOH1dmhym6a9VN0GL2qx2BTKi8 oiEMc1KZTOLBd3MadNt1cKpqfbWJs8kr7E8kUDwFwA/vt2ndYq6CBKbXWChi52T0PFBZpTHzj LKO+f5k7LlXvaKdVu/yIg80O+k/ghNxr7efUGfRhWzK2DxvoDk= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2018-01-27 at 13:15 +0800, Wen Yang wrote: > When pinning RT threads to specific cores using CPU affinity, the > kworkers on the same CPU would starve, which may lead to some kind > of priority inversion. In that case, the RT threads would also > suffer high performance impact. ... > This patch introduces a way to set the scheduler(policy and priority) > of percpu worker_pool, in that way, user could set proper scheduler > policy and priority of the worker_pool as needed, which could apply > to all the WORK_CPU_BOUND workers on the same CPU. What happens when a new kworker needs to be spawned? ?What guarantees that kthreadd can run? ?Not to mention other kthreads that can be starved, resulting in severe self inflicted injury. ?An interface to configure workqueues is very nice, but it's only part of the problem. -Mike