lkml.org 
[lkml]   [2011]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH 00/18] Increase resolution of load weights
From
Date
On Thu, 2011-04-21 at 08:16 +0200, Ingo Molnar wrote:
> * Nikhil Rao <ncrao@google.com> wrote:
>
> > Major TODOs:
> > - Detect overflow in update shares calculations (time * load), and set load_avg
> > to maximum possible value (~0ULL).
> > - tg->task_weight uses an atomic which needs to be updates to 64-bit on 32-bit
> > machines. Might need to add a lock to protect this instead of atomic ops.
> > - Check wake-affine math and effective load calculations for overflows.
> > - Needs more testing and need to ensure fairness/balancing is not broken.
>
> Please measure micro-costs accurately as well, via perf stat --repeat 10 or so.
>
> For example, on a testsystem doing 200k pipe triggered context switches (100k
> pipe ping-pongs) costs this much:
>
> $ taskset 1 perf stat --repeat 10 ./pipe-test-100k
>

> We want to know the delta in the 'instructions' value resulting from the patch
> (this can be measured very accurately) and we also want to see the 'cycles'
> effect - both can be measured pretty accurately.
>
> I've attached the testcase - you might need to increase the --repeat value so
> that noise drops below the level of the effect from these patches. (the effect
> is likely in the 0.01% range)
>
> It would also be nice to see how 'size vmlinux' changes with these patches
> applied, on a 'make defconfig' build.

Well, it shouldn't change at all for 64bit kernels (would be good to
double check), however 32bit kernels will get bigger and slower.

The problem is, the only alternative is to make 32bit !cgroup kernels
different, but then we end up with a massive wrappery mess... and the
last thing the load-balance code needs is more obfuscation.







\
 
 \ /
  Last update: 2011-04-21 18:33    [W:0.135 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site