Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Oct 2017 17:40:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 223149] [patch] top displays total swap size exceeds the maximum system can handle
Message-ID:  <bug-223149-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223149

            Bug ID: 223149
           Summary: [patch] top displays total swap size exceeds the
                    maximum system can handle
           Product: Base System
           Version: 11.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: ota@j.email.ne.jp
          Keywords: patch

Created attachment 187351
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D187351&action=
=3Dedit
top displays Total up to swap_maxpages

Top's "Swap Total" is the sum of all swap spaces and not the maximum of a
system can handle.

Especially when gap is large, system starts killing tasks even if top displ=
ays
large swap space still available.  People use top to monitor system activit=
ies
and amount exceeding usable space is confusing.

The patch reduces to the system maximum when total swap space is more than =
the
system can handle.

In addition, the patch grabs pagesize() only once to reduce extra calls.

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



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