Re: [PATCH v3 5/6] KVM-GST: adjust scheduler cpu power

2011-02-11 Thread Peter Zijlstra
On Fri, 2011-02-11 at 13:19 -0500, Glauber Costa wrote: > static void update_rq_clock_task(struct rq *rq, s64 delta) > { > + s64 irq_delta = 0, steal = 0; > > +#ifdef CONFIG_IRQ_TIME_ACCOUNTING > irq_delta = irq_time_read(cpu_of(rq)) - rq->prev_irq_time; > > /* > @@ -1926,20

[PATCH v3 5/6] KVM-GST: adjust scheduler cpu power

2011-02-11 Thread Glauber Costa
This is a first proposal for using steal time information to influence the scheduler. There are a lot of optimizations and fine grained adjustments to be done, but it is working reasonably so far for me (mostly) With this patch (and some host pinnings to demonstrate the situation), two vcpus with