Re: ps performance sucks (was Re: dcache_rcu [performance results])

From: Martin J. Bligh (mbligh@aracnet.com)
Date: Tue Nov 05 2002 - 20:23:17 EST


>> 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.
>
> Ok - but if opening a few files is the problem, the solution is not to roll
> those files into one but to figure out why opening the files is slow in the
> first place.

It's not a few files if you have large numbers of tasks. It's an
interface that fundamentally wasn't designed to scale, and futzing
around tweaking the thing isn't going to cut it, it needs a different
design. I'm not proposing throwing out any of the old simple interfaces,
just providing something efficient as a data gathering interface for
those people who wish to use it.

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/



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:40 EST