Re: [RFC][PATCH 1/3] sched: Rewrite tg_shares_up

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Monday, August 30, 2010 - 10:53 am

On Mon, 2010-08-30 at 22:50 +0530, Srivatsa Vaddagiri wrote:

It can add a negative value, I should probably have made the below use
long instead of unsigned long.


Well, without history you can get terribly inaccurate too. Suppose the
workload sleeps for 50ms then runs for 50ms with n tasks, each on its
own cpu. Without history you'll end up being off by n*load, with history
you'll be floating about the avg, giving a much more stable result.

The (tg->shares * cfs_rq->load) / tg->load < MIN_SHARES issues is not
something we can easily fix, there's only so much you can do with fixed
point math.


We touch it once per tick, so pretty hot on large systems, then again,
the larger the system the less likely all cpus will run tasks from the
same cgroup.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][PATCH 0/3] Try and make cpu-cgroup suck less, Peter Zijlstra, (Sat Aug 28, 3:30 pm)
[RFC][PATCH 1/3] sched: Rewrite tg_shares_up, Peter Zijlstra, (Sat Aug 28, 3:30 pm)
[RFC][PATCH 2/3] sched: On-demand cfs_rq list, Peter Zijlstra, (Sat Aug 28, 3:30 pm)
[RFC][PATCH 3/3] sched: On-demand tg_shares_up(), Peter Zijlstra, (Sat Aug 28, 3:30 pm)
Re: [RFC][PATCH 1/3] sched: Rewrite tg_shares_up, Srivatsa Vaddagiri, (Mon Aug 30, 10:20 am)
Re: [RFC][PATCH 1/3] sched: Rewrite tg_shares_up, Peter Zijlstra, (Mon Aug 30, 10:53 am)
Re: [RFC][PATCH 3/3] sched: On-demand tg_shares_up(), Paul Turner, (Thu Sep 2, 6:52 pm)
Re: [RFC][PATCH 1/3] sched: Rewrite tg_shares_up, Paul Turner, (Thu Sep 2, 8:09 pm)
Re: [RFC][PATCH 2/3] sched: On-demand cfs_rq list, Paul Turner, (Thu Sep 2, 8:33 pm)
Re: [RFC][PATCH 2/3] sched: On-demand cfs_rq list, Peter Zijlstra, (Fri Sep 3, 12:59 am)
Re: [RFC][PATCH 1/3] sched: Rewrite tg_shares_up, Peter Zijlstra, (Fri Sep 3, 12:59 am)
Re: [RFC][PATCH 3/3] sched: On-demand tg_shares_up(), Peter Zijlstra, (Fri Sep 3, 12:59 am)