please help me make sense of top's CPU output

Chris Rees utisoft at
Tue Nov 3 17:23:53 UTC 2009

2009/11/3 Chris Stankevitz <cstankevitz at>:
> Dan Nelson wrote:
>> Junior Hacker Project: add an instantaneous-CPU value (calculated by
>> subtracting successive ki_runtime values) to the list of things top
>> calculates and toggle it and weighted-CPU when pressing C.  The toggling
>> code is already there; it just toggles between two different weighted-cpu
>> values at the moment.
> Makes sense, thank you.  If I want to hack a port program, I go to the
> "work" directory, edit the source, and rebuild.  How do I hack a non-port
> program like top?
> Chris

Look in the Makefile for /usr/src/usr.bin/top, and you'll see the
source is in /usr/src/contrib/top

Hack away!

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in a mailing list?

More information about the freebsd-questions mailing list