Re: [PATCH v1 3/5] mm: VM can be aware of zram fullness

2014-09-24 Thread Dan Streetman
On Wed, Sep 24, 2014 at 9:06 PM, Minchan Kim wrote: > On Wed, Sep 24, 2014 at 10:12:18AM -0400, Dan Streetman wrote: >> On Sun, Sep 21, 2014 at 8:03 PM, Minchan Kim wrote: >> > VM uses nr_swap_pages to throttle amount of swap when it reclaims >> > anonymous pages because the nr_swap_pages means f

Re: [PATCH v1 3/5] mm: VM can be aware of zram fullness

2014-09-24 Thread Minchan Kim
On Wed, Sep 24, 2014 at 10:12:18AM -0400, Dan Streetman wrote: > On Sun, Sep 21, 2014 at 8:03 PM, Minchan Kim wrote: > > VM uses nr_swap_pages to throttle amount of swap when it reclaims > > anonymous pages because the nr_swap_pages means freeable space > > of swap disk. > > > > However, it's a pr

Re: [PATCH v1 3/5] mm: VM can be aware of zram fullness

2014-09-24 Thread Dan Streetman
On Sun, Sep 21, 2014 at 8:03 PM, Minchan Kim wrote: > VM uses nr_swap_pages to throttle amount of swap when it reclaims > anonymous pages because the nr_swap_pages means freeable space > of swap disk. > > However, it's a problem for zram because zram can limit memory > usage by knob(ie, mem_limit)