Project

General

Profile

Bug #8587

System information dashboad show only first swap disk/file info

Added by Marcello Silva Coutinho 9 months ago. Updated 8 months ago.

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

0%

Estimated time:
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

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

Associated revisions

Revision c7841232 (diff)
Added by Marcello Silva Coutinho 9 months ago

check total swap size on dashboard

Refer to bug #8587

History

#1 Updated by Marcello Silva Coutinho 9 months 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

#2 Updated by Marcello Silva Coutinho 9 months ago

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

The code needs more checks

Pushed a fix for the fix.

#4 Updated by Jim Pingle 9 months ago

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

PR has been merged

#5 Updated by James Dekker 9 months 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.

#6 Updated by Jim Pingle 8 months ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF