[lkml]   [2000]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: /proc guidelines and sysctl
    On Fri, Jan 07, 2000 at 11:49:09AM -0800, Linus Torvalds <> wrote:
    > Because system calls are performance-sensitive.

    When I start top and press down the space bar (starting keypress repeat),
    then this top process sucks up ALL CPU POWEER of my p-ii 333, and STILL is
    unable to cope with ~30 refreshes per second.

    Incidentally, top only uses sycalls to access this information it requires
    (namely open/read/close ;) IT's just that it needs _hundresds_ or even
    _thousands_ of syscalls.

    And top is a program that is used very often.

    Now, I expect only a moderate performance improvement from /proc to using
    sysctl, but nevertheless, a /proc-based sysctl would be the worst of both
    worlds: binary format, dog-slow.

    > And flattening it out and trying to number it does not work. Never has,
    > never will. It's not an enumerated space.


    -----==- |
    ----==-- _ |
    ---==---(_)__ __ ____ __ Marc Lehmann +--
    --==---/ / _ \/ // /\ \/ / |e|
    -=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+
    The choice of a GNU generation |

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

     \ /
      Last update: 2005-03-22 13:55    [W:0.421 / U:44.076 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site