Lines Matching +full:01 +full:a
10 is complex. This is a document for memcg's internal behavior.
28 The page_cgroup has USED bit and double count against a page_cgroup never
29 occurs. swap_cgroup is used only when a charged page is swapped-out.
34 a page/swp_entry may be charged (usage += PAGE_SIZE) at
41 a page/swp_entry may be uncharged (usage -= PAGE_SIZE) by
44 Called when a page's refcount goes down to 0.
47 Called when swp_entry's refcnt goes down to 0. A charge against swap
77 (a) If the SwapCache is newly allocated and read, it has no charges.
84 (a) add to swap cache. (marked as SwapCache)
126 - A new page is added to shmem's radix-tree.
127 - A swp page is read. (move a charge from swap_cgroup to page_cgroup)
141 A special function is mem_cgroup_isolate_pages(). This scans
142 memcg's private LRU and call __isolate_lru_page() to extract a page
175 is useful. Following is a sample script to do migration::
179 mkdir /opt/cpuset/01
180 echo 1 > /opt/cpuset/01/cpuset.cpus
181 echo 0 > /opt/cpuset/01/cpuset.mems
182 echo 1 > /opt/cpuset/01/cpuset.memory_migrate
188 In above set, when you moves a task from 01 to 02, page migration to
189 node 0 to node 1 will occur. Following is a script to migrate all
228 echo 1 >/opt/cgroup/01/memory/use_hierarchy
229 mkdir /opt/cgroup/01/child_a
230 mkdir /opt/cgroup/01/child_b
232 set limit to 01.
233 add limit to 01/child_b
238 /opt/cgroup/01/child_a/child_aa
239 /opt/cgroup/01/child_b/child_bb
240 /opt/cgroup/01/child_c
247 Mounting with other subsystems is a good test because there is a
265 (Shell-A)::
277 # /sbin/swapoff -a
287 the memcg. When hierarchy is used, a task under hierarchy
295 Case A) when you can swapoff::
297 #swapoff -a
312 Charges associated with a task can be moved along with task migration.
314 (Shell-A)::
316 #mkdir /cgroup/A
317 #echo $$ >/cgroup/A/tasks
319 run some programs which uses some amount of memory in /cgroup/A.
325 #echo "pid of the program running in group A" >/cgroup/B/tasks
328 memory.stat of both A and B.
339 (Shell-A) Create cgroup and run event listener::
341 # mkdir /cgroup/A
342 # ./cgroup_event_listener /cgroup/A/memory.usage_in_bytes 5M
346 # echo $$ >/cgroup/A/tasks
347 # a="$(dd if=/dev/zero bs=1M count=10)"
348 # a=
353 Use /cgroup/A/memory.memsw.usage_in_bytes to test memsw thresholds.