[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1267129703.22519.559.camel@laptop>
Date: Thu, 25 Feb 2010 21:28:23 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Fabio Checconi <fchecconi@...il.com>
Cc: Ingo Molnar <mingo@...e.hu>, Thomas Gleixner <tglx@...utronix.de>,
Paul Turner <pjt@...gle.com>,
Dario Faggioli <faggioli@...dalf.sssup.it>,
Michael Trimarchi <michael@...dence.eu.com>,
Dhaval Giani <dhaval@...is.sssup.it>,
Tommaso Cucinotta <t.cucinotta@...up.it>,
linux-kernel@...r.kernel.org,
Fabio Checconi <fabio@...dalf.sssup.it>
Subject: Re: [PATCH 2/3] sched: enforce per-cpu utilization limits on
runtime balancing
On Tue, 2010-02-23 at 19:56 +0100, Fabio Checconi wrote:
> +#ifdef CONFIG_SMP
> +static inline unsigned long rt_init_free_bw(void)
> +{
> + unsigned long used = to_ratio(global_rt_period(), global_rt_runtime());
> +
> + return to_ratio(RUNTIME_INF, RUNTIME_INF) - used;
> +}
> +#endif
> +static void __rt_restart_balancing(void)
> +{
> + unsigned long used, global, free;
> + struct rq *rq;
> + int i;
> +
> + used = rt_used_bandwidth();
> + global = to_ratio(RUNTIME_INF, RUNTIME_INF);
> +
> + free = global - used;
We take the max as RUNTIME_INF instead of global_rt_* so that we can
move runtime around and fully saturate a single cpu (given there is
enough free to compensate on other cpus) ?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists