Home
last modified time | relevance | path

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

/Linux-v5.4/mm/
Dmemcontrol.c1324 count = page_counter_read(&memcg->memsw); in mem_cgroup_margin()
1325 limit = READ_ONCE(memcg->memsw.max); in mem_cgroup_margin()
1533 K((u64)page_counter_read(&memcg->memsw)), in mem_cgroup_print_oom_meminfo()
1534 K((u64)memcg->memsw.max), memcg->memsw.failcnt); in mem_cgroup_print_oom_meminfo()
1562 memsw_max = memcg->memsw.max; in mem_cgroup_get_max()
2202 page_counter_uncharge(&old->memsw, stock->nr_pages); in drain_stock()
2521 page_counter_try_charge(&memcg->memsw, batch, &counter)) { in try_charge()
2525 page_counter_uncharge(&memcg->memsw, batch); in try_charge()
2528 mem_over_limit = mem_cgroup_from_counter(counter, memsw); in try_charge()
2643 page_counter_charge(&memcg->memsw, nr_pages); in try_charge()
[all …]
/Linux-v5.4/Documentation/admin-guide/cgroup-v1/
Dmemory.rst69 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
238 - memory.memsw.usage_in_bytes.
239 - memory.memsw.limit_in_bytes.
241 memsw means memory+swap. Usage of memory+swap is limited by
242 memsw.limit_in_bytes.
246 In this case, setting memsw.limit_in_bytes=3G will prevent bad use of swap.
247 By using the memsw limit, you can avoid system OOM which can be caused by swap
[all …]
Dmemcg_test.rst305 #echo 50M > memory.memsw.limit_in_bytes
353 Use /cgroup/A/memory.memsw.usage_in_bytes to test memsw thresholds.
/Linux-v5.4/include/linux/
Dmemcontrol.h219 struct page_counter memsw; member