public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Plain 2.4.5 VM...
@ 2001-05-29  0:32 Jeff Garzik
  2001-05-29  1:13 ` Mohammad A. Haque
                   ` (2 more replies)
  0 siblings, 3 replies; 28+ messages in thread
From: Jeff Garzik @ 2001-05-29  0:32 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Ouch!  When compiling MySql, building sql_yacc.cc results in a ~300M
cc1plus process size.  Unfortunately this leads the machine with 380M of
RAM deeply into swap:

Mem:   381608K av,  248504K used,  133104K free,       0K shrd,     192K
buff
Swap:  255608K av,  255608K used,       0K free                  215744K
cached

Vanilla 2.4.5 VM.

-- 
Jeff Garzik      | Disbelief, that's why you fail.
Building 1024    |
MandrakeSoft     |

^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: Plain 2.4.5 VM...
@ 2001-05-29  2:32 G. Hugh Song
  2001-05-29  4:10 ` Jakob Østergaard
  0 siblings, 1 reply; 28+ messages in thread
From: G. Hugh Song @ 2001-05-29  2:32 UTC (permalink / raw)
  To: linux-kernel


Jeff Garzik wrote: 
> 
> Ouch! When compiling MySql, building sql_yacc.cc results in a ~300M 
> cc1plus process size. Unfortunately this leads the machine with 380M of 
> RAM deeply into swap: 
> 
> Mem: 381608K av, 248504K used, 133104K free, 0K shrd, 192K 
> buff 
> Swap: 255608K av, 255608K used, 0K free 215744K 
> cached 
> 
> Vanilla 2.4.5 VM. 
> 

This bug known as the swap-reclaim bug has been there for a while since 
around 2.4.4.  Rick van Riel said that it is in the TO-DO list.
Because of this, I went back to 2.2.20pre2aa1 on UP2000 SMP.

IMHO, the current 2.4.* kernels should still be 2.3.*.  When this bug
is removed, I will come back to 2.4.*.

Regards,

Hugh


^ permalink raw reply	[flat|nested] 28+ messages in thread
[parent not found: <mailman.991098720.29883.linux-kernel2news@redhat.com>]
* Re: Plain 2.4.5 VM
@ 2001-05-30  4:24 Craig Kulesa
  2001-05-30  6:50 ` Mike Galbraith
  2001-05-30 13:27 ` Jonathan Morton
  0 siblings, 2 replies; 28+ messages in thread
From: Craig Kulesa @ 2001-05-30  4:24 UTC (permalink / raw)
  To: linux-kernel; +Cc: Rik van Riel



Mike Galbraith (mikeg@wen-online.de) wrote:
>
> Emphatic yes.  We went from cache collapse to cache bloat.

Rik, I think Mike deserves his beer.  ;)

Agreed.  Swap reclaim doesn't seem to be the root issue here, IMHO.
But instead: his box was capable of maintaining a modest cache
and the desired user processes without massive allocations (and use)
of swap space.  There was plenty of cache to reap, but VM decided to
swapout instead.  Seems we're out of balance here (IMHO).

I see this too, and it's only a symptom of post-2.4.4 kernels.

Example: on a 128M system w/2.4.5, loading X and a simulation code of
RSS=70M causes the system to drop 40-50M into swap...with 100M of cache
sitting there, and some of those cache pages are fairly old. It's not
just allocation; there is noticable disk activity associated with paging
that causes a lag in interactivity.  In 2.4.4, there is no swap activity
at all.

And if the application causes heavy I/O *and* memory load (think
StarOffice, or Quake 3), this situation gets even worse (because there's
typically more competition/demand for cache pages).

And on low-memory systems (ex. 32M), even a basic Web browsing test w/
Opera drops the 2.4.5 system 25M into swap where 2.4.4 barely cracks 5 MB
on the same test (and the interactivity shows).  This is all independent
of swap reclaim.

So is there an ideal VM balance for everyone?  I have found that low-RAM
systems seem to benefit from being on the "cache-collapse" side of the
curve (so I prefer the pre-2.4.5 balance more than Mike probably does) and
those low-RAM systems are the first hit when, as now, we're favoring
"cache bloat".  Should balance behaviors could be altered by the user
(via sysctl's maybe?  Yeah, I hear the cringes)?  Or better, is it
possible to dynamically choose where the watermarks in balancing should
lie, and alter them automatically?  2.5 stuff there, no doubt.  Balancing
seems so *fragile* (to me).

Cheers,

Craig Kulesa
ckulesa@as.arizona.edu


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

end of thread, other threads:[~2001-05-31  5:23 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-29  0:32 Plain 2.4.5 VM Jeff Garzik
2001-05-29  1:13 ` Mohammad A. Haque
2001-05-29  1:14 ` Mohammad A. Haque
2001-05-29  8:51 ` Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2001-05-29  2:32 G. Hugh Song
2001-05-29  4:10 ` Jakob Østergaard
2001-05-29  4:26   ` safemode
2001-05-29  4:38     ` Jeff Garzik
2001-05-29  6:04       ` Mike Galbraith
2001-05-29 14:06       ` Gerhard Mack
2001-05-29  4:46   ` G. Hugh Song
2001-05-29  4:57     ` Jakob Østergaard
2001-05-29  7:13   ` Marcelo Tosatti
2001-05-29  9:10   ` Alan Cox
2001-05-29 15:37     ` elko
     [not found] <mailman.991098720.29883.linux-kernel2news@redhat.com>
2001-05-29  2:55 ` Pete Zaitcev
2001-05-30  4:24 Craig Kulesa
2001-05-30  6:50 ` Mike Galbraith
2001-05-30 13:27 ` Jonathan Morton
2001-05-30 12:20   ` Marcelo Tosatti
2001-05-30 15:27     ` Mike Galbraith
2001-05-30 18:39     ` Rik van Riel
2001-05-30 17:19       ` Marcelo Tosatti
2001-05-30 20:33       ` Mike Galbraith
2001-05-30 19:25         ` Marcelo Tosatti
2001-05-31  5:20           ` Mike Galbraith
2001-05-30 15:18   ` Mike Galbraith
2001-05-30 19:16     ` Rik van Riel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox