From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [RFC v2 4/7] change kernel accounting to include steal time Date: Mon, 30 Aug 2010 21:14:12 +0200 Message-ID: <1283195652.1820.1333.camel@laptop> References: <1283184391-7785-1-git-send-email-glommer@redhat.com> <1283184391-7785-2-git-send-email-glommer@redhat.com> <1283184391-7785-3-git-send-email-glommer@redhat.com> <1283184391-7785-4-git-send-email-glommer@redhat.com> <1283184391-7785-5-git-send-email-glommer@redhat.com> <1283184391-7785-6-git-send-email-glommer@redhat.com> <1283184391-7785-7-git-send-email-glommer@redhat.com> <1283184391-7785-8-git-send-email-glommer@redhat.com> <4C7BEA9C.1060605@goop.org> <4C7BFACD.4030409@redhat.com> <4C7C0187.7040401@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Cc: Rik van Riel , Glauber Costa , kvm@vger.kernel.org, avi@redhat.com, zamsden@redhat.com, mtosatti@redhat.com, mingo@elte.hu To: Jeremy Fitzhardinge Return-path: Received: from casper.infradead.org ([85.118.1.10]:43305 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751787Ab0H3TOp convert rfc822-to-8bit (ORCPT ); Mon, 30 Aug 2010 15:14:45 -0400 In-Reply-To: <4C7C0187.7040401@goop.org> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, 2010-08-30 at 12:07 -0700, Jeremy Fitzhardinge wrote: > My comments were mostly because I though that this patch was going to > actually make the scheduler change behaviour to take stolen time into > account in scheduling decisions - and those decisions would be equally > meaningful if the slowdown was from HT, PM or stolen time. But AFAICT > this patch does nothing to that end. If you want to influence the load-balancer (the only thing that really cares about HT) the best would probably be to add a term to kernel/sched_fair.c:update_cpu_power(). Decrease the power relative to the amount of steal-time, just like freq and time spend on RT tasks.