bin/177860: top(1) does not show time units when time > 999 days.
mitya at yandex-team.ru
Sun Apr 14 17:20:01 UTC 2013
>Synopsis: top(1) does not show time units when time > 999 days.
>Arrival-Date: Sun Apr 14 17:20:00 UTC 2013
>Originator: Dmitry Sivachenko
>Release: FreeBSD 10.0-CURRENT amd64
System: FreeBSD dhcp175-40-red.yandex.net 10.0-CURRENT FreeBSD 10.0-CURRENT #2: Mon Mar 25 17:10:25 MSK 2013 mitya at dhcp175-40-red.yandex.net:/usr/obj/usr/src/sys/CAVIA amd64
On modern multiprocessor systems it is easy for multithreaded process to consume
more than 999 hours of execution time. In that case, 'H' unit is not shown in top(1)
Below is the example output:
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
8556 UUUUUUUUU 17 118 20 33938M 24342M CPU11 11 1270.4 1457.67% XXXX
This process has 16 threads and it is running for few days.
It's execution time is 1270.4*hours*, but that 'H' unit is not shown.
If execution time is more than 999 hours, I suggest to drop fraction (".4" in my example)
and use freed space with unit specifier.
Or, as an alternative, introduce another time unit "d" for "days".
More information about the freebsd-bugs