Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp651117ybe; Thu, 5 Sep 2019 03:52:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLQyi5p7GxkWo/W0JUz0XrRyIQlGEpbh7LhR7SAfPyycGO3nyCTJ8sgngwHmFAOXt/CqhI X-Received: by 2002:a17:90a:c086:: with SMTP id o6mr3098040pjs.24.1567680767395; Thu, 05 Sep 2019 03:52:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567680767; cv=none; d=google.com; s=arc-20160816; b=qxYtkfPwbsQRKVNycTdBHsV4z/EJufxEiW1iMIjuMrUcCi6tgqaTPtRWriY0SUVFYN 2PFgnEXLQTKkJSJvWuDnl9IoiZ8ziHSNlQ7EFlDMv3uHotgLfSICQ+qRMQxgeR0PCIEj KKFUGGouOOrrJ3kB5khMU71GuXgeQR5kRcHB0Om3LU0IHCxVnCXX+tgfpGjsebmETGO2 I25dHyx2f9cBppB5BtIZ6hnYOCcvvKDgHUibu0WdgsdetEpBWdQcE1YnCkoDyqT4d9Ld uGw1b6AJAz1XhMZ8Ic1lLQL/UxO2fMyUcJhh8oLShG1EBzAWeNfh9aR637fjyg0LdJEl G7qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ndJ3xT/+P88NkCNSYWvx4UsoYyfPRvn/Wl55/0pFoeU=; b=SWeiQUGaT4YcSeCf0XxFi2pjAMb96IgAb2R4fOg7XACkFd/otH/XcFlHBjthmGqNlm OPk2/QCAAqbKCqd0l5iDAHn+i5uPNvyAyHv6pHSnlOD0MyYrWRneUbv9IF0EHwMGFC2Q x/sxKDz5/LStoQALc/dXrmjhZ7Mc3h00atbWVNSR01NHu1O+dPr5ZbvQIQLVos+Xrl9j 1UzDUduH7zODQMwmCS/RwABGOwzvJgcjY77u2wevkjBdND77DrmFPlUZjL7yXyY25IQK 0GGTKIY5UvUewHNQDgi2+sGsgBOsAHl5f85XtMVTWVTr//MiovD3fwIV+vOeTMyjRAOQ 6CtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZFF+gqbJ; 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 k11si561432plt.385.2019.09.05.03.52.30; Thu, 05 Sep 2019 03:52:47 -0700 (PDT) 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=bombadil.20170209 header.b=ZFF+gqbJ; 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 S2387787AbfIEKtC (ORCPT + 99 others); Thu, 5 Sep 2019 06:49:02 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:34052 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731889AbfIEKtB (ORCPT ); Thu, 5 Sep 2019 06:49:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding: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=ndJ3xT/+P88NkCNSYWvx4UsoYyfPRvn/Wl55/0pFoeU=; b=ZFF+gqbJcAzlpHz9/j6LOxc3x DuIS1v0MwBsJN2mMrW4dmx6M8Vz/0k8AYhmDlaaiCORzQM38Cea6Jm5snrpBRrGTXsnrcn6oh+bmx We4nq0wZfz6IPh9CEb9DC0d3bYinvMTPj9VGU3Cz+7WMhaJTihPkGVtcVI+hGDmEE0QDR8Ls/hZFO 9bcTmXGwEYe3VLHAa+CXfsTuk+MAMAiovmVwifbwvFD1iPA9j1aMGrARCpw9IQtR8fnLqcCbcMLj5 chrZqanvGMA63DbugPxlBkqaDpT44fSmw8cT85gi7BwMSokknF0ZIvi8BuZGj5zq87A4DtCPilEQb vsxU51fpg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i5pJr-0004yf-O2; Thu, 05 Sep 2019 10:48:51 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id DA7FC3011DF; Thu, 5 Sep 2019 12:48:12 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id CF05D29E3BB8A; Thu, 5 Sep 2019 12:48:49 +0200 (CEST) Date: Thu, 5 Sep 2019 12:48:49 +0200 From: Peter Zijlstra To: Patrick Bellasi Cc: subhra mazumdar , linux-kernel@vger.kernel.org, mingo@redhat.com, tglx@linutronix.de, steven.sistare@oracle.com, dhaval.giani@oracle.com, daniel.lezcano@linaro.org, vincent.guittot@linaro.org, viresh.kumar@linaro.org, tim.c.chen@linux.intel.com, mgorman@techsingularity.net, parth@linux.ibm.com Subject: Re: [RFC PATCH 1/9] sched,cgroup: Add interface for latency-nice Message-ID: <20190905104849.GE2332@hirez.programming.kicks-ass.net> References: <20190830174944.21741-1-subhra.mazumdar@oracle.com> <20190830174944.21741-2-subhra.mazumdar@oracle.com> <87pnkf2h41.fsf@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87pnkf2h41.fsf@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 05, 2019 at 11:05:18AM +0100, Patrick Bellasi wrote: > > diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h > > index b52ed1a..365c928 100644 > > --- a/kernel/sched/sched.h > > +++ b/kernel/sched/sched.h > > @@ -143,6 +143,13 @@ static inline void cpu_load_update_active(struct rq *this_rq) { } > > #define NICE_0_LOAD (1L << NICE_0_LOAD_SHIFT) > > > > /* > > + * Latency-nice default value > > + */ > > +#define LATENCY_NICE_DEFAULT 5 > > +#define LATENCY_NICE_MIN 1 > > +#define LATENCY_NICE_MAX 100 > > Values 1 and 5 looks kind of arbitrary. Yes, and like I just wrote, completely and utterly wrong.