Home
last modified time | relevance | path

Searched refs:mem_total (Results 1 – 6 of 6) sorted by relevance

/systemd-251/src/basic/
Dprocfs-util.c222 uint64_t mem_total = UINT64_MAX, mem_available = UINT64_MAX; in procfs_memory_get() local
243 v = &mem_total; in procfs_memory_get()
256 if (mem_total != UINT64_MAX && mem_available != UINT64_MAX) in procfs_memory_get()
260 if (mem_available > mem_total) in procfs_memory_get()
264 *ret_total = mem_total; in procfs_memory_get()
266 *ret_used = mem_total - mem_available; in procfs_memory_get()
/systemd-251/src/oom/
Doomd-util.c131 mem_threshold = ctx->mem_total * threshold_permyriad / (uint64_t) 10000; in oomd_mem_available_below()
132 return LESS_BY(ctx->mem_total, ctx->mem_used) < mem_threshold; in oomd_mem_available_below()
451 r = convert_meminfo_value_to_uint64_bytes(word, &ctx.mem_total); in oomd_system_context_acquire()
474 if (mem_available > ctx.mem_total) in oomd_system_context_acquire()
478 ctx.mem_total); in oomd_system_context_acquire()
486 ctx.mem_used = ctx.mem_total - mem_available; in oomd_system_context_acquire()
608 FORMAT_BYTES(ctx->mem_total), in oomd_dump_system_context()
Dtest-oomd-util.c284 assert_se(ctx.mem_total == 33275142144); in test_oomd_system_context_acquire()
339 .mem_total = 20971512 * 1024U, in test_oomd_mem_and_swap_free_below()
348 .mem_total = 20971512 * 1024U, in test_oomd_mem_and_swap_free_below()
357 .mem_total = 0, in test_oomd_mem_and_swap_free_below()
Doomd-util.h43 uint64_t mem_total; member
Doomd-manager.c396 m->system_context.mem_used, m->system_context.mem_total, in monitor_swap_contexts_handler()
418 m->system_context.mem_used, m->system_context.mem_total, in monitor_swap_contexts_handler()
/systemd-251/src/journal/
Djournald-context.c73 uint64_t mem_total; in cache_max() local
76 r = procfs_memory_get(&mem_total, NULL); in cache_max()
87 cached = CLAMP(mem_total / 8 / sc_arg_max(), CACHE_MAX_MIN, CACHE_MAX_MAX); in cache_max()