Re: [patch 8/9] mm: thrash detection-based file cache sizing

2013-08-22 Thread Johannes Weiner
On Tue, Aug 20, 2013 at 01:59:20PM -0700, Andrew Morton wrote: > On Sat, 17 Aug 2013 15:31:22 -0400 Johannes Weiner wrote: > > > The VM maintains cached filesystem pages on two types of lists. One > > list holds the pages recently faulted into the cache, the other list > > holds pages that have

Re: [patch 8/9] mm: thrash detection-based file cache sizing

2013-08-22 Thread Johannes Weiner
On Tue, Aug 20, 2013 at 01:59:20PM -0700, Andrew Morton wrote: On Sat, 17 Aug 2013 15:31:22 -0400 Johannes Weiner han...@cmpxchg.org wrote: The VM maintains cached filesystem pages on two types of lists. One list holds the pages recently faulted into the cache, the other list holds pages

Re: [patch 8/9] mm: thrash detection-based file cache sizing

2013-08-20 Thread Andrew Morton
On Sat, 17 Aug 2013 15:31:22 -0400 Johannes Weiner wrote: > The VM maintains cached filesystem pages on two types of lists. One > list holds the pages recently faulted into the cache, the other list > holds pages that have been referenced repeatedly on that first list. > The idea is to prefer

Re: [patch 8/9] mm: thrash detection-based file cache sizing

2013-08-20 Thread Andrew Morton
On Sat, 17 Aug 2013 15:31:22 -0400 Johannes Weiner han...@cmpxchg.org wrote: The VM maintains cached filesystem pages on two types of lists. One list holds the pages recently faulted into the cache, the other list holds pages that have been referenced repeatedly on that first list. The idea

[patch 8/9] mm: thrash detection-based file cache sizing

2013-08-17 Thread Johannes Weiner
The VM maintains cached filesystem pages on two types of lists. One list holds the pages recently faulted into the cache, the other list holds pages that have been referenced repeatedly on that first list. The idea is to prefer reclaiming young pages over those that have shown to benefit from

[patch 8/9] mm: thrash detection-based file cache sizing

2013-08-17 Thread Johannes Weiner
The VM maintains cached filesystem pages on two types of lists. One list holds the pages recently faulted into the cache, the other list holds pages that have been referenced repeatedly on that first list. The idea is to prefer reclaiming young pages over those that have shown to benefit from

Re: [patch 8/9] mm: thrash detection-based file cache sizing

2013-08-12 Thread Johannes Weiner
Hello Vlastimil! On Sun, Aug 11, 2013 at 11:57:37PM +0200, Vlastimil Babka wrote: > On 08/07/2013 12:44 AM, Johannes Weiner wrote: > >To accomplish this, a per-zone counter is increased every time a page > >is evicted and a snapshot of that counter is stored as shadow entry in > >the page's now

Re: [patch 8/9] mm: thrash detection-based file cache sizing

2013-08-12 Thread Johannes Weiner
On Fri, Aug 09, 2013 at 03:49:43PM -0700, Andrew Morton wrote: > On Tue, 6 Aug 2013 18:44:09 -0400 Johannes Weiner wrote: > > > To accomplish this, a per-zone counter is increased every time a page > > is evicted and a snapshot of that counter is stored as shadow entry in > > the page's now

Re: [patch 8/9] mm: thrash detection-based file cache sizing

2013-08-12 Thread Johannes Weiner
On Fri, Aug 09, 2013 at 03:49:43PM -0700, Andrew Morton wrote: On Tue, 6 Aug 2013 18:44:09 -0400 Johannes Weiner han...@cmpxchg.org wrote: To accomplish this, a per-zone counter is increased every time a page is evicted and a snapshot of that counter is stored as shadow entry in the

Re: [patch 8/9] mm: thrash detection-based file cache sizing

2013-08-12 Thread Johannes Weiner
Hello Vlastimil! On Sun, Aug 11, 2013 at 11:57:37PM +0200, Vlastimil Babka wrote: On 08/07/2013 12:44 AM, Johannes Weiner wrote: To accomplish this, a per-zone counter is increased every time a page is evicted and a snapshot of that counter is stored as shadow entry in the page's now empty

Re: [patch 8/9] mm: thrash detection-based file cache sizing

2013-08-11 Thread Vlastimil Babka
On 08/07/2013 12:44 AM, Johannes Weiner wrote: To accomplish this, a per-zone counter is increased every time a page is evicted and a snapshot of that counter is stored as shadow entry in the page's now empty page cache radix tree slot. Upon refault of that page, the difference between the

Re: [patch 8/9] mm: thrash detection-based file cache sizing

2013-08-11 Thread Vlastimil Babka
On 08/07/2013 12:44 AM, Johannes Weiner wrote: To accomplish this, a per-zone counter is increased every time a page is evicted and a snapshot of that counter is stored as shadow entry in the page's now empty page cache radix tree slot. Upon refault of that page, the difference between the

Re: [patch 8/9] mm: thrash detection-based file cache sizing

2013-08-09 Thread Andrew Morton
On Tue, 6 Aug 2013 18:44:09 -0400 Johannes Weiner wrote: > To accomplish this, a per-zone counter is increased every time a page > is evicted and a snapshot of that counter is stored as shadow entry in > the page's now empty page cache radix tree slot. How do you handle wraparound of that

Re: [patch 8/9] mm: thrash detection-based file cache sizing

2013-08-09 Thread Andrew Morton
On Tue, 6 Aug 2013 18:44:09 -0400 Johannes Weiner han...@cmpxchg.org wrote: To accomplish this, a per-zone counter is increased every time a page is evicted and a snapshot of that counter is stored as shadow entry in the page's now empty page cache radix tree slot. How do you handle

[patch 8/9] mm: thrash detection-based file cache sizing

2013-08-06 Thread Johannes Weiner
The VM maintains cached filesystem pages on two types of lists. One list holds the pages recently faulted into the cache, the other list holds pages that have been referenced repeatedly on that first list. The idea is to prefer reclaiming young pages over those that have shown to benefit from

[patch 8/9] mm: thrash detection-based file cache sizing

2013-08-06 Thread Johannes Weiner
The VM maintains cached filesystem pages on two types of lists. One list holds the pages recently faulted into the cache, the other list holds pages that have been referenced repeatedly on that first list. The idea is to prefer reclaiming young pages over those that have shown to benefit from