Home
last modified time | relevance | path

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

/linux-4.1.27/mm/
Dmemcontrol.c268 struct page_counter memsw; member
1367 count = page_counter_read(&memcg->memsw); in mem_cgroup_margin()
1368 limit = READ_ONCE(memcg->memsw.limit); in mem_cgroup_margin()
1466 K((u64)page_counter_read(&memcg->memsw)), in mem_cgroup_print_oom_info()
1467 K((u64)memcg->memsw.limit), memcg->memsw.failcnt); in mem_cgroup_print_oom_info()
1518 memsw_limit = memcg->memsw.limit; in mem_cgroup_get_limit()
2103 page_counter_uncharge(&old->memsw, stock->nr_pages); in drain_stock()
2237 !page_counter_try_charge(&memcg->memsw, batch, &counter)) { in try_charge()
2241 page_counter_uncharge(&memcg->memsw, batch); in try_charge()
2244 mem_over_limit = mem_cgroup_from_counter(counter, memsw); in try_charge()
[all …]
/linux-4.1.27/Documentation/cgroups/
Dmemory.txt62 memory.memsw.usage_in_bytes # show current usage for memory+Swap
65 memory.memsw.limit_in_bytes # set/show limit of memory+Swap usage
67 memory.memsw.failcnt # show the number of memory+Swap hits limits
69 memory.memsw.max_usage_in_bytes # show max memory+Swap usage recorded
215 - memory.memsw.usage_in_bytes.
216 - memory.memsw.limit_in_bytes.
218 memsw means memory+swap. Usage of memory+swap is limited by
219 memsw.limit_in_bytes.
223 In this case, setting memsw.limit_in_bytes=3G will prevent bad use of swap.
224 By using the memsw limit, you can avoid system OOM which can be caused by swap
[all …]
Dmemcg_test.txt241 #echo 50M > memory.memsw.limit_in_bytes
278 Use /cgroup/A/memory.memsw.usage_in_bytes to test memsw thresholds.