[Bug 238200] top(1)'s Swap In and Out numbers are twice as much

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 29 05:55:21 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238200

            Bug ID: 238200
           Summary: top(1)'s Swap In and Out numbers are twice as much
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: ota at j.email.ne.jp

top has been reporting twice as high as actual transaction for swap-in and
swap-out.

Swap: 2048M Total, 201M Used, 1847M Free, 9% Inuse, 27M Out

In this line, top reported 27M Out.  However, systat -vm only shows 13.5 MB
transaction for the same period to the device.

We need 3 terminals to observe:
term1 % top
term2 % systatm -vm 1
term3 % swapon <large-device>
term3 % mount -t tmpfs tmpfs /mnt/tmp
term3 % dd if=/dev/zero of=/mnt/tmp/large.txt bs=1M count=3000

Also Having 1 swap device makes easier to observe.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list