summaryrefslogtreecommitdiff
path: root/src/journal/sd-journal.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-26 18:58:44 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-26 18:58:44 +0100
commitbf807d4dbf27c783db8dfd7f4eca321ae4be5b00 (patch)
treebc8810a5a2b08cfb1c4ab3d9ea48646c280a3010 /src/journal/sd-journal.c
parentb8e891e699e1336c5527f8203e4e8f67c9bbeb84 (diff)
journald: keep statistics on how of we hit/miss the mmap cache
Diffstat (limited to 'src/journal/sd-journal.c')
-rw-r--r--src/journal/sd-journal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
index 4579e9ee2d..1c91f007b7 100644
--- a/src/journal/sd-journal.c
+++ b/src/journal/sd-journal.c
@@ -1831,8 +1831,10 @@ _public_ void sd_journal_close(sd_journal *j) {
if (j->inotify_fd >= 0)
close_nointr_nofail(j->inotify_fd);
- if (j->mmap)
+ if (j->mmap) {
+ log_debug("mmap cache statistics: %u hit, %u miss", mmap_cache_get_hit(j->mmap), mmap_cache_get_missed(j->mmap));
mmap_cache_unref(j->mmap);
+ }
free(j->path);
free(j->unique_field);