Re: [PATCH 0/4] Reclaim page capture v3

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nick Piggin
Date: Tuesday, September 9, 2008 - 8:19 pm

On Wednesday 10 September 2008 02:35, Andy Whitcroft wrote:


Allocations from reclaim should be pretty rare, I think you're too
worried about them.

Actually, if you have queueing, you can do a simple form of capture
just in the targetted reclaim path without all the stuff added to page
alloc etc. Because you can hold off from freeing the targetted pages
into the page allocator until you have built up a large number of them.
That way, they won't be subject to recursive allocations and they will
coalesce in the allocator; the queueing will ensure they don't get
stolen or broken into smaller pages under us. Yes I really think queueing
(perhaps with a much simplified form of capture) is the way to go.



And I've shown that by a principle of fairness, you don't need to protect
just one area, but you can hold off reclaim on all areas, which should
greatly increase your chances of getting a hugepage, and will allow you
to do so fairly.



Queueing is a general and natural step which (hopefully) benefits everyone,
so I think it should be tried before capture (which introduces new complexity
solely for big allocations).



Yes they are orthogonal, but I would like to see if we can do without
page capture. I'm not saying the theory or practice of it is wrong.



For order-2,3 etc allocations that can be commonly used by the kernel but
are not always in large supply, that fairness model doesn't really work.
You can work to free things, then have another process allocate them, then
exit direct reclaim to find none left etc.

Even for order-0 pages there is a problem in theory (although statistically
it probably evens out much better).



Yes.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] Reclaim page capture v3, Andy Whitcroft, (Fri Sep 5, 3:19 am)
Re: [PATCH 0/4] Reclaim page capture v3, Nick Piggin, (Sun Sep 7, 11:08 pm)
Re: [PATCH 0/4] Reclaim page capture v3, Andy Whitcroft, (Mon Sep 8, 4:44 am)
Re: [PATCH 0/4] Reclaim page capture v3, Nick Piggin, (Mon Sep 8, 6:59 am)
Re: [PATCH 0/4] Reclaim page capture v3, Andy Whitcroft, (Mon Sep 8, 9:41 am)
Re: [PATCH 0/4] Reclaim page capture v3, Nick Piggin, (Mon Sep 8, 8:31 pm)
Re: [PATCH 0/4] Reclaim page capture v3, Andy Whitcroft, (Tue Sep 9, 9:35 am)
Re: [PATCH 0/4] Reclaim page capture v3, Nick Piggin, (Tue Sep 9, 8:19 pm)
Re: [PATCH 0/4] Reclaim page capture v3, Andy Whitcroft, (Tue Sep 9, 11:56 pm)
Re: [PATCH 0/4] Reclaim page capture v3, Andy Whitcroft, (Fri Sep 12, 2:30 pm)