Home
last modified time | relevance | path

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

/linux/mm/
H A Dmemcontrol-v1.c1098 page_counter_uncharge(&mc.from->memsw, mc.moved_swap); in __mem_cgroup_clear_mc()
2333 unsigned long max, bool memsw) in mem_cgroup_resize_max() argument
2339 struct page_counter *counter = memsw ? &memcg->memsw : &memcg->memory; in mem_cgroup_resize_max()
2352 limits_invariant = memsw ? max >= READ_ONCE(memcg->memory.max) : in mem_cgroup_resize_max()
2353 max <= memcg->memsw.max; in mem_cgroup_resize_max()
2374 memsw ? 0 : MEMCG_RECLAIM_MAY_SWAP, NULL)) { in mem_cgroup_resize_max()
2454 counter = &memcg->memsw; in mem_cgroup_read_u64()
2470 if (counter == &memcg->memsw) in mem_cgroup_read_u64()
2601 counter = &memcg->memsw; in mem_cgroup_reset()
2763 unsigned long memory, memsw; in memcg1_stat_format() local
[all …]
H A Dmemcontrol.c1304 count = page_counter_read(&memcg->memsw); in mem_cgroup_margin()
1305 limit = READ_ONCE(memcg->memsw.max); in mem_cgroup_margin()
1538 K((u64)page_counter_read(&memcg->memsw)), in mem_cgroup_print_oom_meminfo()
1539 K((u64)memcg->memsw.max), memcg->memsw.failcnt); in mem_cgroup_print_oom_meminfo()
1564 unsigned long swap = READ_ONCE(memcg->memsw.max) - max; in mem_cgroup_get_max()
1770 page_counter_uncharge(&old->memsw, stock_pages); in drain_stock()
2176 page_counter_try_charge(&memcg->memsw, batch, &counter)) { in try_charge_memcg()
2180 page_counter_uncharge(&memcg->memsw, batch); in try_charge_memcg()
2183 mem_over_limit = mem_cgroup_from_counter(counter, memsw); in try_charge_memcg()
2289 page_counter_charge(&memcg->memsw, nr_pages); in try_charge_memcg()
[all …]
/linux/Documentation/admin-guide/cgroup-v1/
H A Dmemory.rst71 memory.memsw.usage_in_bytes show current usage for memory+Swap
74 memory.memsw.limit_in_bytes set/show limit of memory+Swap usage
76 memory.memsw.failcnt show the number of memory+Swap hits limits
78 memory.memsw.max_usage_in_bytes show max memory+Swap usage recorded
229 Since page's memcg recorded into swap whatever memsw enabled, the page will
258 - memory.memsw.usage_in_bytes.
259 - memory.memsw.limit_in_bytes.
261 memsw means memory+swap. Usage of memory+swap is limited by
262 memsw.limit_in_bytes.
266 In this case, setting memsw.limit_in_bytes=3G will prevent bad use of swap.
[all …]
H A Dmemcg_test.rst294 #echo 50M > memory.memsw.limit_in_bytes
342 Use /cgroup/A/memory.memsw.usage_in_bytes to test memsw thresholds.
/linux/include/linux/
H A Dmemcontrol.h194 struct page_counter memsw; /* v1 only */ member