Home
last modified time | relevance | path

Searched refs:memsw (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.1/mm/
Dmemcontrol.c1408 count = page_counter_read(&memcg->memsw); in mem_cgroup_margin()
1409 limit = READ_ONCE(memcg->memsw.max); in mem_cgroup_margin()
1643 K((u64)page_counter_read(&memcg->memsw)), in mem_cgroup_print_oom_meminfo()
1644 K((u64)memcg->memsw.max), memcg->memsw.failcnt); in mem_cgroup_print_oom_meminfo()
1667 unsigned long swap = READ_ONCE(memcg->memsw.max) - max; in mem_cgroup_get_max()
2258 page_counter_uncharge(&old->memsw, stock->nr_pages); in drain_stock()
2646 page_counter_try_charge(&memcg->memsw, batch, &counter)) { in try_charge_memcg()
2650 page_counter_uncharge(&memcg->memsw, batch); in try_charge_memcg()
2653 mem_over_limit = mem_cgroup_from_counter(counter, memsw); in try_charge_memcg()
2759 page_counter_charge(&memcg->memsw, nr_pages); in try_charge_memcg()
[all …]
/Linux-v6.1/Documentation/admin-guide/cgroup-v1/
Dmemory.rst70 memory.memsw.usage_in_bytes show current usage for memory+Swap
73 memory.memsw.limit_in_bytes set/show limit of memory+Swap usage
75 memory.memsw.failcnt show the number of memory+Swap hits limits
77 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 …]
Dmemcg_test.rst294 #echo 50M > memory.memsw.limit_in_bytes
342 Use /cgroup/A/memory.memsw.usage_in_bytes to test memsw thresholds.
/Linux-v6.1/include/linux/
Dmemcontrol.h217 struct page_counter memsw; /* v1 only */ member