On Tue, 11 Mar 2014 08:24:42 -0700 Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx> wrote: > On 03/11/2014 07:06 AM, Michal Hocko wrote: > >> > In our implementation pages marked with the NoReuse flag are added to > >> > the tail of the LRU list the first time they are read. Therefore they > >> > are the first to be reclaimed. > > page flags are really scarce and I am not sure this is the best usage of > > the few remaining slots. > > Yeah, especially since the use so so transient. Yes, we're short on page flags. > This also looks to ignore the reuse flag for existing pages. And it sets PG_noreuse on new pages whether or not they were within the fadvise range (offset...offset+len). It's not really an fadvise operation at all. A practical implementation might go through the indicated pages, clear any referenced bits and move them to the tail of the inactive LRU? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>