On Fri 16-08-24 07:48:01, gaoxu wrote: > Replace lruvec_add_folio with lruvec_add_folio_tail in the lru_lazyfree_fn: > 1. The lazy-free folio is added to the LRU_INACTIVE_FILE list. If it's > moved to the LRU tail, it allows for faster release lazy-free folio and > reduces the impact on file refault. This has been discussed when MADV_FREE was introduced. The question was whether this memory has a lower priority than other inactive memory that has been marked that way longer ago. Also consider several MADV_FREE users should they be LIFO from the reclaim POV? -- Michal Hocko SUSE Labs