Home
last modified time | relevance | path

Searched refs:swap_total (Results 1 – 4 of 4) sorted by relevance

/systemd-251/src/oom/
Doomd-util.c141 swap_threshold = ctx->swap_total * threshold_permyriad / (uint64_t) 10000; in oomd_swap_free_below()
142 return (ctx->swap_total - ctx->swap_used) < swap_threshold; in oomd_swap_free_below()
457 r = convert_meminfo_value_to_uint64_bytes(word, &ctx.swap_total); in oomd_system_context_acquire()
480 if (swap_free > ctx.swap_total) in oomd_system_context_acquire()
484 ctx.swap_total); in oomd_system_context_acquire()
487 ctx.swap_used = ctx.swap_total - swap_free; in oomd_system_context_acquire()
611 FORMAT_BYTES(ctx->swap_total)); in oomd_dump_system_context()
Dtest-oomd-util.c286 assert_se(ctx.swap_total == 8589930496); in test_oomd_system_context_acquire()
341 .swap_total = 20971512 * 1024U, in test_oomd_mem_and_swap_free_below()
350 .swap_total = 20971512 * 1024U, in test_oomd_mem_and_swap_free_below()
359 .swap_total = 0, in test_oomd_mem_and_swap_free_below()
Doomd-util.h45 uint64_t swap_total; member
Doomd-manager.c397 m->system_context.swap_used, m->system_context.swap_total, in monitor_swap_contexts_handler()
406 threshold = m->system_context.swap_total * THRESHOLD_SWAP_USED_PERCENT / 100; in monitor_swap_contexts_handler()
419 … m->system_context.swap_used, m->system_context.swap_total, in monitor_swap_contexts_handler()