[padb-devel] Job-wide "top" interface.
Ashley Pittman
ashley at pittman.co.uk
Sun Jun 14 22:33:27 BST 2009
All,
I've been putting some work into the proc-info option and have come up
with a workable "top" style mode, output of which is shown below.
Up until till now to do this the user had to provide --proc-info
--proc-format=<format> but I'd like to simplify this to a single option
to make it easier to use as I can image it'll be a lot more useful that
the basic --proc-info option.
Does anybody want input as to what the option should be called or what
information is shown by default, the working name/options is
--proc-summary and a standard --proc-format is
"vp=vpid,hostname,pid,vmsize,vmrss,stat.state=S,pcpu=%cpu,name=command".
The format for this is a comma separated list of fields, if a equals is
present the left hand side is used for the key, the right hand side is
shows as the column heading.
As before it's possible to sort by the different fields using
-Oproc-sort-key=<key>, would there any requirement to change the sort
order (ascending/descending) as well?
This code is available as r47 if anybody is interested in running it,
speak quickly however due to the imminent release.
Ashley,
ashley at alpha:~/code/padb/src$ ./padb -a --proc-summary
vpid hostname pid vmsize vmrss S %cpu command
15 alpha 23441 73384 kB 4372 kB R 11 a.out
14 alpha 23440 73384 kB 4368 kB R 11 a.out
13 alpha 23439 73384 kB 4372 kB R 13 a.out
12 alpha 23438 73384 kB 4376 kB R 8 a.out
11 alpha 23437 73384 kB 4388 kB R 11 a.out
10 alpha 23436 73384 kB 4364 kB R 11 a.out
9 alpha 23435 73384 kB 4376 kB R 9 a.out
8 alpha 23434 73384 kB 4372 kB R 8 a.out
7 alpha 23433 73384 kB 4360 kB R 9 a.out
6 alpha 23432 73384 kB 4368 kB R 10 a.out
5 alpha 23431 73384 kB 4360 kB R 13 a.out
4 alpha 23430 73384 kB 4372 kB R 10 a.out
3 alpha 23429 73384 kB 4376 kB R 11 a.out
2 alpha 23428 73384 kB 4364 kB R 7 a.out
1 alpha 23427 73384 kB 4384 kB R 11 a.out
0 alpha 23426 73384 kB 4364 kB R 9 a.out
ashley at alpha:~/code/padb/src$
--
Ashley Pittman, Bath, UK.
Padb - A parallel job inspection tool for cluster computing
http://padb.pittman.org.uk
More information about the padb-devel
mailing list