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
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Trying this now: it seems top(1) does not reflect *either* the swapon or the swapoff during operation. I'll see what I could do about this.