memcg: handle swap caches
[firefly-linux-kernel-4.4.55.git] / Documentation / controllers / memory.txt
index 54253b7a8db2a3f4c0d967116dab569bdc3a8692..9fe2d0eabe05d9938e79c9b51a766fb0fbdf7d28 100644 (file)
@@ -137,6 +137,11 @@ behind this approach is that a cgroup that aggressively uses a shared
 page will eventually get charged for it (once it is uncharged from
 the cgroup that brought it in -- this will happen on memory pressure).
 
+Exception: When you do swapoff and make swapped-out pages of shmem(tmpfs) to
+be backed into memory in force, charges for pages are accounted against the
+caller of swapoff rather than the users of shmem.
+
+
 2.4 Reclaim
 
 Each cgroup maintains a per cgroup LRU that consists of an active