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

/linux-4.4.14/mm/
H A Doom_kill.c153 * @totalpages: total present RAM allowed for page allocation
160 const nodemask_t *nodemask, unsigned long totalpages) oom_badness()
194 adj *= totalpages / 1000; oom_badness()
209 unsigned long *totalpages) constrained_alloc()
218 *totalpages = totalram_pages + total_swap_pages; constrained_alloc()
237 *totalpages = total_swap_pages; constrained_alloc()
239 *totalpages += node_spanned_pages(nid); constrained_alloc()
250 *totalpages = total_swap_pages; constrained_alloc()
252 *totalpages += node_spanned_pages(nid); constrained_alloc()
259 unsigned long *totalpages) constrained_alloc()
261 *totalpages = totalram_pages + total_swap_pages; constrained_alloc()
267 struct task_struct *task, unsigned long totalpages) oom_scan_process_thread()
301 unsigned int *ppoints, unsigned long totalpages) select_bad_process()
311 switch (oom_scan_process_thread(oc, p, totalpages)) { for_each_process_thread()
324 points = oom_badness(p, NULL, oc->nodemask, totalpages); for_each_process_thread()
338 *ppoints = chosen_points * 1000 / totalpages;
510 unsigned int points, unsigned long totalpages, oom_kill_process()
557 totalpages); for_each_thread()
676 unsigned long totalpages; out_of_memory() local
707 constraint = constrained_alloc(oc, &totalpages); out_of_memory()
716 oom_kill_process(oc, current, 0, totalpages, NULL, out_of_memory()
721 p = select_bad_process(oc, &points, totalpages); out_of_memory()
728 oom_kill_process(oc, p, points, totalpages, NULL, out_of_memory()
159 oom_badness(struct task_struct *p, struct mem_cgroup *memcg, const nodemask_t *nodemask, unsigned long totalpages) oom_badness() argument
208 constrained_alloc(struct oom_control *oc, unsigned long *totalpages) constrained_alloc() argument
258 constrained_alloc(struct oom_control *oc, unsigned long *totalpages) constrained_alloc() argument
266 oom_scan_process_thread(struct oom_control *oc, struct task_struct *task, unsigned long totalpages) oom_scan_process_thread() argument
300 select_bad_process(struct oom_control *oc, unsigned int *ppoints, unsigned long totalpages) select_bad_process() argument
509 oom_kill_process(struct oom_control *oc, struct task_struct *p, unsigned int points, unsigned long totalpages, struct mem_cgroup *memcg, const char *message) oom_kill_process() argument
H A Dfrontswap.c379 unsigned long totalpages = 0; __frontswap_curr_pages() local
384 totalpages += atomic_read(&si->frontswap_pages); __frontswap_curr_pages()
385 return totalpages; __frontswap_curr_pages()
478 unsigned long totalpages = 0; frontswap_curr_pages() local
481 totalpages = __frontswap_curr_pages(); frontswap_curr_pages()
484 return totalpages; frontswap_curr_pages()
H A Dpage_alloc.c5066 unsigned long realtotalpages = 0, totalpages = 0; calculate_node_totalpages() local
5083 totalpages += size; calculate_node_totalpages()
5087 pgdat->node_spanned_pages = totalpages; calculate_node_totalpages()
5089 printk(KERN_DEBUG "On node %d totalpages: %lu\n", pgdat->node_id, calculate_node_totalpages()
5468 unsigned long totalpages = 0; early_calculate_totalpages() local
5475 totalpages += pages; early_calculate_totalpages()
5479 return totalpages; early_calculate_totalpages()
5495 unsigned long totalpages = early_calculate_totalpages(); find_zone_movable_pfns_for_nodes() local
5539 required_movablecore = min(totalpages, required_movablecore);
5540 corepages = totalpages - required_movablecore;
5547 * than totalpages, there is no ZONE_MOVABLE.
5549 if (!required_kernelcore || required_kernelcore >= totalpages)
H A Dmemcontrol.c1347 unsigned long totalpages; mem_cgroup_out_of_memory() local
1364 totalpages = mem_cgroup_get_limit(memcg) ? : 1; for_each_mem_cgroup_tree()
1371 switch (oom_scan_process_thread(&oc, task, totalpages)) { for_each_mem_cgroup_tree()
1390 points = oom_badness(task, memcg, NULL, totalpages); for_each_mem_cgroup_tree()
1408 points = chosen_points * 1000 / totalpages;
1409 oom_kill_process(&oc, chosen, points, totalpages, memcg,
/linux-4.4.14/include/linux/
H A Doom.h77 unsigned long totalpages);
82 unsigned int points, unsigned long totalpages,
90 struct task_struct *task, unsigned long totalpages);
/linux-4.4.14/fs/proc/
H A Dbase.c579 unsigned long totalpages = totalram_pages + total_swap_pages; proc_oom_score() local
584 points = oom_badness(task, NULL, NULL, totalpages) * proc_oom_score()
585 1000 / totalpages; proc_oom_score()

Completed in 232 milliseconds