Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752600AbbGNCHj (ORCPT ); Mon, 13 Jul 2015 22:07:39 -0400 Received: from lgeamrelo02.lge.com ([156.147.1.126]:47749 "EHLO lgeamrelo02.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751507AbbGNCHh (ORCPT ); Mon, 13 Jul 2015 22:07:37 -0400 X-Original-SENDERIP: 10.177.222.33 X-Original-MAILFROM: byungchul.park@lge.com Date: Tue, 14 Jul 2015 11:07:21 +0900 From: Byungchul Park To: Mike Galbraith Cc: Morten Rasmussen , mingo@kernel.org, peterz@infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] sched: let __sched_period() use rq's nr_running Message-ID: <20150714020721.GA3956@byungchulpark-X58A-UD3R> References: <1436515890-10792-1-git-send-email-byungchul.park@lge.com> <20150710133107.GC8668@e105550-lin.cambridge.arm.com> <20150713005639.GH31287@byungchulpark-X58A-UD3R> <1436771221.6576.60.camel@gmail.com> <20150713082900.GI31287@byungchulpark-X58A-UD3R> <1436782937.6576.103.camel@gmail.com> <20150713110746.GK31287@byungchulpark-X58A-UD3R> <1436790638.6576.190.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1436790638.6576.190.camel@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2157 Lines: 48 On Mon, Jul 13, 2015 at 02:30:38PM +0200, Mike Galbraith wrote: > On Mon, 2015-07-13 at 20:07 +0900, Byungchul Park wrote: > > > i still think stretching with local cfs's nr_running should be replaced with > > stretching with a top(=root) level one. > > I think we just can't take 'slice' _too_ seriously. Not only is it hello mike, :) as you said, it is not too much important thing which has to be taken too seriously, since it would be adjusted by vruntime in cfs. but.. is there any reason meaningless code should be kept in source? :( it also harms readability. of cource, i need to modify my patch a little bit to prevent non-group sched entities from getting large slice. thank you, byungchul > annoying with cgroups, the scheduler simply doesn't deliver 'slices' in > the traditional sense, it equalizes vruntimes, planning to do that at > slice granularity. FAIR_SLEEPERS doesn't make that planning any easier. > With a pure compute load and no HR_TICK, what you get is tick > granularity preemption checkpoints, but having just chewed up a 'slice' > means nothing if you're still leftmost. It's all about vruntime, so > leftmost can have back to back 'slices'. FAIR_SLEEPERS just increases > the odds that leftmost WILL take more than one 'slice'. > > (we could perhaps decay deficit after a full slice or such to decrease > the spread growth that sleepers induce. annoying problem, especially so > with a gaggle of identical sleepers, as sleep time becomes meaningless, > there is no differential to equalize.. other than the ones we create.. > but I'm digressing, a lot, time to stop thinking/typing, go do work;) > > -Mike > > > -- > 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/ -- 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/