lkml.org 
[lkml]   [2002]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: ps performance sucks (was Re: dcache_rcu [performance results])
    >> The locking of walking the tasklist seems non-trivial, but we may well
    >> end up with something like that. By the time you finish, it looks more
    >> like a /dev device thing than /proc (which I'm fine with), and looks
    >
    > Can people just oprofile this instead of guessing? Opening a file is not
    > very expensive anymore, so if ps is noticeably slow, it must be something
    > else.
    >
    > 'To measure is to know'

    Errm... we have profiled it. Look at the subject line ... this started
    off as a dcache_rcu discussion. The dcache lookup ain't cheap, for
    starters, but that's not really the problem ... it's O(number of tasks),
    which sucks.

    M.

    -
    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:30    [W:8.471 / U:0.088 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site