Skip to content

Commit bb08124

Browse files
committed
oomctl: show last_pgscan
1 parent 88e4795 commit bb08124

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/oom/oomd-util.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,12 @@ void oomd_dump_memory_pressure_cgroup_context(const OomdCGroupContext *ctx, FILE
477477
fprintf(f,
478478
"%s\tMemory Min: %s\n"
479479
"%s\tMemory Low: %s\n"
480-
"%s\tPgscan: %" PRIu64 "\n",
480+
"%s\tPgscan: %" PRIu64 "\n"
481+
"%s\tLast Pgscan: %" PRIu64 "\n",
481482
strempty(prefix), format_bytes_cgroup_protection(mem_min, sizeof(mem_min), ctx->memory_min),
482483
strempty(prefix), format_bytes_cgroup_protection(mem_low, sizeof(mem_low), ctx->memory_low),
483-
strempty(prefix), ctx->pgscan);
484+
strempty(prefix), ctx->pgscan,
485+
strempty(prefix), ctx->last_pgscan);
484486
}
485487

486488
void oomd_dump_system_context(const OomdSystemContext *ctx, FILE *f, const char *prefix) {

0 commit comments

Comments
 (0)