[android-kernel] Re: Android memory cgroup topic

2016-02-01 Thread Zhao Junmin
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 p

[android-kernel] Re: Binder checkpoint/restore

2016-01-31 Thread Zhao Junmin
Hi : you freeze the process ,some system callback by binder how to handle? Thanks On Friday, July 17, 2015 at 5:33:04 AM UTC+8, criu...@gmail.com wrote: > > We are trying to port CRIU to Android. Once of the challenges there is > Android binder (char) device, which takes care of IPC between pro

[android-kernel] why use barrier() in binder_mmap function?

2016-01-31 Thread Zhao Junmin
Hi All: Now I am reading binder code, buffer = proc->buffer; INIT_LIST_HEAD(&proc->buffers); list_add(&buffer->entry, &proc->buffers); buffer->free = 1; binder_insert_free_buffer(proc, buffer); proc->free_async_space = proc->buffer_size / 2; barrier(); proc->files = get_files_struct(current); p

[android-kernel] Android memory cgroup topic

2015-09-08 Thread Zhao Junmin
>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 /s