Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756285Ab0KKMTr (ORCPT ); Thu, 11 Nov 2010 07:19:47 -0500 Received: from canuck.infradead.org ([134.117.69.58]:51061 "EHLO canuck.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756196Ab0KKMTp convert rfc822-to-8bit (ORCPT ); Thu, 11 Nov 2010 07:19:45 -0500 Subject: Re: [RFC][PATCH 02/22] sched: add extended scheduling interface From: Peter Zijlstra To: Tommaso Cucinotta Cc: Raistlin , Ingo Molnar , Thomas Gleixner , Steven Rostedt , Chris Friesen , oleg@redhat.com, Frederic Weisbecker , Darren Hart , Johan Eker , "p.faure" , linux-kernel , Claudio Scordino , michael trimarchi , Fabio Checconi , Tommaso Cucinotta , Juri Lelli , Nicola Manica , Luca Abeni , Dhaval Giani , Harald Gustafsson , paulmck In-Reply-To: <4CDB2BBD.6040408@sssup.it> References: <1288333128.8661.137.camel@Palantir> <1288333622.8661.141.camel@Palantir> <1289410114.2084.23.camel@laptop> <1289417173.2084.43.camel@laptop> <4CDB2BBD.6040408@sssup.it> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Thu, 11 Nov 2010 13:19:26 +0100 Message-ID: <1289477966.2084.70.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1633 Lines: 35 On Thu, 2010-11-11 at 00:33 +0100, Tommaso Cucinotta wrote: > Il 10/11/2010 20:26, Peter Zijlstra ha scritto: > >> I would suggest we add at least one more field so we can implement the > >> stochastic model from UNC, sched_runtime_dev or sched_runtime_var or > >> somesuch. > > Oh, and their model has something akin to: sched_runtime_max, these > > Gaussian bell curves go to inf. which is kinda bad for trying to compute > > bounds. > If I understand well the paper you're referring to, the actual admission > test would require also to specify a maximum acceptable expected > tardiness, and/or proper quantiles of the tardiness distribution, and > also it would require to solve a linear programming optimization problem > in order to check those bounds. You don't want this stuff to go into the > kernel, do you ? I'm not sure it does, the admission test only uses the average runtime and uses the fact that it averages out to this (or less) to ensure tardiness is bounded. So the stochastic model allows for temporal overload situations but because of the average nature next jobs must make up for the overrun of a previous job, negating the overload. So on average the system isn't overloaded. The only reason we need the max runtime limit is because avg+stdev dont actually place a bound on anything, like said the Gaussian bell curve goes all the way out to infinity. -- 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/