Uploaded image for project: 'FreeNAS / TrueNAS'
  1. FreeNAS / TrueNAS
  2. NAS-101954

Add top -w output to debug

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Done (View Workflow)
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 11.2-U5
    • Component/s: Middleware
    • Labels:
      None
    • Has Acceptance Criteria:
      Yes
    • Needs Doc:
      No
    • Needs QA:
      Yes
    • Attempts to pass:
      1
    • Testing System:
      X10-HA
    • QA Status:
      Test Passes TrueNAS
    • Acceptance Criteria:
      Hide
      I got these instructions from Caleb:
      gather a debug, and look in the "System" section

      in there, you will find the top output and it should have a SWAP column

      it should look something like this:

      last pid: 11799; load averages: 1.07, 0.42, 0.25 up 0+22:17:06 07:58:48
      536 threads: 1 running, 535 sleeping
      CPU: 1.4% user, 0.0% nice, 0.5% system, 0.5% interrupt, 97.6% idle
      Mem: 1377M Active, 2820M Inact, 794M Laundry, 9470M Wired, 1393M Free
      ARC: 6433M Total, 902M MFU, 4865M MRU, 1156K Anon, 79M Header, 586M Other
           5009M Compressed, 10G Uncompressed, 2.07:1 Ratio
      Swap: 2048M Total, 2048M Free

        PID USERNAME PRI NICE SIZE RES SWAP STATE C TIME WCPU COMMAND
      83874 caleb 20 0 176M 91M 0 select 2 0:12 1.10% kdeinit5{kdeinit5}
      16375 caleb 20 0 913M 610M 0 uwait 3 7:08 0.64% chrome{chrome}
      89158 caleb 20 0 1313M 931M 0 uwait 2 3:25 0.27% chrome{chrome}
      81596 caleb 20 0 718M 513M 0 select 0 3:39 0.25% plasmashell{plasmashell}
      89158 caleb 20 0 1313M 931M 0 uwait 2 2:43 0.24% chrome{chrome}
      89158 caleb 20 0 1313M 931M 0 uwait 0 3:25 0.23% chrome{chrome}

      you can see the SWAP column there. that's what you're looking for
      Show
      I got these instructions from Caleb: gather a debug, and look in the "System" section in there, you will find the top output and it should have a SWAP column it should look something like this: last pid: 11799; load averages: 1.07, 0.42, 0.25 up 0+22:17:06 07:58:48 536 threads: 1 running, 535 sleeping CPU: 1.4% user, 0.0% nice, 0.5% system, 0.5% interrupt, 97.6% idle Mem: 1377M Active, 2820M Inact, 794M Laundry, 9470M Wired, 1393M Free ARC: 6433M Total, 902M MFU, 4865M MRU, 1156K Anon, 79M Header, 586M Other      5009M Compressed, 10G Uncompressed, 2.07:1 Ratio Swap: 2048M Total, 2048M Free   PID USERNAME PRI NICE SIZE RES SWAP STATE C TIME WCPU COMMAND 83874 caleb 20 0 176M 91M 0 select 2 0:12 1.10% kdeinit5{kdeinit5} 16375 caleb 20 0 913M 610M 0 uwait 3 7:08 0.64% chrome{chrome} 89158 caleb 20 0 1313M 931M 0 uwait 2 3:25 0.27% chrome{chrome} 81596 caleb 20 0 718M 513M 0 select 0 3:39 0.25% plasmashell{plasmashell} 89158 caleb 20 0 1313M 931M 0 uwait 2 2:43 0.24% chrome{chrome} 89158 caleb 20 0 1313M 931M 0 uwait 0 3:25 0.23% chrome{chrome} you can see the SWAP column there. that's what you're looking for

      Description

      Currently, a debug will output

      top -SHIz -d 2

      in fndbug/System. I would like to change that to

      top -SHIzw -d 2

      to capture the approximate swap space used by each process.

        Attachments

          Container Issues

            Activity

              People

              • Assignee:
                caleb Caleb St. John
                Reporter:
                cmathis Charles Mathis
                QE Engineer:
                Bonnie Follweiler
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel