linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Google's mm problem - not reproduced on 2.4.13
@ 2001-11-02 22:42 Ben Smith
  2001-11-03 22:53 ` Adaptec vs Symbios performance Stephan von Krawczynski
  0 siblings, 1 reply; 14+ messages in thread
From: Ben Smith @ 2001-11-02 22:42 UTC (permalink / raw)
  To: linux-kernel

> Anyway, I posted a suggested patch that should fix the behaviour, but it
> doesn't fix the fundamental problem with locking the wrong kinds of
> pages (ie you're definitely on your own if you happen to lock down most

> of the low 1GB of an intel machine).


I've tried the patch you sent and it doesn't help. I applied the patch 
to 2.4.13-pre7 and it hung the machine in the same way (ctrl-alt-del 
didn't work). The last few lines of vmstat before the machine hung look 
like this:
  0  1  0      0 133444   5132 3367312   0   0 31196     0 1121  2123 
0   6  94
  0  1  0      0  63036   5216 3435920   0   0 34338    14 1219  2272 
0   5  95
  2  0  1      0   6156   1828 3494904   0   0 31268     0 1130  2198 
0  23  77
  1  0  1      0   3596    864 3498488   0   0  2720    16 1640  1068 
0  88  12


> It would be interesting to hear whether that is equally true in the new
> VM that doesn't necessarily page stuff out unless it can show that the
> memory pressure is actually from VM mappings.
> 
> How big is your mlock area during real load? Still the "max the kernel
> will allow"? Or is that just a benchmark/test kind of thing?

I haven't had a chance to try my real app yet, but my test application 
is a good simulation of what the real program does, minus any of the 
accessing of the data that it maps. Since it's the only application 
running, and for performance reasons we'd need all of our data in 
memory, we map the "max the kernel will allow".

As another note, I've re-written my test application to use madvise 
instead of mlock, on a suggestion from Andrea. It also doesn't work. For 
2.4.13, after running for a while, my test app hangs, using one CPU, and 
kswapd consumes the other CPU. I was eventually able to kill my test app.

I've also re-written my test app to use anonymous mmap, followed by a 
mlock and read()'s. This actually does work without problems, but 
doesn't really do what we want for other reasons.
  - Ben

Ben Smith
Google, Inc.


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2001-11-05 12:19 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200111032318.fA3NIQY62745@aslan.scsiguy.com>
2001-11-04  3:50 ` Adaptec vs Symbios performance Stephan von Krawczynski
2001-11-04  5:47   ` Justin T. Gibbs
2001-11-04  5:23     ` Gérard Roudier
2001-11-04 14:17   ` Stephan von Krawczynski
2001-11-04 18:10     ` Justin T. Gibbs
2001-11-04 18:35     ` Stephan von Krawczynski
2001-11-04 16:31       ` Gérard Roudier
2001-11-04 19:13       ` Justin T. Gibbs
2001-11-04 19:56       ` Stephan von Krawczynski
2001-11-04 20:43         ` Justin T. Gibbs
2001-11-05 12:18           ` Matthias Andree
2001-11-04 19:02     ` Stephan von Krawczynski
2001-11-02 22:42 Google's mm problem - not reproduced on 2.4.13 Ben Smith
2001-11-03 22:53 ` Adaptec vs Symbios performance Stephan von Krawczynski
2001-11-03 23:01   ` arjan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).