Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760668AbcCEMcO (ORCPT ); Sat, 5 Mar 2016 07:32:14 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33028 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754230AbcCEMcF (ORCPT ); Sat, 5 Mar 2016 07:32:05 -0500 Date: Sat, 5 Mar 2016 13:31:58 +0100 From: Ingo Molnar To: Chris Metcalf Cc: Andi Kleen , Gilad Ben Yossef , Steven Rostedt , Peter Zijlstra , Andrew Morton , Rik van Riel , Tejun Heo , Frederic Weisbecker , Thomas Gleixner , "Paul E. McKenney" , Christoph Lameter , Viresh Kumar , Catalin Marinas , Will Deacon , Andy Lutomirski , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v10 05/12] task_isolation: support CONFIG_TASK_ISOLATION_ALL Message-ID: <20160305123158.GA25399@gmail.com> References: <1456949376-4910-1-git-send-email-cmetcalf@ezchip.com> <1456949376-4910-6-git-send-email-cmetcalf@ezchip.com> <87mvqfe7h3.fsf@tassilo.jf.intel.com> <56D8931E.4060205@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56D8931E.4060205@mellanox.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1715 Lines: 43 * Chris Metcalf wrote: > On 03/03/2016 01:34 PM, Andi Kleen wrote: > >Chris Metcalf writes: > >>+config TASK_ISOLATION_ALL > >>+ bool "Provide task isolation on all CPUs by default (except CPU 0)" > >>+ depends on TASK_ISOLATION > >>+ help > >>+ If the user doesn't pass the task_isolation boot option to > >>+ define the range of task isolation CPUs, consider that all > >>+ CPUs in the system are task isolation by default. > >>+ Note the boot CPU will still be kept outside the range to > >>+ handle timekeeping duty, etc. > >That seems like a very dangerous Kconfig option. > >"CONFIG_BREAK_EVERYTHING" > >If someone sets that by default they will have a lot of trouble. > > > >I wouldn't add that, make it a run time option only. > > So you were thinking, allow a special boot syntax "task_isolation=all", > which puts all the cores into task isolation mode except the boot core? > > My original argument was that it was so parallel to the existing > CONFIG_NO_HZ_FULL_ALL option that it just made sense to do it, > and some testers complained about having to specify the precise > cpu range, so this seemed like an easy fix. Yes, it's absolutely legitimate to offer boot options as Kconfig options as well - in fact that will get things like randconfig bootups stumble upon them and do some free testing for you. Just ignore Andi's nonsensical objection. One day we'll have a unified boot parameter/Kconfig/sysctl mechanism, so that it will be possible to say things like this on the boot command line: CONFIG_NO_HZ_FULL_ALL=y ... which will eliminate quite a bit of the current schizm between Kconfig and boot time parameters. Thanks, Ingo