[lkml]   [2001]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: mm question

On Mon, 10 Dec 2001, Alan Cox wrote:

> > > This makes it rather hard to go around trying to free pages
> > > within a certain physical range.
> >
> > Well, what does kernel do when it runs out of memory ? For example when I
> > mmap a large file and start reading it back and force ?
> It doesn't care which physical page it gets. Processes being freeing
> up/swapping pages they have mappings to. The map counts hit zero and the
> page is discarded.

Right, but instead of trying to balance cache available memory and swap
my swapper will only be concerned whether the page can be evicted and
whether it is from the address range I want.

The scheme is like:

open -> request buffer allocation -> start region_swapper ->
-> wait for freed memory to accumulate and reserve as it appears ->
-> when enough is available stop swapper and declare allocation finished

Vladimir Dergachev

> Alan

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:18    [W:0.109 / U:1.840 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site