Xtop
This is a sample tool, like xentop. I don’t like the key-bindings of xentop (I prefer bsd-top). And its accuracy is not very good. So, I rewrite another xentop. Currently tested only on netbsd-current (5.99.7) with xentools33.
xtop output look like this:
Dom-0 Load avg: 0.07, 0.06, 0.03 15:09:28
5 domains: 2 blocked, 2 on CPU, 1 unknown
2 CPU @ 1.4Ghs: 8.38% Used, 91.62% Idle
Memory: 2.4G Used, 539M FreeID VCPU Rx Tx Wr Rd SIZE STATE TIME WCPU CPU NAME
0 1 2.0K 12K 0 0 1.5G running 11:42 1.20% Domain-0
2 2 223K 9.1K 0 0 512M running 44:16 15.20% babun
1 1 220 866 0 0 255M unknown 00:25 0.11% baby
4 1 0.0 796 0 0 63M blocked 00:23 0.13% www1
3 1 220 866 0 0 63M blocked 00:25 0.12% www0
This is not finished yet. The only recognized keywords are: ’s’ for delay and ‘o’ for sort order. There is also some bug..
You need the xenstat lib (libxenstat.a and xenstat.h) in order to compile it (in pkgsrc/sysutils/xentools33/work/xen-3.3.1/tools/xenstat/libxenstat/src).
Source is here: http://jym.free.fr/files/xtop-beta.c.gz
I’ll make a pkgsrc when finished.
Compilation, in the same directory than libxenstat: gcc -o xtop xtop-beta.c -Wl,-rpath,/usr/pkg/lib -L. -lxenstat -lcurses -lm
Feel free to send/request features or bug: jym [at] ldh [dot] org