I asked Bosko Milekic for help with 'peak' reporting, and he suggested
using the old 'cached' value but reporting it as 'cached'. I've decided to report the 'cached' as 'peak', why? Well because it is the peak, the peak of what is actually allocated. 'cached' doesn't make sense to me as a user.
This commit is contained in:
parent
1805ed0772
commit
7a744a48d2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123767
@ -255,7 +255,7 @@ mbpr(u_long mbaddr, u_long mbtaddr __unused, u_long nmbcaddr, u_long nmbufaddr,
|
||||
} else {
|
||||
/* XXX: peak is now wrong. */
|
||||
printf("%lu/%lu/%d (current/peak/max):\n",
|
||||
totused[0], totused[0], nmbufs);
|
||||
totused[0], totnum, nmbufs);
|
||||
}
|
||||
|
||||
for (i = 0; cflag && i < (num_objs - 1); i++) {
|
||||
@ -312,7 +312,7 @@ mbpr(u_long mbaddr, u_long mbtaddr __unused, u_long nmbcaddr, u_long nmbufaddr,
|
||||
} else {
|
||||
/* XXX: peak is now wrong. */
|
||||
printf("%lu/%lu/%d (current/peak/max):\n",
|
||||
totused[1], totused[1], nmbclusters);
|
||||
totused[1], totnum, nmbclusters);
|
||||
}
|
||||
for (i = 0; cflag && i < (num_objs - 1); i++) {
|
||||
if (mbpstat[i]->mb_active == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user