Re: [PATCH] mm: workingset: clarify eviction order and distance calculation

2021-02-11 Thread Oscar Salvador
On Thu, Feb 11, 2021 at 10:26:45PM +0100, Oscar Salvador wrote: > Hi Andrew, > > is this on your radar? Please, disregard this, I was obviously blind as I did not spot it in mmotm. > > Thanks! > > -- > Oscar Salvador > SUSE L3 > -- Oscar Salvador SUSE L3

Re: [PATCH] mm: workingset: clarify eviction order and distance calculation

2021-02-11 Thread Oscar Salvador
On Mon, Feb 01, 2021 at 07:06:51AM +0100, Oscar Salvador wrote: > The premise of the refault distance is that it can be seen as a deficit > of the inactive list space, so that if the inactive list would have had > (R - E) more slots, the page would not have been evicted but promoted > to the

Re: [PATCH] mm: workingset: clarify eviction order and distance calculation

2021-02-01 Thread Vlastimil Babka
On 2/1/21 7:06 AM, Oscar Salvador wrote: > The premise of the refault distance is that it can be seen as a deficit > of the inactive list space, so that if the inactive list would have had > (R - E) more slots, the page would not have been evicted but promoted > to the active list instead. > >

[PATCH] mm: workingset: clarify eviction order and distance calculation

2021-01-31 Thread Oscar Salvador
The premise of the refault distance is that it can be seen as a deficit of the inactive list space, so that if the inactive list would have had (R - E) more slots, the page would not have been evicted but promoted to the active list instead. However, the way the code is ordered right now set us