I am trying to use the Linux Kernel's cgroup Memory Resource Controller for our Android HW. Currently I enabled the kernel options: - CONFIG_CGROUPS - CONFIG_RESOURCE_COUNTERS - CONFIG_CGROUP_MEM_RES_CTLR
Thereafter I was able to mount the memory cgroup and I also placed some constraints on a newly created group. Then I added some value to memory.limit_in_bytes and started some new processes that where added to the group's "tasks" file. But every time I check the group's memory.usage_in_bytes value it reports 0. The memory layout of our HW looks like this: # cat /proc/meminfo MemTotal: 431952 kB MemFree: 232788 kB Buffers: 5236 kB Cached: 93512 kB SwapCached: 0 kB Active: 91424 kB Inactive: 76064 kB Active(anon): 69228 kB Inactive(anon): 0 kB Active(file): 22196 kB Inactive(file): 76064 kB Unevictable: 0 kB Mlocked: 0 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 431952 kB LowFree: 232788 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 0 kB Writeback: 0 kB AnonPages: 68752 kB Mapped: 43776 kB Slab: 7228 kB SReclaimable: 3048 kB SUnreclaim: 4180 kB PageTables: 7464 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 215976 kB Committed_AS: 2713716 kB VmallocTotal: 401408 kB VmallocUsed: 108384 kB VmallocChunk: 278524 kB Does the Memory Resource Controller not work with low memory? When I do the same steps on my Ubuntu machine it works great. -- unsubscribe: [email protected] website: http://groups.google.com/group/android-kernel
