Searched refs:usage (Results 1 – 9 of 9) sorted by relevance
| /mm/ |
| A D | page_counter.c | 22 unsigned long usage) in propagate_protected_usage() argument 30 protected = min(usage, READ_ONCE(c->min)); in propagate_protected_usage() 63 atomic_long_set(&counter->usage, new); in page_counter_cancel() 201 long usage; in page_counter_set_max() local 214 usage = page_counter_read(counter); in page_counter_set_max() 216 if (usage > nr_pages) in page_counter_set_max() 347 protected = min(usage, setting); in effective_protection() 399 usage > protected) { in effective_protection() 403 unclaimed *= usage - protected; in effective_protection() 428 unsigned long usage, parent_usage; in page_counter_calculate_protection() local [all …]
|
| A D | sparse.c | 296 ms->usage = usage; in sparse_init_one_section() 342 if (!usage && limit) { in sparse_early_usemaps_alloc_pgdat_section() 346 return usage; in sparse_early_usemaps_alloc_pgdat_section() 849 kfree_rcu(ms->usage, rcu); in section_deactivate() 850 WRITE_ONCE(ms->usage, NULL); in section_deactivate() 877 if (!ms->usage) { in section_activate() 879 if (!usage) in section_activate() 881 ms->usage = usage; in section_activate() 886 if (usage) in section_activate() 887 ms->usage = NULL; in section_activate() [all …]
|
| A D | bootmem_info.c | 49 struct mem_section_usage *usage; in register_page_bootmem_info_section() local 69 usage = ms->usage; in register_page_bootmem_info_section() 70 page = virt_to_page(usage); in register_page_bootmem_info_section() 84 struct mem_section_usage *usage; in register_page_bootmem_info_section() local 95 usage = ms->usage; in register_page_bootmem_info_section() 96 page = virt_to_page(usage); in register_page_bootmem_info_section()
|
| A D | hugetlb_cgroup.c | 320 unsigned long usage = in __hugetlb_cgroup_commit_charge() local 321 h_cg->nodeinfo[folio_nid(folio)]->usage[idx]; in __hugetlb_cgroup_commit_charge() 328 usage + nr_pages); in __hugetlb_cgroup_commit_charge() 369 unsigned long usage = in __hugetlb_cgroup_uncharge_folio() local 370 h_cg->nodeinfo[folio_nid(folio)]->usage[idx]; in __hugetlb_cgroup_uncharge_folio() 377 usage - nr_pages); in __hugetlb_cgroup_uncharge_folio() 472 unsigned long usage; in hugetlb_cgroup_read_numa_stat() local 476 usage = 0; in hugetlb_cgroup_read_numa_stat() 478 usage += READ_ONCE(h_cg->nodeinfo[nid]->usage[idx]); in hugetlb_cgroup_read_numa_stat() 501 usage = 0; in hugetlb_cgroup_read_numa_stat() [all …]
|
| A D | memcontrol-v1.c | 433 unsigned long usage; in __mem_cgroup_threshold() local 445 usage = mem_cgroup_usage(memcg, swap); in __mem_cgroup_threshold() 460 for (; i >= 0 && unlikely(t->entries[i].threshold > usage); i--) in __mem_cgroup_threshold() 739 unsigned long usage; in __mem_cgroup_usage_register_event() local 750 usage = mem_cgroup_usage(memcg, false); in __mem_cgroup_usage_register_event() 753 usage = mem_cgroup_usage(memcg, true); in __mem_cgroup_usage_register_event() 787 if (new->entries[i].threshold <= usage) { in __mem_cgroup_usage_register_event() 830 unsigned long usage; in __mem_cgroup_usage_unregister_event() local 837 usage = mem_cgroup_usage(memcg, false); in __mem_cgroup_usage_unregister_event() 840 usage = mem_cgroup_usage(memcg, true); in __mem_cgroup_usage_unregister_event() [all …]
|
| A D | swapfile.c | 907 order, usage); in cluster_alloc_swap_entry() 919 order, usage); in cluster_alloc_swap_entry() 933 order, usage); in cluster_alloc_swap_entry() 951 order, usage); in cluster_alloc_swap_entry() 977 0, usage); in cluster_alloc_swap_entry() 984 0, usage); in cluster_alloc_swap_entry() 1360 unsigned char usage) in swap_entry_put_locked() argument 1390 usage = count | has_cache; in swap_entry_put_locked() 1391 if (usage) in swap_entry_put_locked() 1396 return usage; in swap_entry_put_locked() [all …]
|
| A D | memcontrol.c | 2121 if (usage <= high) in calculate_overage() 2130 overage = usage - high; in calculate_overage() 4263 unsigned long usage; in peak_write() local 4270 usage = page_counter_read(pc); in peak_write() 4271 WRITE_ONCE(pc->local_watermark, usage); in peak_write() 4274 if (usage > peer_ctx->value) in peak_write() 4275 WRITE_ONCE(peer_ctx->value, usage); in peak_write() 4281 WRITE_ONCE(ofp->value, usage); in peak_write() 5231 unsigned long usage = page_counter_read(&memcg->swap); in mem_cgroup_swap_full() local 5233 if (usage * 2 >= READ_ONCE(memcg->swap.high) || in mem_cgroup_swap_full() [all …]
|
| A D | Kconfig | 535 Select online_kernel to generally allow kernel usage of this memory. 536 Select online_movable to generally disallow kernel usage of this memory. 538 Example kernel usage would be page structs and page tables. 1196 be used to help understand percpu memory usage.
|
| A D | Kconfig.debug | 211 There is no runtime or memory usage effect of this option
|
Completed in 46 milliseconds