Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp2229921pxu; Fri, 9 Oct 2020 11:04:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxU4Zy6jHZG+Ia45s1fIkVdCbebXKyuQ0t1lSDO6TkklXvYTio5z/sZYFFpi3DGkU3DUhB+ X-Received: by 2002:a05:6402:1298:: with SMTP id w24mr410524edv.280.1602266665700; Fri, 09 Oct 2020 11:04:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602266665; cv=none; d=google.com; s=arc-20160816; b=e+jlJyA0h6osPe0+W08zZrXW4HVWTpMOX13sv+JGT4FVS0Qnz6Z7griwmdjjK4OUuJ pq6vpvU2VhN6pyqUSscMWhvPOP2rU7hJFUFJrdLa54GEHan3iFN/smeZ3pu+LbKBUy0y m/tIShf0qPBIWrq5lAXDCzhHAD+WyipHyMtHHBTj9QB/ALwIKHwYpjCkITpzSVmMwJN4 SCzCNWIGBZP43i1VkkoJpThZMW5OxUzsXh+cf6VZ5SsNjO7B2tRB1RXVftXwx/VTqai1 xaedTWXHzaOjB+BjD2ubEN88zA1rTT2ooDjlPJJ2CK+BDbHnep8LHH/rL9oqdnNWqvSs u2Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SuCMHls48f4xLMwBK0m/Wzqo51WwaFK9373PeeO+uwo=; b=eVPXlbLB4g9iwN1TAhYmTQpvgzueUAZwewgw5Om3L0eVJxGvLUk8nEJozqNSF8mCLl pzL9kIQBBCWl22zzoqpp352svRn9yCVqvY9mCdTTOzuAe08WLrKLsNEX2B3+KZt4oPZ2 zKWYsSrqH9fXzDaoJ4RP4HVq07n2WGiSnLiS3h1SVQSOcKF69BtLruKMMop2J9qiLn1e Zfxd5KnY7qpKe4MpeTLbxmx1UxX06bm+M5chhHWVHOhDoqQe4E2ViYW62q2TAxwXnIhT /wzA5G2lffQSwD6phMo6JLG7o1FkkHgIX29+0MJLgGdO5CLSrKGW+PwjFjg+2shNNUcO VTyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=mZnwceWe; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si7132564edh.71.2020.10.09.11.04.01; Fri, 09 Oct 2020 11:04:25 -0700 (PDT) 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=pass header.i=@suse.com header.s=susede1 header.b=mZnwceWe; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388077AbgJIL0q (ORCPT + 99 others); Fri, 9 Oct 2020 07:26:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:59784 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731442AbgJIL0p (ORCPT ); Fri, 9 Oct 2020 07:26:45 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1602242804; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SuCMHls48f4xLMwBK0m/Wzqo51WwaFK9373PeeO+uwo=; b=mZnwceWeAenutkEypdAM2WaVtaYclewuw0N8vBzN3RFN+NdfP5m15ymsCxtfWUHeQ+5T5M uvSTSKHgfpjweQO57N5YesKoet2VB09b7VbqL0XLC4stJTimcTQi0Imr/+rsXkcySbdszv FiuFvpPuThPxXoTiQnYfliujgb+FRyI= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 50C14AC84; Fri, 9 Oct 2020 11:26:44 +0000 (UTC) Date: Fri, 9 Oct 2020 13:26:43 +0200 From: Michal Hocko To: Peter Zijlstra Cc: Thomas Gleixner , Frederic Weisbecker , LKML , Mel Gorman , Ingo Molnar Subject: Re: [RFC PATCH] kernel: allow to configure PREEMPT_NONE, PREEMPT_VOLUNTARY on kernel command line Message-ID: <20201009112643.GM4967@dhcp22.suse.cz> References: <20201007120401.11200-1-mhocko@kernel.org> <20201007122144.GF2628@hirez.programming.kicks-ass.net> <20201007123553.GK29020@dhcp22.suse.cz> <20201009094741.GH2628@hirez.programming.kicks-ass.net> <20201009101405.GI4967@dhcp22.suse.cz> <20201009102009.GK2628@hirez.programming.kicks-ass.net> <20201009104808.GK4967@dhcp22.suse.cz> <20201009111703.GL4967@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201009111703.GL4967@dhcp22.suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 09-10-20 13:17:04, Michal Hocko wrote: [...] > +config PREEMPT_DYNAMIC > + bool "Allow boot time preemption model selection" depends on !ARCH_NO_PREEMPT > + depends on PREEMPT_NONE || PREEMPT_VOLUNTARY > + help > + This option allows to define the preemption model on the kernel > + command line parameter and thus override the default preemption > + model defined during compile time. > + > + The feature is primarily interesting for Linux distributions which > + provide a pre-built kernel binary to reduce the number of kernel > + flavors they offer while still offering different usecases. > + > + The runtime overhead is negligible with JUMP_LABELS enabled but if > + runtime patching is not available for the specific architecture then > + the potential overhead should be considered. > + > + Select if you the same pre-built kernel should be used for both Server > + and Desktop workloads. > + > config PREEMPT_COUNT > bool -- Michal Hocko SUSE Labs