Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752905AbdGSHzw (ORCPT ); Wed, 19 Jul 2017 03:55:52 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:42673 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751548AbdGSHzv (ORCPT ); Wed, 19 Jul 2017 03:55:51 -0400 Date: Wed, 19 Jul 2017 09:55:29 +0200 (CEST) From: Thomas Gleixner To: "Li, Aubrey" cc: Andi Kleen , Peter Zijlstra , Frederic Weisbecker , Christoph Lameter , Aubrey Li , len.brown@intel.com, rjw@rjwysocki.net, tim.c.chen@linux.intel.com, arjan@linux.intel.com, paulmck@linux.vnet.ibm.com, yang.zhang.wz@gmail.com, x86@kernel.org, linux-kernel@vger.kernel.org, daniel.lezcano@linaro.org Subject: Re: [RFC PATCH v1 00/11] Create fast idle path for short idle periods In-Reply-To: <348019f4-85ae-ba91-3fce-9886533e8d22@linux.intel.com> Message-ID: References: <20170713182820.sn3fjitnd3mca27p@hirez.programming.kicks-ass.net> <31170ac6-9db1-f0b8-4841-f1661c8ed6e1@linux.intel.com> <20170714153818.pjauqxebxyhs6ljp@hirez.programming.kicks-ass.net> <20170714155356.GH3441@tassilo.jf.intel.com> <20170714160648.tg2u6eo2id6gmnjz@hirez.programming.kicks-ass.net> <20170714162619.GJ3441@tassilo.jf.intel.com> <20170717192309.ubn5muvc3u7htuaw@hirez.programming.kicks-ass.net> <34371ef8-b8bc-d2bf-93de-3fccd6beb032@linux.intel.com> <20170718044521.GO3441@tassilo.jf.intel.com> <20170718065926.GP3441@tassilo.jf.intel.com> <348019f4-85ae-ba91-3fce-9886533e8d22@linux.intel.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1674 Lines: 36 On Wed, 19 Jul 2017, Li, Aubrey wrote: > On 2017/7/18 15:19, Thomas Gleixner wrote: > > You can very well avoid it by taking the irq timings or whatever other > > information into account for the NOHZ decision. > > > If I read the source correctly, irq timing statistics computation happens at > idle time. Sadly, this is what Andi Kleen worried about. People keep putting > more and more slow stuff in idle path, not realizing it could be a critical path. Can you please stop this right here? We all realize that there is an issue, we are not as stupid as you might think. But we disagree that the proper solution is to add an ad hoc hack which shortcuts stuff and creates a maintenance problem in the long run. Just dismissing a proposal based on 'oh this adds more code to the idle path' and then yelling 'you all do not get it' is not going to solve this in any way. You simply refuse to look at the big picture and you are just not willing to analyze the involved bits and pieces and find a solution which allows to serve both the NOHZ power saving and the interrupt driven workloads best. All you are doing is providing data about the status quo, and then deferring from that, that you need an extra magic code path. That information is just a inventory of the current behaviour and the current behaviour is caused by the current implementation. There is nothing set in stone with that implementation and it can be changed. But you are just in refusal mode and instead of sitting down and doing the hard work, you accuse other people that they are not realizing the problem and insist on your sloppy hackery. That's simply not the way it works. Thanks, tglx