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

From: Peter Chubb (peter@chubb.wattle.id.au)
Date: Tue Nov 05 2002 - 17:49:42 EST


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



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