start | find | index | login or register | edit
by earl, 6482 days ago
Need a top for Debian Sarge that is able to monitor linux 2.6 kernel threads? Well either wait for Etch or go do the backport duck-dance. This dance is quite enjoyable if you know about APT's package pinning (see e.g. 2004-01-11). In case you don't, here's a quick cookbook-style rundown:

Add the following lines for to your /etc/apt/sources.list:

deb sarge-backports main

top is in the procps package. Now we'll use a mechanism called package pinning to use the main Sarge packages for everything but procps which we want to retrieve from the backports instead. Add to the following lines to /etc/apt/preferences:

Package: *
Pin: release a=sarge-backports
Pin-Priority: 200

Package: procps
Pin: release a=sarge-backports
Pin-Priority: 999

Now you're ready to go. Do an aptitude update (you know that aptitude is the preferred package management frontend since Sarge, don't you?) followed by an aptitude upgrade and aptitude should be suggesting to upgrade your procps package. VoilĂ !

To actually display kernel threads in top, press 'H' while top is running.
powered by vanilla
echo earlZstrainYat|tr ZY @. • esa3 • online for 8532 days • c'est un vanilla site