Rik van Riel wrote: > Nikita Danilov wrote: > >> Probably I am missing something, but I don't see how that can help. For >> example, suppose (for simplicity) that we have swappiness of 100%, and >> that fraction of referenced anon pages gets slightly less than of file >> pages. get_scan_ratio() increases anon_percent, and shrink_zone() starts >> scanning anon queue more aggressively. As a result, pages spend less >> time there, and have less chance of ever being accessed, reducing >> fraction of referenced anon pages further, and triggering further >> increase in the amount of scanning, etc. Doesn't this introduce positive >> feed-back loop? > > It's a possibility, but I don't think it will be much of an > issue in practice. > > If it is, we can always use refaults as a correcting > mechanism - which would have the added benefit of being > able to do streaming IO without putting any pressure on > the active list, essentially clock-pro replacement with > just some tweaks to shrink_list()... >
I think you're going to have to use refault rates. AIX 3.5 had to add that. Something like: if refault_rate(anonymous/mmap) > refault_rate(pagecache) drop a pagecache page else drop either You do have anonymous memory and mmapped executables in the same queue, right? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/