[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-mm
Subject: Re: [PATCH] __alloc_pages_limit pages_min
From: Rik van Riel <riel () conectiva ! com ! br>
Date: 2001-08-22 21:10:52
[Download RAW message or body]
On Wed, 22 Aug 2001, Roger Larsson wrote:
> On Wednesdayen den 22 August 2001 19:01, Rik van Riel wrote:
> > On Wed, 22 Aug 2001, Roger Larsson wrote:
> > > Note: reclaim_page will fix this situation direct it is allowed to
> > > run since it is kicked in __alloc_pages. But since we cannot
> > > guarantee that this will never happen...
> >
> > In this case kreclaimd will be woken up and the free pages
> > will be refilled.
>
> Yes it will be woken up - but when will it actually do something?
> And this limit at the end of alloc_pages
> if (z->free_pages < z->pages_min / 4 &&
> !(current->flags & PF_MEMALLOC))
> is not enforced earlier in the same code...
Please read the code. The first loop in __alloc_pages(),
before we even call __alloc_pages_limit() will wake up
kreclaimd as soon as 'z->free_pages < z->pages_min'.
If you have any more questions about the source code,
don't hesitate to ask ;)
Rik
--
IA64: a worthy successor to the i860.
http://www.surriel.com/
http://www.conectiva.com/ http://distro.conectiva.com/
--
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/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic