Re: mm: pages are not freed from lru_add_pvecs after process termination

From: Vlastimil Babka
Date: Mon May 02 2016 - 11:13:49 EST


On 05/02/2016 05:01 PM, Kirill A. Shutemov wrote:
On Mon, May 02, 2016 at 04:39:35PM +0200, Vlastimil Babka wrote:
On 04/27/2016 07:11 PM, Dave Hansen wrote:
6. Perhaps don't use the LRU pagevecs for large pages. It limits the
severity of the problem.

I think that makes sense. Being large already amortizes the cost per base
page much more than pagevecs do (512 vs ~22 pages?).

We try to do this already, don't we? Any spefic case where we have THPs on
pagevecs?

For example like this?
__do_huge_pmd_anonymous_page
lru_cache_add_active_or_unevictable
lru_cache_add