linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* vmscan-give-referenced-active-and-unmapped-pages-a-second-trip-around-the-lru.patch
@ 2008-10-08  5:55 Nick Piggin
  2008-10-08 10:03 ` vmscan-give-referenced-active-and-unmapped-pages-a-second-trip-around-the-lru.patch KOSAKI Motohiro
  0 siblings, 1 reply; 12+ messages in thread
From: Nick Piggin @ 2008-10-08  5:55 UTC (permalink / raw)
  To: Morton, Andrew, linux-mm

This patch, like I said when it was first merged, has the problem that
it can cause large stalls when reclaiming pages.

I actually myself tried a similar thing a long time ago. The problem is
that after a long period of no reclaiming, your file pages can all end
up being active and referenced. When the first guy wants to reclaim a
page, it might have to scan through gigabytes of file pages before being
able to reclaim a single one.

While it would be really nice to be able to just lazily set PageReferenced
and nothing else in mark_page_accessed, and then do file page aging based
on the referenced bit, the fact is that we virtually have O(1) reclaim
for file pages now, and this can make it much more like O(n) (in worst case,
especially).

I don't think it is right to say "we broke aging and this patch fixes it".
It's all a big crazy heuristic. Who's to say that the previous behaviour
wasn't better and this patch breaks it? :)

Anyway, I don't think it is exactly productive to keep patches like this in
the tree (that doesn't seem ever intended to be merged) while there are
other big changes to reclaim there.

Same for vm-dont-run-touch_buffer-during-buffercache-lookups.patch

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-10-12 13:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-08  5:55 vmscan-give-referenced-active-and-unmapped-pages-a-second-trip-around-the-lru.patch Nick Piggin
2008-10-08 10:03 ` vmscan-give-referenced-active-and-unmapped-pages-a-second-trip-around-the-lru.patch KOSAKI Motohiro
2008-10-10 22:17   ` vmscan-give-referenced-active-and-unmapped-pages-a-second-trip-around-the-lru.patch Andrew Morton
2008-10-10 22:25     ` vmscan-give-referenced-active-and-unmapped-pages-a-second-trip-around-the-lru.patch Andrew Morton
2008-10-10 22:33       ` vmscan-give-referenced-active-and-unmapped-pages-a-second-trip-around-the-lru.patch Andrew Morton
2008-10-10 23:59         ` vmscan-give-referenced-active-and-unmapped-pages-a-second-trip-around-the-lru.patch Rik van Riel
2008-10-11  1:42           ` vmscan-give-referenced-active-and-unmapped-pages-a-second-trip-around-the-lru.patch Andrew Morton
2008-10-11  1:53             ` vmscan-give-referenced-active-and-unmapped-pages-a-second-trip-around-the-lru.patch Rik van Riel
2008-10-11  2:21               ` vmscan-give-referenced-active-and-unmapped-pages-a-second-trip-around-the-lru.patch Andrew Morton
2008-10-11 20:46                 ` vmscan-give-referenced-active-and-unmapped-pages-a-second-trip-around-the-lru.patch Rik van Riel
2008-10-12 13:31                   ` vmscan-give-referenced-active-and-unmapped-pages-a-second-trip-around-the-lru.patch KOSAKI Motohiro
2008-10-10 23:56       ` vmscan-give-referenced-active-and-unmapped-pages-a-second-trip-around-the-lru.patch Rik van Riel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox