]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
oomctl: show last_pgscan
authorAnita Zhang <the.anitazha@gmail.com>
Tue, 16 Mar 2021 00:38:45 +0000 (17:38 -0700)
committerAnita Zhang <the.anitazha@gmail.com>
Wed, 17 Mar 2021 17:17:05 +0000 (10:17 -0700)
src/oom/oomd-util.c

index 0ddb197f2b050559f655b8aa2cc6d2ff6d9cd383..7860f2154d13d478d077e78116a527b79b538724 100644 (file)
@@ -477,10 +477,12 @@ void oomd_dump_memory_pressure_cgroup_context(const OomdCGroupContext *ctx, FILE
                 fprintf(f,
                         "%s\tMemory Min: %s\n"
                         "%s\tMemory Low: %s\n"
-                        "%s\tPgscan: %" PRIu64 "\n",
+                        "%s\tPgscan: %" PRIu64 "\n"
+                        "%s\tLast Pgscan: %" PRIu64 "\n",
                         strempty(prefix), format_bytes_cgroup_protection(mem_min, sizeof(mem_min), ctx->memory_min),
                         strempty(prefix), format_bytes_cgroup_protection(mem_low, sizeof(mem_low), ctx->memory_low),
-                        strempty(prefix), ctx->pgscan);
+                        strempty(prefix), ctx->pgscan,
+                        strempty(prefix), ctx->last_pgscan);
 }
 
 void oomd_dump_system_context(const OomdSystemContext *ctx, FILE *f, const char *prefix) {