Project

General

Profile

Actions

Bug #8587

closed

System information dashboad show only first swap disk/file info

Added by Marcello Silva Coutinho over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
Dashboard
Target version:
Start date:
06/20/2018
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
All
Affected Architecture:
All

Description

On systems that swap was undersized and a another swap file had to be added, dashboard fails to show right usage % and alerts only the first swap device %

The fix is really simple. I'm opening it just to refer it on github pull request


Files

two_swaps.PNG (3.96 KB) two_swaps.PNG Marcello Silva Coutinho, 06/20/2018 03:22 PM
Actions #1

Updated by Marcello Silva Coutinho over 3 years ago

Marcello Silva Coutinho wrote:

On systems that swap was undersized and a another swap file had to be added, dashboard fails to show right usage % and alerts only the first swap device %

The fix is really simple. I'm opening it just to refer it on github pull request

https://github.com/pfsense/pfsense/pull/3950

Actions #2

Updated by Marcello Silva Coutinho over 3 years ago

Forgot to test on systems without more then on swap file.

The code needs more checks

Pushed a fix for the fix.

Actions #4

Updated by Jim Pingle over 3 years ago

  • Status changed from New to Feedback
  • Target version set to 2.4.4

PR has been merged

Actions #5

Updated by Anonymous over 3 years ago

On 2.4.4.a.20180707.0234, multiple swap files are accurately reported. On the test system with 978M swap after install, and 8192M of swap added after, the swapinfo output and the dashboard reports the swap usage as

[2.4.4-DEVELOPMENT][admin@pfSense.localdomain]/root: swapinfo -kh
Device          1K-blocks     Used    Avail Capacity
/dev/gptid/7b7e5d44-8213-11e8-9   1001548       0B     978M     0%
/dev/md42         8388608       0B     8.0G     0%
Total             9390156       0B     9.0G     0%

and

0% of 9170 MiB

respectively, which is correct.

Actions #6

Updated by Jim Pingle over 3 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF