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

Peter Chubb (peter@chubb.wattle.id.au)
Wed, 6 Nov 2002 09:49:42 +1100


>>>>> "Martin" == Martin J Bligh <mbligh@aracnet.com> writes:

>> And i'd still keep environ seperate. I'm inclined to think ps
>> should never have presented it in the first place. This is the
>> direction i (for what it's worth) favor.

Martin> If it doesn't need it then sure, otherwise just dump whatever
Martin> it needs in there. The seperate files would still be there
Martin> too.

Why not make an mmapable file in /proc with everything in it?
It can be sparse, so have the first part a bit map to say what
processes are active, then just look at the bits you need.
That gets rid of all but the open and mmap system call.

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