Re: [RFC 2/3] mm: add swap_get_free hint for zram

2014-09-17 Thread Minchan Kim
On Tue, Sep 16, 2014 at 11:09:43AM -0400, Dan Streetman wrote: > On Mon, Sep 15, 2014 at 8:33 PM, Minchan Kim wrote: > > On Mon, Sep 15, 2014 at 10:53:01AM -0400, Dan Streetman wrote: > >> On Sun, Sep 14, 2014 at 8:30 PM, Minchan Kim wrote: > >> > On Sat, Sep 13, 2014 at 03:01:47PM -0400, Dan Str

Re: [RFC 2/3] mm: add swap_get_free hint for zram

2014-09-16 Thread Dan Streetman
On Mon, Sep 15, 2014 at 8:33 PM, Minchan Kim wrote: > On Mon, Sep 15, 2014 at 10:53:01AM -0400, Dan Streetman wrote: >> On Sun, Sep 14, 2014 at 8:30 PM, Minchan Kim wrote: >> > On Sat, Sep 13, 2014 at 03:01:47PM -0400, Dan Streetman wrote: >> >> On Wed, Sep 3, 2014 at 9:39 PM, Minchan Kim wrote:

Re: [RFC 2/3] mm: add swap_get_free hint for zram

2014-09-15 Thread Minchan Kim
On Mon, Sep 15, 2014 at 10:53:01AM -0400, Dan Streetman wrote: > On Sun, Sep 14, 2014 at 8:30 PM, Minchan Kim wrote: > > On Sat, Sep 13, 2014 at 03:01:47PM -0400, Dan Streetman wrote: > >> On Wed, Sep 3, 2014 at 9:39 PM, Minchan Kim wrote: > >> > VM uses nr_swap_pages as one of information when i

Re: [RFC 2/3] mm: add swap_get_free hint for zram

2014-09-15 Thread Dan Streetman
On Sun, Sep 14, 2014 at 8:30 PM, Minchan Kim wrote: > On Sat, Sep 13, 2014 at 03:01:47PM -0400, Dan Streetman wrote: >> On Wed, Sep 3, 2014 at 9:39 PM, Minchan Kim wrote: >> > VM uses nr_swap_pages as one of information when it does >> > anonymous reclaim so that VM is able to throttle amount of

Re: [RFC 2/3] mm: add swap_get_free hint for zram

2014-09-14 Thread Minchan Kim
On Sat, Sep 13, 2014 at 03:01:47PM -0400, Dan Streetman wrote: > On Wed, Sep 3, 2014 at 9:39 PM, Minchan Kim wrote: > > VM uses nr_swap_pages as one of information when it does > > anonymous reclaim so that VM is able to throttle amount of swap. > > > > Normally, the nr_swap_pages is equal to free

Re: [RFC 2/3] mm: add swap_get_free hint for zram

2014-09-13 Thread Dan Streetman
On Wed, Sep 3, 2014 at 9:39 PM, Minchan Kim wrote: > VM uses nr_swap_pages as one of information when it does > anonymous reclaim so that VM is able to throttle amount of swap. > > Normally, the nr_swap_pages is equal to freeable space of swap disk > but for zram, it doesn't match because zram can

[RFC 2/3] mm: add swap_get_free hint for zram

2014-09-03 Thread Minchan Kim
VM uses nr_swap_pages as one of information when it does anonymous reclaim so that VM is able to throttle amount of swap. Normally, the nr_swap_pages is equal to freeable space of swap disk but for zram, it doesn't match because zram can limit memory usage by knob(ie, mem_limit) so although VM can