]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
With r343051 UMA switched from atomic counts to counter(9) and now kernel
authorGleb Smirnoff <glebius@FreeBSD.org>
Mon, 18 Feb 2019 21:27:13 +0000 (21:27 +0000)
committerGleb Smirnoff <glebius@FreeBSD.org>
Mon, 18 Feb 2019 21:27:13 +0000 (21:27 +0000)
commitaa432983093fc696dcf72c7d3557bbbefee231f9
treea7bd9b0a815520252bc0ecc127d87aecf31089f5
parent63f582e0f5ad0fe006d712e1f680e0be9c532d21
With r343051 UMA switched from atomic counts to counter(9) and now kernel
reports snap counts of how much a zone alloced and how much it freed.  It
may happen that snap values doesn't match, e.g alloced - freed < 0.
Workaround that in memstat library.

Reported by: pho
lib/libmemstat/memstat_uma.c