Re: [PATCH 1/4] mm: Move recent_rotated pages calculation to shrink_inactive_list()

2019-02-14 Thread Kirill Tkhai
On 13.02.2019 20:33, Daniel Jordan wrote: > On Tue, Feb 12, 2019 at 06:14:00PM +0300, Kirill Tkhai wrote: >> Currently, struct reclaim_stat::nr_activate is a local variable, >> used only in shrink_page_list(). This patch introduces another >> local variable pgactivate to use instead of it, and reus

Re: [PATCH 1/4] mm: Move recent_rotated pages calculation to shrink_inactive_list()

2019-02-13 Thread Daniel Jordan
On Tue, Feb 12, 2019 at 06:14:00PM +0300, Kirill Tkhai wrote: > Currently, struct reclaim_stat::nr_activate is a local variable, > used only in shrink_page_list(). This patch introduces another > local variable pgactivate to use instead of it, and reuses > nr_activate to account number of active pa

[PATCH 1/4] mm: Move recent_rotated pages calculation to shrink_inactive_list()

2019-02-12 Thread Kirill Tkhai
Currently, struct reclaim_stat::nr_activate is a local variable, used only in shrink_page_list(). This patch introduces another local variable pgactivate to use instead of it, and reuses nr_activate to account number of active pages. Note, that we need nr_activate to be an array, since type of pag