Re: [PATCH 4/4] mm: Add PGREUSE counter

2020-08-23 Thread Peter Xu
On Sat, Aug 22, 2020 at 09:14:53AM -0700, Linus Torvalds wrote: > On Fri, Aug 21, 2020 at 4:50 PM Peter Xu wrote: > > > > This accounts for wp_page_reuse() case, where we reused a page for COW. > > If we do this, wouldn't it make more sense to also count the COW case > to see how they match up?

Re: [PATCH 4/4] mm: Add PGREUSE counter

2020-08-22 Thread Linus Torvalds
On Fri, Aug 21, 2020 at 4:50 PM Peter Xu wrote: > > This accounts for wp_page_reuse() case, where we reused a page for COW. If we do this, wouldn't it make more sense to also count the COW case to see how they match up? Right now we count faults and major faults. So as a result you can can calcu