mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-13 02:34:20 -04:00
4584. [bug] A number of memory usage statistics were not properly
reported when they exceeded 4G. [RT #44750]
(cherry picked from commit ddac00e3e0)
This commit is contained in:
parent
2b0bef65b5
commit
fc945cbc44
2 changed files with 15 additions and 6 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
4584. [bug] A number of memory usage statistics were not properly
|
||||
reported when they exceeded 4G. [RT #44750]
|
||||
|
||||
--- 9.10.5 released ---
|
||||
|
||||
--- 9.10.5rc3 released ---
|
||||
|
|
|
|||
|
|
@ -1418,18 +1418,24 @@ dns_cache_dumpstats(dns_cache_t *cache, FILE *fp) {
|
|||
(isc_uint64_t) dns_db_hashsize(cache->db),
|
||||
"cache database hash buckets");
|
||||
|
||||
fprintf(fp, "%20u %s\n", (unsigned int) isc_mem_total(cache->mctx),
|
||||
fprintf(fp, "%20" ISC_PLATFORM_QUADFORMAT "u %s\n",
|
||||
(isc_uint64_t) isc_mem_total(cache->mctx),
|
||||
"cache tree memory total");
|
||||
fprintf(fp, "%20u %s\n", (unsigned int) isc_mem_inuse(cache->mctx),
|
||||
fprintf(fp, "%20" ISC_PLATFORM_QUADFORMAT "u %s\n",
|
||||
(isc_uint64_t) isc_mem_inuse(cache->mctx),
|
||||
"cache tree memory in use");
|
||||
fprintf(fp, "%20u %s\n", (unsigned int) isc_mem_maxinuse(cache->mctx),
|
||||
fprintf(fp, "%20" ISC_PLATFORM_QUADFORMAT "u %s\n",
|
||||
(isc_uint64_t) isc_mem_maxinuse(cache->mctx),
|
||||
"cache tree highest memory in use");
|
||||
|
||||
fprintf(fp, "%20u %s\n", (unsigned int) isc_mem_total(cache->hmctx),
|
||||
fprintf(fp, "%20" ISC_PLATFORM_QUADFORMAT "u %s\n",
|
||||
(isc_uint64_t) isc_mem_total(cache->hmctx),
|
||||
"cache heap memory total");
|
||||
fprintf(fp, "%20u %s\n", (unsigned int) isc_mem_inuse(cache->hmctx),
|
||||
fprintf(fp, "%20" ISC_PLATFORM_QUADFORMAT "u %s\n",
|
||||
(isc_uint64_t) isc_mem_inuse(cache->hmctx),
|
||||
"cache heap memory in use");
|
||||
fprintf(fp, "%20u %s\n", (unsigned int) isc_mem_maxinuse(cache->hmctx),
|
||||
fprintf(fp, "%20" ISC_PLATFORM_QUADFORMAT "u %s\n",
|
||||
(isc_uint64_t) isc_mem_maxinuse(cache->hmctx),
|
||||
"cache heap highest memory in use");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue