[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [PATCH v2 0/2] top: Add 'IRIX mode'
From:       David Laight <David.Laight () ACULAB ! COM>
Date:       2021-11-12 12:51:35
Message-ID: b21d24c1c3604834ad9b63bd9eae6267 () AcuMS ! aculab ! com
[Download RAW message or body]

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
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic