On Fri 14-03-14 16:52:38, Matthias Wirth wrote: [...] > The idea of the patch is to add pages from files with FMODE_NOREUSE at > the tail of the lru list. Therefore these pages are the first to be > reclaimed. We added add_to_page_cache_lru_tail and corresponding > functions, complementing add_to_page_cache_lru. If this is set before the read then you can end up trashing on those pages during heavy memory pressure I am afraid. Page would get reclaimed before the read gets to it. What you could do instead, I think, is to reclaim pages belonging to a FMODE_NOREUSE file away when they would be activated normally during reclaim. That would require tweaking page_check_references which implements used-once logic currently. -- Michal Hocko SUSE Labs -- 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>