Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Oct 2013 23:14:09 GMT
From:      Adam McDougall <mcdouga9@egr.msu.edu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/183135: top(1) doesn't show results of swapon while running, only swapoff
Message-ID:  <201310202314.r9KNE9K4068808@oldred.freebsd.org>
Resent-Message-ID: <201310202320.r9KNK1Vf040179@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310202314.r9KNE9K4068808>