Searched refs:mem_total (Results 1 – 6 of 6) sorted by relevance
/systemd-251/src/basic/ |
D | procfs-util.c | 222 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/ |
D | oomd-util.c | 131 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()
|
D | test-oomd-util.c | 284 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()
|
D | oomd-util.h | 43 uint64_t mem_total; member
|
D | oomd-manager.c | 396 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/ |
D | journald-context.c | 73 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()
|