Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp393216pxu; Wed, 7 Oct 2020 06:04:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7k8Bi36vSRyoyXdPNirlBtajLbf2EL029o6yUDflUfqeWn5fkpECSwqPcEJ+emz6N5Oyg X-Received: by 2002:a05:6402:2076:: with SMTP id bd22mr3541774edb.197.1602075892552; Wed, 07 Oct 2020 06:04:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602075892; cv=none; d=google.com; s=arc-20160816; b=AN4vFORmAjUDAbLykGA5Qrj/1Ca6Pa5haPIjLvE92mpUS89qx6q78K1y3ALyI4LaP1 lEJ1DEaQqw656QxwxtC+gCXPZX0HuENy66goDv58KbiTCCutoi7XSBgAnzHSykL+CXnY XiTZh8zAkVB56V+i28bjmaVvaV80unsDM+G4tdSdQPTUG/cHqrCaQY2Woaoyo2yfEsjT trTa1+BJCJUvcaudc7A2fCUm3FqFyduhgbrl0w10R6aptDsg0q7tgnhMuLhcfAbDFGje j2xljxeKR1fTUKd5sfNBX2OYM6CkU3TpqQHTIY/gO9bbIGL/dsPW8LDFR84RmcoVNeRh VDXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=j695L5vZUnKBMQ7ZF0+FutfA8uK9sIOFdzyLX/A7dNc=; b=QDKqOrpQcVPjLhSIp+kA79Ene+2fUSNzZzSPfkfOklTEfRQwHNiZ3IUENuGz1szSAf qS0S6QKI5D3Gy0fTMwUqfI/ywcofuXqDrwtWYxnJzttX/pEmEXuIoL3aUfnFPQTdo9ys H7dMjmnFd5lxvW2YaOPBmK4KYjOkcN4NAnmG+/OOj9341QPPfvdPNpw3jmyBZPqSwePR TeL8Ym5GiktAOicVG4kSnw/t9zmb52LrBjsYAYOE1+t6bZiT0Ggj2DOm9I+eSeBC8Ut/ fLOK0QogkCmh/q4D5nXF5DTLg37KfH8YQV6Q9GMCocWmcD81YGW9wD8ZKBNpoH1x7P7M Tdyg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m1si1281871edv.507.2020.10.07.06.04.21; Wed, 07 Oct 2020 06:04:52 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728383AbgJGNB3 (ORCPT + 99 others); Wed, 7 Oct 2020 09:01:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:56584 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728371AbgJGNB2 (ORCPT ); Wed, 7 Oct 2020 09:01:28 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id C61D5AE9A; Wed, 7 Oct 2020 13:01:27 +0000 (UTC) Date: Wed, 7 Oct 2020 14:01:25 +0100 From: Mel Gorman To: Michal Hocko Cc: Peter Zijlstra , Thomas Gleixner , Frederic Weisbecker , LKML , Ingo Molnar Subject: Re: [RFC PATCH] kernel: allow to configure PREEMPT_NONE, PREEMPT_VOLUNTARY on kernel command line Message-ID: <20201007130125.GI3165@suse.de> References: <20201007120401.11200-1-mhocko@kernel.org> <20201007121939.GE2628@hirez.programming.kicks-ass.net> <20201007122923.GJ29020@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20201007122923.GJ29020@dhcp22.suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 07, 2020 at 02:29:23PM +0200, Michal Hocko wrote: > On Wed 07-10-20 14:19:39, Peter Zijlstra wrote: > > On Wed, Oct 07, 2020 at 02:04:01PM +0200, Michal Hocko wrote: > > > From: Michal Hocko > > > > > > Many people are still relying on pre built distribution kernels and so > > > distributions have to provide mutliple kernel flavors to offer different > > > preemption models. Most of them are providing PREEMPT_NONE for typical > > > server deployments and PREEMPT_VOLUNTARY for desktop users. > > > > Is there actually a benefit to NONE? We were recently talking about > > removing it. > > I believe Mel can provide much better insight. We have been historically using > PREEMPT_NONE for our enterprise customers mostly for nice throughput > numbers. Many users are really targeting throughput much more than > latencies. My understanding is that even though VOLUNTARY preemption model > doesn't add too many preemption points on top of NONE it is still > something that is observable (IIRC 2-3% on hackbench). > It's marginal from the tests I ran but that was based on 5.3. At worst, it looked like roughly a hit but a lot of loads simply didn't notice. However, it might vary between architectures that I cannot cover or workloads that I didn't consider. As the impact of PREEMPT_VOLUNTARY depends on where cond_resched and might_sleep is used, it's also something that can vary over time. The intent was that by having the command-line switch, a user could test the switch if there was a suspicion that a regression was related to PREEMPT_VOLUNTARY as opposed to telling them "tough, that's the reality now". -- Mel Gorman SUSE Labs