Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933419Ab0KORvg (ORCPT ); Mon, 15 Nov 2010 12:51:36 -0500 Received: from canuck.infradead.org ([134.117.69.58]:48278 "EHLO canuck.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933256Ab0KORvf convert rfc822-to-8bit (ORCPT ); Mon, 15 Nov 2010 12:51:35 -0500 Subject: Re: [RFC][PATCH v2 4/7] taskstats: Add per task steal time accounting From: Peter Zijlstra To: Martin Schwidefsky Cc: Michael Holzheu , Shailabh Nagar , Andrew Morton , Venkatesh Pallipadi , Suresh Siddha , Ingo Molnar , Oleg Nesterov , John stultz , Thomas Gleixner , Balbir Singh , Heiko Carstens , Roland McGrath , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, "jeremy.fitzhardinge" In-Reply-To: <20101115184206.4463fd05@mschwide.boeblingen.de.ibm.com> References: <20101111170352.732381138@linux.vnet.ibm.com> <20101111170815.024542355@linux.vnet.ibm.com> <1289677083.2109.167.camel@laptop> <20101115155057.15f3be35@mschwide.boeblingen.de.ibm.com> <1289833883.2109.494.camel@laptop> <20101115184206.4463fd05@mschwide.boeblingen.de.ibm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Mon, 15 Nov 2010 18:50:41 +0100 Message-ID: <1289843441.2109.520.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: 1052 Lines: 21 On Mon, 2010-11-15 at 18:42 +0100, Martin Schwidefsky wrote: > The steal time of a task tells us how much more progress a task could have > done if the hypervisor would not steal cpu. Now you could argue that the > steal time for a cpu is good enough for that purpose but steal time is not > necessarily uniform over all tasks. And we already do calculate this number, > we just do not store it right now. If you make the scheduler take steal time into account like Jeremy proposed then you schedule on serviced time and the steal time gain is proportional to the existing service distribution. Still, then you know, then what are you going to do about it? Are you going to avoid the hypervisor from scheduling when that one task is running? What good is knowing something you cannot do anything about. -- 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/