Searched refs:memsw (Results 1 – 4 of 4) sorted by relevance
/linux-4.4.14/mm/ |
D | memcontrol.c | 1188 count = page_counter_read(&memcg->memsw); in mem_cgroup_margin() 1189 limit = READ_ONCE(memcg->memsw.limit); in mem_cgroup_margin() 1278 K((u64)page_counter_read(&memcg->memsw)), in mem_cgroup_print_oom_info() 1279 K((u64)memcg->memsw.limit), memcg->memsw.failcnt); in mem_cgroup_print_oom_info() 1330 memsw_limit = memcg->memsw.limit; in mem_cgroup_get_limit() 1915 page_counter_uncharge(&old->memsw, stock->nr_pages); in drain_stock() 2045 page_counter_try_charge(&memcg->memsw, batch, &counter)) { in try_charge() 2049 page_counter_uncharge(&memcg->memsw, batch); in try_charge() 2052 mem_over_limit = mem_cgroup_from_counter(counter, memsw); in try_charge() 2136 page_counter_charge(&memcg->memsw, nr_pages); in try_charge() [all …]
|
/linux-4.4.14/Documentation/cgroups/ |
D | memory.txt | 62 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 …]
|
D | memcg_test.txt | 241 #echo 50M > memory.memsw.limit_in_bytes 278 Use /cgroup/A/memory.memsw.usage_in_bytes to test memsw thresholds.
|
/linux-4.4.14/include/linux/ |
D | memcontrol.h | 188 struct page_counter memsw; member
|