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
a121c1dfef
commit
52e8917de4
@ -255,7 +255,7 @@ mbpr(u_long mbaddr, u_long mbtaddr __unused, u_long nmbcaddr, u_long nmbufaddr,
|
|||||||
} else {
|
} else {
|
||||||
/* XXX: peak is now wrong. */
|
/* XXX: peak is now wrong. */
|
||||||
printf("%lu/%lu/%d (current/peak/max):\n",
|
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++) {
|
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 {
|
} else {
|
||||||
/* XXX: peak is now wrong. */
|
/* XXX: peak is now wrong. */
|
||||||
printf("%lu/%lu/%d (current/peak/max):\n",
|
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++) {
|
for (i = 0; cflag && i < (num_objs - 1); i++) {
|
||||||
if (mbpstat[i]->mb_active == 0)
|
if (mbpstat[i]->mb_active == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user