Re: Free memory starvation in a zone?

Mike Galbraith (mikeg@wen-online.de)
Sat, 4 Aug 2001 08:02:23 +0200 (CEST)


On Sat, 4 Aug 2001, Rik van Riel wrote:

> On Sat, 4 Aug 2001, Mike Galbraith wrote:
>
> > > Are you sure you're seeing kreclaimd looping too much here ?
> >
> > Snippet from one of Dirk's logs.
> >
> > PID PPID USER PRI SIZE SWAP RSS SHARE D STAT %CPU %MEM TIME COMMA
> > 3 1 root 20 0 0 0 0 0 RW 58.8 0.0 2:41 kswapd
> > 1494 1421 novatest 15 2009M 640M 1.3G 51476 0M R N 40.8 34.5 6:26 ceqsim
> > 1751 1747 root 14 1048 4 1044 824 55 R 28.0 0.0 0:02 top
> > 4 1 root 14 0 0 0 0 0 SW 27.1 0.0 1:06 krecla
>
> I'm pretty sure this is because kreclaimd is woken up from
> __alloc_pages() all the time and cannot find anything useful
> to do ...

Yes, it could be bouncing (eg) referenced pages instead of looping.

In any case though, seems it would it be better to take locks, evaluate
once and free in batch. With the possibility to bounce off of locks,
it does look like looping is possible (if unlikely). Just picking a
quantity and freeing it instead of reevaluating constantly would close
off that possibility without batch freeing.

-Mike

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