[lkml]   [2002]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: O(1) count_active_tasks()
    On Tue, May 28, 2002 at 11:08:35AM -0700, Robert Love wrote:
    > Well, I did some tests. I changed count_active_tasks to calculate using
    > both methods and whine if they did not match. I then put the machine
    > under extreme load with a lot of I/O. Finally, I ran `uptime(1)' in a
    > tight loop and watched the console.
    > Over a long period of constant count_active_tasks calls via `uptime(1)',
    > I had only a couple messages. This is most likely <=1% of the calls and
    > in each case we were one to high with the new method (140 vs 141, for
    > example).
    > Not sure why, or if it is even us or nr_running() or even the old method
    > that is off ... but who cares. It is a statistic.

    Thanks a million for doing some independent testing! I should have
    been more clear about the fact that it was an approximate method, and
    that it varies from mainline occasionally and slightly. But this is the
    nature of the patch I proposed.

    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: 2005-03-22 13:26    [W:0.027 / U:3.216 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site