Re: [V2] android: binder: use VM_ALLOC to get vm area

2017-02-09 Thread Ganesh Mahendran
Hi, Greg: 2017-02-09 18:17 GMT+08:00 Greg KH <gre...@linuxfoundation.org>: > On Thu, Feb 09, 2017 at 05:54:03PM +0800, Ganesh Mahendran wrote: >> A gentle ping. > > I don't see a patch here that can be accepted, what are you asking for > a response from? I se

Re: [V2] android: binder: use VM_ALLOC to get vm area

2017-02-09 Thread Ganesh Mahendran
A gentle ping. Thanks. 2016-11-15 21:18 GMT+08:00 Ganesh Mahendran <opensource.gan...@gmail.com>: > Hi, Greg > > 2016-11-15 18:18 GMT+08:00 Greg KH <gre...@linuxfoundation.org>: >> On Tue, Nov 15, 2016 at 05:55:39PM +0800, Ganesh Mahendran wrote: >>> VM_IOREMA

Re: [V2] android: binder: use VM_ALLOC to get vm area

2016-11-15 Thread Ganesh Mahendran
Hi, Greg 2016-11-15 18:18 GMT+08:00 Greg KH <gre...@linuxfoundation.org>: > On Tue, Nov 15, 2016 at 05:55:39PM +0800, Ganesh Mahendran wrote: >> VM_IOREMAP is used to access hardware through a mechanism called >> I/O mapped memory. Android binder is a IPC machanism which w

[V2] android: binder: use VM_ALLOC to get vm area

2016-11-15 Thread Ganesh Mahendran
beforeafter average iterations per sec: 11199.9 11886.9 No performance regression found throgh binder test. Signed-off-by: Ganesh Mahendran <opensource.gan...@gmail.com> --- drivers/android/binder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/an

Re: [PATCH] android: binder: use VM_ALLOC to get vm area.

2016-09-05 Thread Ganesh Mahendran
2016-09-02 3:59 GMT+08:00 Arve Hjønnevåg <a...@android.com>: > On Thu, Sep 1, 2016 at 12:02 PM, Greg KH <gre...@linuxfoundation.org> wrote: >> On Thu, Sep 01, 2016 at 02:41:04PM +0800, Ganesh Mahendran wrote: >>> VM_IOREMAP is used to access hardware through a m

Re: [PATCH] android: binder: use VM_ALLOC to get vm area.

2016-09-05 Thread Ganesh Mahendran
Hi, Greg: 2016-09-02 3:02 GMT+08:00 Greg KH <gre...@linuxfoundation.org>: > On Thu, Sep 01, 2016 at 02:41:04PM +0800, Ganesh Mahendran wrote: >> VM_IOREMAP is used to access hardware through a mechanism called >> I/O mapped memory. Android binder is a IPC machanism which w

[PATCH] android: binder: use VM_ALLOC to get vm area.

2016-09-01 Thread Ganesh Mahendran
EMAP) align = 1ul << clamp_t(int, fls_long(size), PAGE_SHIFT, IOREMAP_MAX_ORDER); ... } This patch use VM_ALLOC to get vm area. Signed-off-by: Ganesh Mahendran <opensource.gan...@gmail.com> --- drivers/android/binder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: [PATCH 2/3] staging: lowmemorykiller: count anon pages only when we have swap devices

2016-06-30 Thread Ganesh Mahendran
2016-06-23 16:42 GMT+08:00 Sergey Senozhatsky <sergey.senozhatsky.w...@gmail.com>: > On (06/22/16 11:27), Ganesh Mahendran wrote: > [..] >> > > Signed-off-by: Ganesh Mahendran <opensource.gan...@gmail.com> >> > > --- >> > > drivers/staging

Re: [PATCH 3/3] staging: lowmemorykiller: select the task with maximum rss to kill

2016-06-21 Thread Ganesh Mahendran
Hi, David: On Tue, Jun 21, 2016 at 01:14:36PM -0700, David Rientjes wrote: > On Tue, 21 Jun 2016, Ganesh Mahendran wrote: > > > Current task selecting logic in LMK does not fully aware of the memory > > pressure. It may select the task with maximum score adj, but with

Re: [PATCH 2/3] staging: lowmemorykiller: count anon pages only when we have swap devices

2016-06-21 Thread Ganesh Mahendran
Hi, David: On Tue, Jun 21, 2016 at 01:22:00PM -0700, David Rientjes wrote: > On Tue, 21 Jun 2016, Ganesh Mahendran wrote: > > > lowmem_count() should only count anon pages when we have swap device. > > > > Why? I make a mistake. I thought lowmem_count will re

[PATCH 3/3] staging: lowmemorykiller: select the task with maximum rss to kill

2016-06-20 Thread Ganesh Mahendran
, tasksize 1M Current LMK logic will select *task b*. But now the system already have much memory pressure. We should select the task with maximum task from all the tasks which score adj >= min_score_adj. Signed-off-by: Ganesh Mahendran <opensource.gan...@gmail.com> --- drivers/stagin

[PATCH 2/3] staging: lowmemorykiller: count anon pages only when we have swap devices

2016-06-20 Thread Ganesh Mahendran
lowmem_count() should only count anon pages when we have swap device. Signed-off-by: Ganesh Mahendran <opensource.gan...@gmail.com> --- drivers/staging/android/lowmemorykiller.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/staging/a

[PATCH 1/3] staging: lowmemorykiller: change lowmem_adj to lowmem_score_adj

2016-06-20 Thread Ganesh Mahendran
continue; } --- This patch makes the variable name consistent with the usage. Signed-off-by: Ganesh Mahendran <opensource.gan...@gmail.com> --- drivers/staging/android/lowmemorykiller.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/drivers/