Home
last modified time | relevance | path

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

/Linux-v5.15/mm/
Dfrontswap.c377 unsigned long totalpages = 0; in __frontswap_curr_pages() local
382 totalpages += atomic_read(&si->frontswap_pages); in __frontswap_curr_pages()
383 return totalpages; in __frontswap_curr_pages()
476 unsigned long totalpages = 0; in frontswap_curr_pages() local
479 totalpages = __frontswap_curr_pages(); in frontswap_curr_pages()
482 return totalpages; in frontswap_curr_pages()
Doom_kill.c204 long oom_badness(struct task_struct *p, unsigned long totalpages) in oom_badness() argument
238 adj *= totalpages / 1000; in oom_badness()
263 oc->totalpages = mem_cgroup_get_max(oc->memcg) ?: 1; in constrained_alloc()
268 oc->totalpages = totalram_pages() + total_swap_pages; in constrained_alloc()
290 oc->totalpages = total_swap_pages; in constrained_alloc()
292 oc->totalpages += node_present_pages(nid); in constrained_alloc()
303 oc->totalpages = total_swap_pages; in constrained_alloc()
305 oc->totalpages += node_present_pages(nid); in constrained_alloc()
344 points = oom_badness(task, oc->totalpages); in oom_evaluate_task()
Dpage_alloc.c7238 unsigned long realtotalpages = 0, totalpages = 0; in calculate_node_totalpages() local
7269 totalpages += size; in calculate_node_totalpages()
7273 pgdat->node_spanned_pages = totalpages; in calculate_node_totalpages()
7682 unsigned long totalpages = 0; in early_calculate_totalpages() local
7689 totalpages += pages; in early_calculate_totalpages()
7693 return totalpages; in early_calculate_totalpages()
7709 unsigned long totalpages = early_calculate_totalpages(); in find_zone_movable_pfns_for_nodes() local
7771 required_kernelcore = (totalpages * 100 * required_kernelcore_percent) / in find_zone_movable_pfns_for_nodes()
7774 required_movablecore = (totalpages * 100 * required_movablecore_percent) / in find_zone_movable_pfns_for_nodes()
7794 required_movablecore = min(totalpages, required_movablecore); in find_zone_movable_pfns_for_nodes()
[all …]
/Linux-v5.15/include/linux/
Doom.h49 unsigned long totalpages; member
112 unsigned long totalpages);
/Linux-v5.15/Documentation/x86/x86_64/
Dfake-numa-for-cpusets.rst37 On node 0 totalpages: 130975
38 On node 1 totalpages: 131072
39 On node 2 totalpages: 131072
40 On node 3 totalpages: 131072
/Linux-v5.15/fs/proc/
Dbase.c550 unsigned long totalpages = totalram_pages() + total_swap_pages; in proc_oom_score() local
554 badness = oom_badness(task, totalpages); in proc_oom_score()
561 points = (1000 + badness * 1000 / (long)totalpages) * 2 / 3; in proc_oom_score()