Searched refs:memsw (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/mm/ |
D | memcontrol.c | 1216 count = page_counter_read(&memcg->memsw); in mem_cgroup_margin() 1217 limit = READ_ONCE(memcg->memsw.max); in mem_cgroup_margin() 1327 K((u64)page_counter_read(&memcg->memsw)), in mem_cgroup_print_oom_info() 1328 K((u64)memcg->memsw.max), memcg->memsw.failcnt); in mem_cgroup_print_oom_info() 1365 memsw_max = memcg->memsw.max; in mem_cgroup_get_max() 1973 page_counter_uncharge(&old->memsw, stock->nr_pages); in drain_stock() 2165 page_counter_try_charge(&memcg->memsw, batch, &counter)) { in try_charge() 2169 page_counter_uncharge(&memcg->memsw, batch); in try_charge() 2172 mem_over_limit = mem_cgroup_from_counter(counter, memsw); in try_charge() 2283 page_counter_charge(&memcg->memsw, nr_pages); in try_charge() [all …]
|
/Linux-v4.19/Documentation/cgroup-v1/ |
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-v4.19/include/linux/ |
D | memcontrol.h | 208 struct page_counter memsw; member
|