Re: shrink_mmap() change in ac-21

From: Rik van Riel (riel@conectiva.com.br)
Date: Mon Jun 19 2000 - 16:07:34 EST


On 19 Jun 2000, 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.
>
> For example, check the "vmstat 1" output below, done while I was
> reading a big file from the disk. At some point in time, the page
> cache shrunk to almost half of its size (75MB -> 42MB).
>
> The reason is balancing of the DMA zone (which is much smaller on a
> 128MB machine than the NORMAL zone!). shrink_mmap() now happily evicts
> wrong pages from the memory and continues doing so until it finally
> frees enough pages from the DMA zone. That, of course, hurts caching
> as the page cache gets shrunk a lot without a good reason.

I already suspected this could happen.

/me looks at quintela

Juan, didn't you and Roger have a patch to solve this? ;)
(I think quintela and roger already have a patch so I'll save
writing one myself)

regards,

Rik

--
The Internet is not a network of computers. It is a network
of people. That is its real strength.

Wanna talk about the kernel? irc.openprojects.net / #kernelnewbies http://www.conectiva.com/ http://www.surriel.com/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:17 EST