HI Lew:
Now we don't use lmkd to manage memory.
We use M version!
Thanks

On Thursday, September 10, 2015 at 1:06:29 AM UTC+8, Hiram Lew wrote:
>
> What version of Android are you referring to? I ask because a new memory 
> management daemon was added in Lollipop which uses memory cgroups -- 
> particularly memory pressure events. Older versions below 5.0 used the 
> kernel-land lowmemorykiller which did not use memory cgroups.
>
> On Tuesday, September 8, 2015 at 3:42:22 PM UTC-7, Zhao Junmin wrote:
>>
>> From android version, we see that Android plan to use memory cgroup to 
>> manage process.
>>
>> In system/core/rootdir/init.rc
>>
>>     # Create cgroup mount point for memory
>>     mount tmpfs none /sys/fs/cgroup mode=0750,uid=0,gid=1000
>>     mkdir /sys/fs/cgroup/memory 0750 root system
>>     mount cgroup none /sys/fs/cgroup/memory memory
>>     write /sys/fs/cgroup/memory/memory.move_charge_at_immigrate 1
>>     chown root system /sys/fs/cgroup/memory/tasks
>>     chmod 0660 /sys/fs/cgroup/memory/tasks
>>     mkdir /sys/fs/cgroup/memory/sw 0750 root system
>>     write /sys/fs/cgroup/memory/sw/memory.swappiness 100
>>     write /sys/fs/cgroup/memory/sw/memory.move_charge_at_immigrate 1
>>     chown root system /sys/fs/cgroup/memory/sw/tasks
>>     chmod 0660 /sys/fs/cgroup/memory/sw/tasks
>>
>>
>> why Nexus or Samsung don't enable CONFIG_MEMCG=y feature in kernel?
>>
>>
>>

-- 
-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel
--- 
You received this message because you are subscribed to the Google Groups 
"Android Linux Kernel Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-kernel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to