Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1278664

Re: [PATCH 3/4] sched: introduce synchronized idle injection

Path csiph.com!news.mixmin.net!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Ingo Molnar <mingo@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 3/4] sched: introduce synchronized idle injection
Date Fri, 27 Nov 2015 10:20:02 +0100
Message-ID <qznma-UI-13@gated-at.bofh.it> (permalink)
References <qusFP-2eI-3@gated-at.bofh.it> <qusFQ-2eI-21@gated-at.bofh.it> <qw6rv-qW-9@gated-at.bofh.it> <qwbKy-3ZJ-7@gated-at.bofh.it>
X-Original-To Jacob Pan <jacob.jun.pan@linux.intel.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=wXwZDmwIm+N1HseWqX4vShn3VFUxnPVYcxCMRDREI4Q=; b=W8RMbz5+sceQ2Ex4yCT2pPZ4FqLQU8qQgWmBgze5gGqLPScSUP5Cj8H4cdYPN53L2c 89Wzf/Azun+7/nFSBYVLVXAxeEnTA3Ot1z7fuhNuNQ0Rf6xazoxeUbwa9OujQvE4/Bmk tzPU2Z63peFwqOpQMesSja+q/X09YXwJn9G6r2WTs8po0sSWp2Eh50kxJDdykB2wvRG7 mtoxJvxr6ZfibxTOiZD0vOvL5BCIOt2KGpfPc+5oxLLZvAewWZhHiVbe0CrGinjKlAhR 82Fgcl/8ab1ouNluImYreX+/DOtC+rh0Ijh2i6GWa+59Hjo0LWFwaZeIcx7K8sS/n2k1 +EiA==
X-Received by 10.194.89.226 with SMTP id br2mr60088754wjb.22.1448615826373; Fri, 27 Nov 2015 01:17:06 -0800 (PST)
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.23 (2014-03-12)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 40
Organization linux.* mail to news gateway
X-Original-Cc Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Thomas Gleixner <tglx@linutronix.de>, John Stultz <john.stultz@linaro.org>, LKML <linux-kernel@vger.kernel.org>, Arjan van de Ven <arjan@linux.intel.com>, Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>, Len Brown <len.brown@intel.com>, Rafael Wysocki <rafael.j.wysocki@intel.com>, Eduardo Valentin <edubezval@gmail.com>, Paul Turner <pjt@google.com>
X-Original-Date Fri, 27 Nov 2015 10:17:02 +0100
X-Original-Message-ID <20151127091702.GA27790@gmail.com>
X-Original-References <1447444387-23525-1-git-send-email-jacob.jun.pan@linux.intel.com> <1447444387-23525-4-git-send-email-jacob.jun.pan@linux.intel.com> <20151118083622.GA25217@gmail.com> <20151118061026.03a28616@yairi>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1278664

Show key headers only | View raw


* Jacob Pan <jacob.jun.pan@linux.intel.com> wrote:

> On Wed, 18 Nov 2015 09:36:22 +0100
> Ingo Molnar <mingo@kernel.org> wrote:
> 
> > > 
> > > This patch introduces a scheduler based idle injection method, it
> > > works by blocking CFS runqueue synchronously and periodically. The
> > > actions on all online CPUs are orchestrated by per CPU hrtimers.
> > > 
> > > Two sysctl knobs are given to the userspace for selecting the
> > > percentage of idle time as well as the forced idle duration for each
> > > idle period injected.  
> > 
> > What's the purpose of these knobs? Just testing, or will some
> > user-space daemon set them dynamically?
> > 
> yes, it is to be used by userspace daemon such as thermal daemon.
> Though there are interests from in kernel thermal governor but that is
> another story.

Yeah, so let me make this very clear: for a kernel scheduling feature to be 
self-sufficient is not 'another story', but a must-have aspect for this feature
to become upstream acceptable.

We don't add scheduler features that rely on pushing 'policy' to user-space. 
That's poor design with many disadvantages. This feature should offer a reasonable 
and automatic in-kernel default behavior with numbers that prove that it works.

Keeping an essential part of the feature in user-space earns a NAK from me.

Thanks,

	Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH 3/4] sched: introduce synchronized idle injection Ingo Molnar <mingo@kernel.org> - 2015-11-18 09:40 +0100
  Re: [PATCH 3/4] sched: introduce synchronized idle injection Peter Zijlstra <peterz@infradead.org> - 2015-11-18 11:40 +0100
    Re: [PATCH 3/4] sched: introduce synchronized idle injection Morten Rasmussen <morten.rasmussen@arm.com> - 2015-11-18 13:30 +0100
      Re: [PATCH 3/4] sched: introduce synchronized idle injection Peter Zijlstra <peterz@infradead.org> - 2015-11-18 14:00 +0100
        Re: [PATCH 3/4] sched: introduce synchronized idle injection Morten Rasmussen <morten.rasmussen@arm.com> - 2015-11-18 15:10 +0100
          Re: [PATCH 3/4] sched: introduce synchronized idle injection Jacob Pan <jacob.jun.pan@linux.intel.com> - 2015-11-18 16:00 +0100
            Re: [PATCH 3/4] sched: introduce synchronized idle injection Morten Rasmussen <morten.rasmussen@arm.com> - 2015-11-18 16:10 +0100
              Re: [PATCH 3/4] sched: introduce synchronized idle injection Jacob Pan <jacob.jun.pan@linux.intel.com> - 2015-11-18 16:20 +0100
                Re: [PATCH 3/4] sched: introduce synchronized idle injection Thomas Gleixner <tglx@linutronix.de> - 2015-11-18 16:30 +0100
                Re: [PATCH 3/4] sched: introduce synchronized idle injection Jacob Pan <jacob.jun.pan@linux.intel.com> - 2015-11-18 20:00 +0100
                Re: [PATCH 3/4] sched: introduce synchronized idle injection Morten Rasmussen <morten.rasmussen@arm.com> - 2015-11-18 17:10 +0100
    Re: [PATCH 3/4] sched: introduce synchronized idle injection Ingo Molnar <mingo@kernel.org> - 2015-11-27 10:20 +0100
  Re: [PATCH 3/4] sched: introduce synchronized idle injection Jacob Pan <jacob.jun.pan@linux.intel.com> - 2015-11-18 15:20 +0100
    Re: [PATCH 3/4] sched: introduce synchronized idle injection Ingo Molnar <mingo@kernel.org> - 2015-11-27 10:20 +0100
  Re: [PATCH 3/4] sched: introduce synchronized idle injection Arjan van de Ven <arjan@linux.intel.com> - 2015-11-18 15:30 +0100

csiph-web