RE: [PATCH 1/1] kernel/sysctl.c: Add /proc/sys/vm/shrink_memory feature

2015-07-07 Thread PINTU KUMAR
.@kvack.org; linux- > p...@vger.kernel.org; c...@samsung.com; pintu_agar...@yahoo.com; > vishnu...@samsung.com; rohit...@samsung.com; iqbal@samsung.com > Subject: Re: [PATCH 1/1] kernel/sysctl.c: Add /proc/sys/vm/shrink_memory > feature > > On 2015/7/6 22:03, PINTU KUMAR wrote: >

Re: [PATCH 1/1] kernel/sysctl.c: Add /proc/sys/vm/shrink_memory feature

2015-07-06 Thread Xishi Qiu
com; vinme...@codeaurora.org; linux- >> d...@vger.kernel.org; linux-kernel@vger.kernel.org; linux...@kvack.org; >> linux- >> p...@vger.kernel.org; c...@samsung.com; pintu_agar...@yahoo.com; >> vishnu...@samsung.com; rohit...@samsung.com; iqbal@samsung.com >> Subjec

Re: [PATCH 1/1] kernel/sysctl.c: Add /proc/sys/vm/shrink_memory feature

2015-07-06 Thread Pintu Kumar
Hi, Please find my comments inline. > Sent: Saturday, 4 July 2015 6:25 PM > Subject: Re: [PATCH 1/1] kernel/sysctl.c: Add /proc/sys/vm/shrink_memory > feature > > On Sat, Jul 04, 2015 at 06:04:37AM +, PINTU KUMAR wrote: >> >On Fri, Jul 03, 2015 at 06:50:07PM

Re: [PATCH 1/1] kernel/sysctl.c: Add /proc/sys/vm/shrink_memory feature

2015-07-06 Thread Pintu Kumar
@vger.kernel.org; linux-kernel@vger.kernel.org; linux...@kvack.org; > linux...@vger.kernel.org; c...@samsung.com; pintu_agar...@yahoo.com; > vishnu...@samsung.com; rohit...@samsung.com; iqbal@samsung.com > Sent: Sunday, 5 July 2015 1:38 AM > Subject: Re: [PATCH 1/1] kernel/sysctl.c

RE: [PATCH 1/1] kernel/sysctl.c: Add /proc/sys/vm/shrink_memory feature

2015-07-06 Thread PINTU KUMAR
.@kvack.org; linux- > p...@vger.kernel.org; c...@samsung.com; pintu_agar...@yahoo.com; > vishnu...@samsung.com; rohit...@samsung.com; iqbal@samsung.com > Subject: Re: [PATCH 1/1] kernel/sysctl.c: Add /proc/sys/vm/shrink_memory > feature > > On 2015/7/3 21:20, Pintu Kumar wrote: >

RE: [PATCH 1/1] kernel/sysctl.c: Add /proc/sys/vm/shrink_memory feature

2015-07-06 Thread PINTU KUMAR
; p...@vger.kernel.org > Cc: c...@samsung.com; pintu_agar...@yahoo.com; vishnu...@samsung.com; > rohit...@samsung.com; iqbal@samsung.com > Subject: Re: [PATCH 1/1] kernel/sysctl.c: Add /proc/sys/vm/shrink_memory > feature > > On 03.07.2015 15:20, Pintu Kumar wrote: > > This pa

Re: [PATCH 1/1] kernel/sysctl.c: Add /proc/sys/vm/shrink_memory feature

2015-07-06 Thread Xishi Qiu
On 2015/7/3 21:20, Pintu Kumar wrote: > This patch provides 2 things: > 1. Add new control called shrink_memory in /proc/sys/vm/. > This control can be used to aggressively reclaim memory system-wide > in one shot from the user space. A value of 1 will instruct the > kernel to reclaim as much as t

Re: [PATCH 1/1] kernel/sysctl.c: Add /proc/sys/vm/shrink_memory feature

2015-07-05 Thread Johannes Weiner
On Sat, Jul 04, 2015 at 06:04:37AM +, PINTU KUMAR wrote: > >On Fri, Jul 03, 2015 at 06:50:07PM +0530, Pintu Kumar wrote: > >> This patch provides 2 things: > >> 1. Add new control called shrink_memory in /proc/sys/vm/. > >> This control can be used to aggressively reclaim memory system-wide > >

Re: [PATCH 1/1] kernel/sysctl.c: Add /proc/sys/vm/shrink_memory feature

2015-07-05 Thread Valdis . Kletnieks
On Fri, 03 Jul 2015 18:50:07 +0530, Pintu Kumar said: > This patch provides 2 things: > 2. Enable shrink_all_memory API in kernel with new CONFIG_SHRINK_MEMORY. > Currently, shrink_all_memory function is used only during hibernation. > With the new config we can make use of this API for non-hibern

Re: [PATCH 1/1] kernel/sysctl.c: Add /proc/sys/vm/shrink_memory feature

2015-07-03 Thread Johannes Weiner
On Fri, Jul 03, 2015 at 06:50:07PM +0530, Pintu Kumar wrote: > This patch provides 2 things: > 1. Add new control called shrink_memory in /proc/sys/vm/. > This control can be used to aggressively reclaim memory system-wide > in one shot from the user space. A value of 1 will instruct the > kernel t

Re: [PATCH 1/1] kernel/sysctl.c: Add /proc/sys/vm/shrink_memory feature

2015-07-03 Thread Heinrich Schuchardt
On 03.07.2015 15:20, Pintu Kumar wrote: > This patch provides 2 things: > 1. Add new control called shrink_memory in /proc/sys/vm/. > This control can be used to aggressively reclaim memory system-wide > in one shot from the user space. A value of 1 will instruct the > kernel to reclaim as much as

[PATCH 1/1] kernel/sysctl.c: Add /proc/sys/vm/shrink_memory feature

2015-07-03 Thread Pintu Kumar
This patch provides 2 things: 1. Add new control called shrink_memory in /proc/sys/vm/. This control can be used to aggressively reclaim memory system-wide in one shot from the user space. A value of 1 will instruct the kernel to reclaim as much as totalram_pages in the system. Example: echo 1 > /p