lkml.org 
[lkml]   [2003]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch] procfs/procps threading performance speedup, 2.5.62

    On Sun, 23 Feb 2003, Albert D. Cahalan wrote:

    > The kernel does not provide proper support for grouping threads by
    > process. Hacks exist to group them anyway, but such hacks will falsely
    > group similar tasks and will fail to group tasks due to race conditions.
    > The hacks are also slow. As none of this is acceptable in a critical
    > system tool, task grouping is not currently available.

    Albert, here you make the mistake of connecting 'thread directories' to
    'raceless task state displaying'. There's no such connection, and there's
    no way to get rid of said 'race conditions'. There's just no way, and in
    fact no desire to get a completely race-free task state from /proc. It's
    simply not possible. readdir() and /proc is just fundamentally non-atomic
    - i challenge you to show me a single mainstream OS in existence that can
    display a completely race-free and accurate snapshot of task state.

    here's an offer: propose a sane /proc based mechanism that is totally
    race-free, and i'll implement it. If you think that thread-directories
    solve the races then you are dead wrong. (Btw., i too would like to see
    thread directories, and if you look at the first NPTL patches you'll see
    that i've proposed them as the superior solution.) This is a hard problem,
    and if you think it's "just" the matter of kernel support then you vastly
    underestimate the complexity involved.

    Ingo

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

    \
     
     \ /
      Last update: 2005-03-22 13:33    [W:2.888 / U:0.392 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site