Home
last modified time | relevance | path

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

/linux-2.6.39/mm/
Dmemcontrol.c223 struct res_counter memsw; member
1183 margin = min(margin, res_counter_margin(&mem->memsw)); in mem_cgroup_margin()
1346 res_counter_read_u64(&memcg->memsw, RES_USAGE) >> 10, in mem_cgroup_print_oom_info()
1347 res_counter_read_u64(&memcg->memsw, RES_LIMIT) >> 10, in mem_cgroup_print_oom_info()
1348 res_counter_read_u64(&memcg->memsw, RES_FAILCNT)); in mem_cgroup_print_oom_info()
1371 u64 memsw; in mem_cgroup_get_limit() local
1376 memsw = res_counter_read_u64(&memcg->memsw, RES_LIMIT); in mem_cgroup_get_limit()
1381 return min(limit, memsw); in mem_cgroup_get_limit()
1754 res_counter_uncharge(&old->memsw, bytes); in drain_stock()
1908 ret = res_counter_charge(&mem->memsw, csize, &fail_res); in mem_cgroup_do_charge()
[all …]
/linux-2.6.39/Documentation/cgroups/
Dmemory.txt57 memory.memsw.usage_in_bytes # show current res_counter usage for memory+Swap
60 memory.memsw.limit_in_bytes # set/show limit of memory+Swap usage
62 memory.memsw.failcnt # show the number of memory+Swap hits limits
64 memory.memsw.usage_in_bytes # show max memory+Swap usage recorded
196 - memory.memsw.usage_in_bytes.
197 - memory.memsw.limit_in_bytes.
199 memsw means memory+swap. Usage of memory+swap is limited by
200 memsw.limit_in_bytes.
204 In this case, setting memsw.limit_in_bytes=3G will prevent bad use of swap.
205 By using memsw limit, you can avoid system OOM which can be caused by swap
[all …]
Dmemcg_test.txt135 memory.usage/memsw.usage changes to this page/swp_entry will be
379 #echo 50M > memory.memsw.limit_in_bytes
417 Use /cgroup/A/memory.memsw.usage_in_bytes to test memsw thresholds.
/linux-2.6.39/Documentation/
Dfeature-removal-schedule.txt553 Why: The original implementation of memsw feature enabled by