[lkml]   [2007]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [patch] sched: accurate user accounting
    On Mon, 26 Mar 2007, Con Kolivas wrote:

    > On Sunday 25 March 2007 23:06, malc wrote:
    >> On Sun, 25 Mar 2007, Con Kolivas wrote:
    >>> On Sunday 25 March 2007 21:46, Con Kolivas wrote:
    >>>> On Sunday 25 March 2007 21:34, malc wrote:
    >>>>> On Sun, 25 Mar 2007, Ingo Molnar wrote:
    >>>>>> * Con Kolivas <> wrote:
    >>>>>>> For an rsdl 0.33 patched kernel. Comments? Overhead worth it?
    >> [..snip..]
    >>> ---
    >>> Currently we only do cpu accounting to userspace based on what is
    >>> actually happening precisely on each tick. The accuracy of that
    >>> accounting gets progressively worse the lower HZ is. As we already keep
    >>> accounting of nanosecond resolution we can accurately track user cpu,
    >>> nice cpu and idle cpu if we move the accounting to update_cpu_clock with
    >>> a nanosecond cpu_usage_stat entry. This increases overhead slightly but
    >>> avoids the problem of tick aliasing errors making accounting unreliable.
    >>> Signed-off-by: Con Kolivas <>
    >>> Signed-off-by: Ingo Molnar <>
    >> [..snip..]
    >> Forgot to mention. Given that this goes into the kernel, shouldn't
    >> Documentation/cpu-load.txt be amended/removed?
    > Yes that's a good idea. Also there should be a sanity check because sometimes
    > for some reason noone's been able to explain to me sched_clock gives a value
    > which doesn't make sense (time appears to have gone backwards) and that will
    > completely ruin the accounting from then on.

    After running this new kernel for a while i guess i have hit this issue:

    Top and icewm's monitor do show incredibly huge load while in reality
    nothing like that is really happening. Both ad-hoc and `/proc/stat' (idle)
    show normal CPU utilization (7% since i'm doing some A/V stuff in the

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-03-25 17:03    [W:0.037 / U:6.832 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site