Re: (offtopic) How to measure working set of apps in Linux?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 1 Feb 1999 21:00:46 +0000 (GMT)


> Do you kernel wizards have any special trick for fine profiling / measuring,
> that a normal human being like me (who hasn't studied your kernel sources)
> can use?? :)

RSS is kind of hard to measure accurately anyway since chunks are shared with
the disk cache and other apps.

In Linux we'd do something like

T=0
>data
while { true }
do
ps ux $PID | ( read HEADER; read A B C D E F G ; echo $T" "$F >>data)
sleep 1
T=`expr $T + 1`
done

The wonders of a tool based system ;)

And maybe gnuplot the result

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/