Page cache ageing: yae or nae? (fwd)
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
Quoted 7 lines · Andrea Arcangeli
Quoted 3 lines
It _does_ throw unused pages out, by making it far easier to age pages. I thought that was what we wanted: is 2.0 performing badly for you? Is this behaviour that bad?
Bingo! After some minutes of testing seems work very well! I think we need this patch. The swapin/swapout seems avoided. Please Stephen forward your patch to Linus. I rediffed it since it doesn' t apply clean to 115.
Any other comments? Please? We are getting VERY close to 2.2, and we need to have this resolved one way or the other. This patch works well for me in all cases, but I really need to know if there are other cases where the page cache ageing wins other than the readahead streaming.
--Stephen
----------------------------------------------------------------
mm/filemap.c renamed from mm/filemap.c.orig +5 -2
@@ -172,10 +172,12 @@break ; }age_page (page); +#if 0 if (page->age)break ;if (page_cache_size *100 < (page_cache.min_percent * num_physpages))break ; +#endif if (PageSwapCache (page)) {delete_from_swap_cache (page);return 1 ;
@@ -211,8 +213,8 @@struct page * page;int count_max, count_min; - count_max = (limit<<2 ) >> (priority>>1 ); - count_min = (limit<<2 ) >> (priority); + count_max = (limit<<1 ) >> (priority>>1 ); + count_min = (limit<<1 ) >> (priority); page = mem_map + clock; do {
@@ -327,6 +329,7 @@*/ page = mem_map +MAP_NR (page_cache);add_to_page_cache (page, inode, offset, hash); +set_bit (PG_referenced, &page->flags); inode->i_op->readpage (file, page); page_cache =0 ; }
----------------------------------------------------------------
--
This is a majordomo managed list. To unsubscribe, send a message with the body 'unsubscribe linux-mm me@address' to: [email protected]