Searched refs:memsw (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.15/mm/ |
D | memcontrol.c | 1272 count = page_counter_read(&memcg->memsw); in mem_cgroup_margin() 1273 limit = READ_ONCE(memcg->memsw.max); in mem_cgroup_margin() 1512 K((u64)page_counter_read(&memcg->memsw)), in mem_cgroup_print_oom_meminfo() 1513 K((u64)memcg->memsw.max), memcg->memsw.failcnt); in mem_cgroup_print_oom_meminfo() 1543 unsigned long swap = READ_ONCE(memcg->memsw.max) - max; in mem_cgroup_get_max() 2162 page_counter_uncharge(&old->memsw, stock->nr_pages); in drain_stock() 2542 page_counter_try_charge(&memcg->memsw, batch, &counter)) { in try_charge_memcg() 2546 page_counter_uncharge(&memcg->memsw, batch); in try_charge_memcg() 2549 mem_over_limit = mem_cgroup_from_counter(counter, memsw); in try_charge_memcg() 2663 page_counter_charge(&memcg->memsw, nr_pages); in try_charge_memcg() [all …]
|
/Linux-v5.15/Documentation/admin-guide/cgroup-v1/ |
D | memory.rst | 69 memory.memsw.usage_in_bytes show current usage for memory+Swap 72 memory.memsw.limit_in_bytes set/show limit of memory+Swap usage 74 memory.memsw.failcnt show the number of memory+Swap hits limits 76 memory.memsw.max_usage_in_bytes show max memory+Swap usage recorded 207 Since page's memcg recorded into swap whatever memsw enabled, the page will 235 - memory.memsw.usage_in_bytes. 236 - memory.memsw.limit_in_bytes. 238 memsw means memory+swap. Usage of memory+swap is limited by 239 memsw.limit_in_bytes. 243 In this case, setting memsw.limit_in_bytes=3G will prevent bad use of swap. [all …]
|
D | memcg_test.rst | 294 #echo 50M > memory.memsw.limit_in_bytes 342 Use /cgroup/A/memory.memsw.usage_in_bytes to test memsw thresholds.
|
/Linux-v5.15/include/linux/ |
D | memcontrol.h | 248 struct page_counter memsw; /* v1 only */ member
|