top: program code changes, enable NUMA/Node extensions
authorLance Shelton <LShelton@fusionio.com>
Mon, 8 Apr 2013 07:00:00 +0000 (00:00 -0700)
committerCraig Small <csmall@enc.com.au>
Sun, 14 Apr 2013 12:21:42 +0000 (22:21 +1000)
commit8d989c68c068541a814bf0d2340ac9b0373f24b5
treee70881d3e748555699fdd0a2f9b82e0b57a289dc
parentc2afde130eb61100df4305a7c54e1c88180c5bac
top: program code changes, enable NUMA/Node extensions

This commit extends the top Summary Area cpu states to
include information on Non-Uniform Memory Architecture
nodes. It is based upon changes originally proposed by
Lance Shelton who was instrumental in the final patch.

With this change, the user will have new commands that
will provide alternatives to the individual cpu stats:

. '2' toggles between cpu & numa node summary displays
. '3' provides node summary and related cpu statistics

These extensions required some minimal system support.
Typically, the numactl package (and maybe libnuma-dev)
are all that's needed to show a single node which owns
all the processors. Failing that, or for slightly more
variety, top also offers a #define named PRETEND_NUMA.

(everything is perfectly justified plus right margins)
(are completely filled, but of course it must be luck)

Signed-off-by: Jim Warner <james.warner@comcast.net>
Signed-off-by: Lance Shelton <LShelton@fusionio.com>
top/top.c
top/top.h
top/top_nls.c
top/top_nls.h