Re: shrink_mmap() change in ac-21

Jamie Lokier
2000-06-19T21:46:27Z

Zlatko Calusic wrote:
> The shrink_mmap() change in your latest prepatch (ac12) doesn't look
> very healthy. Removing the test for the wrong zone we effectively
> discard lots of wrong pages before we get to the right one. That is
> effectively flushing the page cache and we have unbalanced system.

You know, there may be some sense in removing pages from the wrong zone,
if those wrong zones are quite full. If the DMA zone desparately needs
free pages and keeps needing them, isn't it good to encourage future
non-DMA allocations to use another zone? Removing pages from other
zones is one way to achieve that.

-- Jamie