Re: [PATCH] percpu load avererages / *real* load averages

Martin J. Bligh (mbligh@aracnet.com)
Fri, 14 Feb 2003 12:01:11 -0800


> Probably needs some tidying up before it's mergeable, but I like it.
> Is useful as is, so I thought other people might want to look at it and
> give me feedback. Based very loosely on a earlier patch by Andrew Theurer
> that gave nr_running per cpu, but I wanted to see load averages. This is
> extremely useful for looking at scheduler rebalancing problems.
>
> I think we should be basing the scheduler rebalance calculations off load
> averages, rather than a couple of sample points - I'll create a patch to
> do this sometime soon.

Oh, by tidying up, I mean this should probably be done in the per-cpu
areas, from the scheduler tick, lockless, and we shouldn't bother keeping
the global one - just derive it at read time. That'd make it might lighter
weight, but I just wanted a quick hack to see what was going on ;-)

M.

-
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/