Home
last modified time | relevance | path

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

/linux-6.6.21/mm/
Dmemcontrol.c1431 count = page_counter_read(&memcg->memsw); in mem_cgroup_margin()
1432 limit = READ_ONCE(memcg->memsw.max); in mem_cgroup_margin()
1676 K((u64)page_counter_read(&memcg->memsw)), in mem_cgroup_print_oom_meminfo()
1677 K((u64)memcg->memsw.max), memcg->memsw.failcnt); in mem_cgroup_print_oom_meminfo()
1701 unsigned long swap = READ_ONCE(memcg->memsw.max) - max; in mem_cgroup_get_max()
2268 page_counter_uncharge(&old->memsw, stock->nr_pages); in drain_stock()
2656 page_counter_try_charge(&memcg->memsw, batch, &counter)) { in try_charge_memcg()
2660 page_counter_uncharge(&memcg->memsw, batch); in try_charge_memcg()
2663 mem_over_limit = mem_cgroup_from_counter(counter, memsw); in try_charge_memcg()
2769 page_counter_charge(&memcg->memsw, nr_pages); in try_charge_memcg()
[all …]
/linux-6.6.21/Documentation/admin-guide/cgroup-v1/
Dmemory.rst71 memory.memsw.usage_in_bytes show current usage for memory+Swap
74 memory.memsw.limit_in_bytes set/show limit of memory+Swap usage
76 memory.memsw.failcnt show the number of memory+Swap hits limits
78 memory.memsw.max_usage_in_bytes show max memory+Swap usage recorded
215 Since page's memcg recorded into swap whatever memsw enabled, the page will
244 - memory.memsw.usage_in_bytes.
245 - memory.memsw.limit_in_bytes.
247 memsw means memory+swap. Usage of memory+swap is limited by
248 memsw.limit_in_bytes.
252 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-6.6.21/include/linux/
Dmemcontrol.h220 struct page_counter memsw; /* v1 only */ member