Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1043484imu; Mon, 5 Nov 2018 12:53:02 -0800 (PST) X-Google-Smtp-Source: AJdET5dV+dy++MVDUquuszS8laVau+G/Q2NOGfuuPXpXcphkvlFpwT5Om2K4QMzMyec03C7qsakb X-Received: by 2002:a63:d846:: with SMTP id k6mr20210643pgj.251.1541451182627; Mon, 05 Nov 2018 12:53:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541451182; cv=none; d=google.com; s=arc-20160816; b=EdRnJcfCntMMGknvPPo7kwHRbvth7UtxY0PkUWqSlKJd4iih2FCxnrEeUKFAAF8l81 VC/dFiZ1tZuLp7KdvdjXXPKMDZUgkKvdkcpixi3IYhkRNZi9w2WM12eROPJql0JCW17O LddWB4KgN9fWUypkwVNYj2HBdvUZ06jYt3zMOQEqm08acq/movhobbZJUuNxOlk8AZKZ Dfz2CdDQuEA6/e7lYCBpYuebZ/YZeT4dmwlIqIh16OhMLoXBNpjhM5l7Axx2s5qXIKE9 BXtf9T/UkBiPyBvu6I+uc/fWACp1wkb6HfmJFbODch8vyrK0520ntvVzHG/oeP5BeUog qpFg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=EX65ZqpYm5TG7BdnK2QxcpseC01FJqY+W5b4z8PLEZw=; b=kVjFs49OiTGpT8MA74T5zgiILIb+7EgeGn7MWErus/1IyrptLfBPVHxtUjqwmDRosX lUclNz04F1e6N1PbE6QLfyfyzM/fkLZpuQnMSzCvdcPnO5RNUB6OurFyKAhWjFI37V7E yZkGmXVTnB/rL3yvLaLr3RdW/1Qy8sWKqY8O58PVnOpesuc/ev17u6kjDfz023Tqnhzl Ct3Ki1lyoMliuBiwfAw14DudoX5o7DLRwjY8COffxFX+xs8SWfQao2651fMg4taESGaS 6ZGw0Q+jsVJ6ZygZ9VqjfrmR2ziCqjrotsI73zX9XVb7a/wbriTf5a9jNNur6FGFkuxv SUYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=DegN4F0U; 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 30-v6si43304082pgw.208.2018.11.05.12.52.46; Mon, 05 Nov 2018 12:53:02 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=DegN4F0U; 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 S2387621AbeKFGNY (ORCPT + 99 others); Tue, 6 Nov 2018 01:13:24 -0500 Received: from merlin.infradead.org ([205.233.59.134]:44748 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726902AbeKFGNY (ORCPT ); Tue, 6 Nov 2018 01:13:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EX65ZqpYm5TG7BdnK2QxcpseC01FJqY+W5b4z8PLEZw=; b=DegN4F0UCijvUMdTai7btmPpC/ mV/f4hk0M+gON1xBfoHYzkrcbmri/vIW8lIorwCXvrDr3E3RzcvUhBxKyozGiMjD+p/5vqOUNsk7x W8iyibQ2aDBFp/McLCOx72Tj8pRJvhqoiL2xz1r9nB2aPfXLk0q5EEyqJK+m4mAOgXi2EgNMfVNEo U3CaK71bNObpjGcjJ4MRR5rwZ4cH0zU1LlmAhoA+emZgQHFtgmanFHWOCYjUYZkoth29ZpLJGVVn6 nJVmhdu45lLKCN+cPxUhT1HwzCKqJuJ+PcaBoT2zQATkVgT4ogiBxZ6E6+hIETkx78IhmS4GfPO5I Jfle7LNw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJlqS-0000rr-AY; Mon, 05 Nov 2018 20:51:36 +0000 Subject: Re: [RFC PATCH v4 02/13] ktask: multithread CPU-intensive kernel work To: Daniel Jordan , linux-mm@kvack.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: aarcange@redhat.com, aaron.lu@intel.com, akpm@linux-foundation.org, alex.williamson@redhat.com, bsd@redhat.com, darrick.wong@oracle.com, dave.hansen@linux.intel.com, jgg@mellanox.com, jwadams@google.com, jiangshanlai@gmail.com, mhocko@kernel.org, mike.kravetz@oracle.com, Pavel.Tatashin@microsoft.com, prasad.singamsetty@oracle.com, steven.sistare@oracle.com, tim.c.chen@intel.com, tj@kernel.org, vbabka@suse.cz References: <20181105165558.11698-1-daniel.m.jordan@oracle.com> <20181105165558.11698-3-daniel.m.jordan@oracle.com> From: Randy Dunlap Message-ID: <736b23a4-cb32-7926-101a-9b6555e59b5e@infradead.org> Date: Mon, 5 Nov 2018 12:51:33 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181105165558.11698-3-daniel.m.jordan@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/5/18 8:55 AM, Daniel Jordan wrote: > diff --git a/init/Kconfig b/init/Kconfig > index 41583f468cb4..ed82f76ed0b7 100644 > --- a/init/Kconfig > +++ b/init/Kconfig > @@ -346,6 +346,17 @@ config AUDIT_TREE > depends on AUDITSYSCALL > select FSNOTIFY > > +config KTASK > + bool "Multithread CPU-intensive kernel work" > + depends on SMP > + default y > + help > + Parallelize CPU-intensive kernel work. This feature is designed for > + big machines that can take advantage of their extra CPUs to speed up > + large kernel tasks. When enabled, kworker threads may occupy more > + CPU time during these kernel tasks, but these threads are throttled > + when other tasks on the system need CPU time. Use tab + 2 spaces consistently for help text indentation, please. > + > source "kernel/irq/Kconfig" > source "kernel/time/Kconfig" > source "kernel/Kconfig.preempt" -- ~Randy