bin/183135: top(1) doesn't show results of swapon while running, only swapoff
Adam McDougall
mcdouga9 at egr.msu.edu
Sun Oct 20 23:20:02 UTC 2013
>Number: 183135
>Category: bin
>Synopsis: top(1) doesn't show results of swapon while running, only swapoff
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Oct 20 23:20:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Adam McDougall
>Release: 9.1-STABLE
>Organization:
>Environment:
FreeBSD hostname 9.1-STABLE FreeBSD 9.1-STABLE #1: Sat Jun 1 19:50:16 EDT 2013 mcdouga9 at hostname:/usr/obj/usr/src/sys/AMD64-9 amd64
>Description:
If top is running in one terminal and swapoff/swapon is used to eliminate and re-add the current swap device, top reflects the results of the swapoff but not the swapon. Stop top and re-run top and all is fine. Not a high priority problem but could be misleading to someone leaving top open for long periods.
>How-To-Repeat:
Before:
% swapinfo
Device 1K-blocks Used Avail Capacity
/dev/ada0p2 8388608 407420 7981188 5%
top:
Swap: 8192M Total, 398M Used, 7794M Free, 4% Inuse
# swapoff /dev/ada0p2
top:
Swap: 3184K In
# swapon /dev/ada0p2
top:
Swap: 3184K In
rerun top:
Swap: 8192M Total, 8192M Free
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list