Re: [PATCH] mm: pagevec: cleanup: drop pvec->cold argument in all places

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 30 Sep 2013, Andrew Morton wrote:

> > Nobody uses the pvec->cold argument of pagevec and it's also unreasonable for
> > pages in pagevec released as cold page, so drop the cold argument from pagevec.
> 
> Is it unreasonable?  I'd say it's unreasonable to assume that all pages
> in all cases are likely to be cache-hot.  Example: what if the pages
> are being truncated and were found to be on the inactive LRU,
> unreferenced?
> 
> A useful exercise would be to go through all those pagevec_init() sites
> and convince ourselves that the decision at each place was the correct
> one.
> 

Agreed, and the "cold" argument to release_pages() becomes a no-op if this 
patch is merged meaning that anything released through it will 
automatically go to the start of the pcp lists.  If the pages aren't hot 
then this is exactly the opposite of what we wanted to do; the fact that 
the pvec length doesn't take into account the size of cpu cache can almost 
guarantee that everything isn't cache hot.

--
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>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]