The busybox top always runs in 'Solaris mode' where the cpu% for
a process is a percentage across all the cpu.
So a single threaded process in an infinite loop on a 16cpu
system only reports 8% cpu use.
In 'IRIX mode' it will report 100% - much more useful.
In IRIX mode a multi-threaded process can report over 100%.
When threads are displayed (-H) IRIX mode probably ought to be the
default - but I've not changed that.
Patch 1/2 removes a lot of 'cruft' from the process display that
was there to avoid two integer divides.
I actually doubt that was ever worth-while, the loop is probably
dominated by the system calls to read the process arguments.
Patch 2/2 adds IRIX mode.
Changes from v1 - add patch 1/2.
Both patches are diffs against the 1.33 release install.
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT,
UK
Registration No: 1397386 (Wales)
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox