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

Alexander Viro
2002-11-05T05:53:12Z

On Mon, 4 Nov 2002, Martin J. Bligh wrote:

> > I do dislike /dev/ps mightily.
>
> Well it can't be any worse than the current crap. At least it'd
> stand a chance in hell of scaling a little bit. So I took a very
> quick look ... what syscalls are you reduced to per pid, one ioctl
> and one read?

Oh, yes it can. Easily.
* device is not network-transparent - even in principle
* restricting data access would be harder - welcome to suid or
sgid country
* real killer: you think Albert would fail to produce equally
crappy code and equally crappy behaviour? Yeah, right.