[Bug 223149] [patch] top displays total swap size exceeds the maximum system can handle
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Oct 21 17:40:04 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223149
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 at FreeBSD.org
Reporter: ota at j.email.ne.jp
Keywords: patch
Created attachment 187351
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=187351&action=edit
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 displays
large swap space still available. People use top to monitor system activities
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.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list