Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2019 05:55:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 238200] top(1)'s Swap In and Out numbers are twice as much
Message-ID:  <bug-238200-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

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@FreeBSD.org
          Reporter: ota@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.

help

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