Project

General

Profile

Bug #9522

Diagnostics > System Activity shows only the header

Added by Steve Wheeler 5 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Diagnostics
Target version:
Start date:
05/12/2019
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.5.x
Affected Architecture:

Description

In current 2.5 snapshots the 'top' output in Diagnostics > System Activity seems truncated.

I see only:

last pid: 33054;  load averages:  0.02,  0.07,  0.08  up 0+01:06:12    12:36:32
120 threads:   3 running, 104 sleeping, 13 waiting
CPU:  0.9% user,  0.1% nice, 14.8% system,  0.0% interrupt, 84.1% idle
Mem: 46M Active, 195M Inact, 552M Wired, 389M Buf, 3107M Free
Swap: 

It also seems to be showing different values to running the command at the CLI at the same time:

[2.5.0-DEVELOPMENT][root@fw321.stevew.lan]/root: top -aSH
last pid: 31065;  load averages:  0.04,  0.07,  0.08                                                                             up 0+01:07:24  12:37:44
122 threads:   3 running, 106 sleeping, 13 waiting
CPU:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
Mem: 50M Active, 196M Inact, 552M Wired, 389M Buf, 3102M Free
Swap: 

  PID USERNAME    PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
   11 root        155 ki31      0    32K CPU1     1  56:59 100.00% [idle{idle: cpu1}]
   11 root        155 ki31      0    32K RUN      0  56:47  99.65% [idle{idle: cpu0}]
26126 root         20    0    13M  3840K CPU0     0   0:00   0.18% top -aSH
    9 root        -16    -      0    16K -        0   0:02   0.04% [rand_harvestq]
   12 root        -60    -      0   208K WAIT     0   0:02   0.04% [intr{swi4: clock (0)}]

Tested against: pfSense-2.5.0.a.20190511.1744

Associated revisions

Revision 4b84c39d (diff)
Added by Jim Pingle about 2 months ago

Use batch mode for top so it displays process list w/o terminal. Fixes #9522

While here, set a high number of processes to display and also remove
the use of 'cut' which limited column length. With current display
method it's unnecessary.

Revision 79a68d52 (diff)
Added by Jim Pingle about 2 months ago

Use batch mode for top so it displays process list w/o terminal. Fixes #9522

While here, set a high number of processes to display and also remove
the use of 'cut' which limited column length. With current display
method it's unnecessary.

(cherry picked from commit 4b84c39dbed64f221a052ec5be1fa325f71a413b)

History

#1 Updated by Jim Pingle about 2 months ago

  • Category changed from Web Interface to Diagnostics

#2 Updated by Jim Pingle about 2 months ago

  • Assignee set to Jim Pingle

#3 Updated by Jim Pingle about 2 months ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#4 Updated by Steve Wheeler about 1 month ago

  • Status changed from Feedback to Resolved

Looks good:

last pid: 71818;  load averages:  0.62,  0.34,  0.27  up 2+01:41:01    16:56:37
116 threads:   3 running, 96 sleeping, 17 waiting
CPU:  0.0% user,  0.1% nice,  0.4% system,  0.0% interrupt, 99.4% idle
Mem: 4280K Active, 392M Inact, 316M Wired, 189M Buf, 1150M Free
Swap: 1527M Total, 1527M Free

  PID USERNAME    PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
   11 root        155 ki31      0    32K CPU0     0  49.4H 100.00% [idle{idle: cpu0}]
   11 root        155 ki31      0    32K RUN      1  49.4H 100.00% [idle{idle: cpu1}]
  443 root         22    0    97M    36M piperd   0   0:02   0.20% php-fpm: pool nginx (php-fpm){php-fpm}
    0 root        -76    -      0   288K -        0   1:57   0.00% [kernel{if_config_tqg_0}]
   21 root        -16    -      0    16K -        1   1:20   0.00% [rand_harvestq]
   12 root        -60    -      0   272K WAIT     1   1:06   0.00% [intr{swi4: clock (0)}]
   18 root        -16    -      0    16K pftm     0   0:57   0.00% [pf purge]
62813 root         52   20    11M  3052K wait     0   0:54   0.00% /bin/sh /var/db/r

Tested in:
2.5.0-DEVELOPMENT (amd64)
built on Sat Aug 31 22:05:07 EDT 2019
FreeBSD 12.0-RELEASE-p9

Also available in: Atom PDF