public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* MM patches (was Re: why swap at all?)
  2004-05-29  7:31 ` Denis Vlasenko
@ 2004-05-29  8:40   ` Nick Piggin
  2004-05-29  8:46     ` Nick Piggin
                       ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Nick Piggin @ 2004-05-29  8:40 UTC (permalink / raw)
  To: Denis Vlasenko, Matthias Schniedermeyer; +Cc: Bernd Eckenfels, linux-kernel

Denis Vlasenko wrote:

> (pages with program/library code, data of e.g. your Mozilla, etc),
> please submit a report to lkml. VM gurus said more than once
> that they _want_ to fix things, but need to know how to reproduce.

Yep.

Thanks to everyone's input I was able to test and adapt my mm work.
It is hopefully at a stage where it can have wider testing now. It
is stable on my SMP system under very heavy swapping, but the usual
caution applies.

Test is 4 x cat 8GB > /dev/null (aggregate 100-200MB/s!) while in X,
with xterms and mozilla open browsing and grepping kernel tree, etc.

Plain 2.6.7-rc1-mm1 swapped 200MB then completely froze up the system
within 9 seconds of starting the read load. Things remained fairly
responsive with my patch applied. A bit of swap out, but very little
swap in, which is good. The entire 32GB went through the pagecache no
problem.

A couple of concurrent mkisofs's writing 4 GB isos don't seem to be
any problem either with the patched kernel. Haven't tried plain -mm
yet.

http://www.kerneltrap.org/~npiggin/nickvm-267r1m1.gz

It is a cocktail of cleanups, simplification, and enhancements. The
main ones that applie here is my split active lists patch (search
archives for details), and explicit use-once logic.

Known issue: page reclaim can get a little bit lumpy (ie lots of
memory freed up at once), but that is just a matter of teaching
things not to bite off massive chunks at a time when it starts
hitting memory pressure.

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

* Re: MM patches (was Re: why swap at all?)
  2004-05-29  8:40   ` MM patches (was Re: why swap at all?) Nick Piggin
@ 2004-05-29  8:46     ` Nick Piggin
       [not found]     ` <200405292014.23559.matt@lpbproductions.com>
                       ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Nick Piggin @ 2004-05-29  8:46 UTC (permalink / raw)
  To: Denis Vlasenko, Matthias Schniedermeyer; +Cc: Bernd Eckenfels, linux-kernel

Nick Piggin wrote:
> Denis Vlasenko wrote:
> 
>> (pages with program/library code, data of e.g. your Mozilla, etc),
>> please submit a report to lkml. VM gurus said more than once
>> that they _want_ to fix things, but need to know how to reproduce.
> 
> 
> Yep.
> 
> Thanks to everyone's input I was able to test and adapt my mm work.
> It is hopefully at a stage where it can have wider testing now. It
> is stable on my SMP system under very heavy swapping, but the usual
> caution applies.
> 
> Test is 4 x cat 8GB > /dev/null (aggregate 100-200MB/s!) while in X,
> with xterms and mozilla open browsing and grepping kernel tree, etc.
> 

This isn't the "very heavy swapping" load, BTW :)

The very heavy swapping load is make -j15 in 64MB of memory.

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

* Re: MM patches (was Re: why swap at all?)
       [not found]     ` <200405292014.23559.matt@lpbproductions.com>
@ 2004-05-30  3:31       ` Nick Piggin
  0 siblings, 0 replies; 7+ messages in thread
From: Nick Piggin @ 2004-05-30  3:31 UTC (permalink / raw)
  To: matt; +Cc: linux-kernel

Matt wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Nick,
> 
> Your patch has worked great, and has significantly made my desktop pc more 
> responsive . 
> 
> If you happen to have any newer versions of your patch , I can test them out 
> and send feedback to you. Or I can provide you with a server to use to 
> benchmark and toy with. 
> 

Thanks for testing Matt. The patch I posted is the newest rollup
I have. I haven't run into any significant problems with it yet,
but I will notify lkml if I have found a bad bug or made significant
changes.

Nick

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

* Re: MM patches (was Re: why swap at all?)
  2004-05-29  8:40   ` MM patches (was Re: why swap at all?) Nick Piggin
  2004-05-29  8:46     ` Nick Piggin
       [not found]     ` <200405292014.23559.matt@lpbproductions.com>
@ 2004-05-31 13:13     ` Tvrtko A. Uršulin
  2004-05-31 13:33       ` Con Kolivas
  2004-05-31 17:34     ` Andy Lutomirski
  3 siblings, 1 reply; 7+ messages in thread
From: Tvrtko A. Uršulin @ 2004-05-31 13:13 UTC (permalink / raw)
  To: linux-kernel; +Cc: Nick Piggin

On Saturday 29 May 2004 10:40, Nick Piggin wrote:

> It is a cocktail of cleanups, simplification, and enhancements. The
> main ones that applie here is my split active lists patch (search
> archives for details), and explicit use-once logic.

I didn't have time to personally test it but just want to share some thoughts. 
This kind of improvement is absolutely necessary for 2.6 to be usefull on the 
desktop. It continues to escape me how come that this kind of, almost, bugfix 
arrives so late during stable period.

Unfortunately it doesn't apply on top of Con's autoregulate swappines (AM from 
now on) which I am currently testing. AM also does an excellent job in 
preventing swap trashing while doing a lot of filesystem reading.

I am curious on how does your patch technically relates to Con's AM, and is it 
possible to merge the two? I know that they do their job on completely 
different ways, so the real question would be: Is there a need for something 
like AM if using your patch, or it completely obsoletes it?


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

* Re: MM patches (was Re: why swap at all?)
  2004-05-31 13:13     ` Tvrtko A. Uršulin
@ 2004-05-31 13:33       ` Con Kolivas
  0 siblings, 0 replies; 7+ messages in thread
From: Con Kolivas @ 2004-05-31 13:33 UTC (permalink / raw)
  To: Tvrtko A. Uršulin; +Cc: linux-kernel, Nick Piggin

On Mon, 31 May 2004 23:13, Tvrtko A. Uršulin wrote:
> On Saturday 29 May 2004 10:40, Nick Piggin wrote:
> > It is a cocktail of cleanups, simplification, and enhancements. The
> > main ones that applie here is my split active lists patch (search
> > archives for details), and explicit use-once logic.
>
> I didn't have time to personally test it but just want to share some
> thoughts. This kind of improvement is absolutely necessary for 2.6 to be
> usefull on the desktop. It continues to escape me how come that this kind
> of, almost, bugfix arrives so late during stable period.
>
> Unfortunately it doesn't apply on top of Con's autoregulate swappines (AM
> from now on) which I am currently testing. AM also does an excellent job in
> preventing swap trashing while doing a lot of filesystem reading.
>
> I am curious on how does your patch technically relates to Con's AM, and is
> it possible to merge the two? I know that they do their job on completely
> different ways, so the real question would be: Is there a need for
> something like AM if using your patch, or it completely obsoletes it?

I had a quick look at Nick's patches to see for you and it appears that Nick's 
work completely removes the swappiness dial and introduces a different metric 
called vm_mapped_page_cost which is not interchangeable with the swappiness 
value. ie they cannot work together, sorry.

Con

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

* MM patches (was Re: why swap at all?)
@ 2004-05-31 15:48 Zoltan Boszormenyi
  0 siblings, 0 replies; 7+ messages in thread
From: Zoltan Boszormenyi @ 2004-05-31 15:48 UTC (permalink / raw)
  To: linux-kernel

> http://www.kerneltrap.org/~npiggin/nickvm-267r1m1.gz
> 
> It is a cocktail of cleanups, simplification, and enhancements. The
> main ones that applie here is my split active lists patch (search
> archives for details), and explicit use-once logic.

Works good, a vmware session (WinME on a simulated 128MB machine)
does not disturb two open mozillas for two different logged in users,
both using GNOME-2.4 on FC1 system.

Kernel is 2.6.7-rc1-mm1 + your patch + linuxconsole.sf.net ruby.
The machine used about 230KB swap. 512MB DRAM.

Best regards,
Zoltán Böszörményi



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

* Re: MM patches (was Re: why swap at all?)
  2004-05-29  8:40   ` MM patches (was Re: why swap at all?) Nick Piggin
                       ` (2 preceding siblings ...)
  2004-05-31 13:13     ` Tvrtko A. Uršulin
@ 2004-05-31 17:34     ` Andy Lutomirski
  3 siblings, 0 replies; 7+ messages in thread
From: Andy Lutomirski @ 2004-05-31 17:34 UTC (permalink / raw)
  To: Nick Piggin; +Cc: Bernd Eckenfels, linux-kernel

Nick Piggin wrote:

> Yep.
> 
> Thanks to everyone's input I was able to test and adapt my mm work.
> It is hopefully at a stage where it can have wider testing now. It
> is stable on my SMP system under very heavy swapping, but the usual
> caution applies.

Thanks!

This feels quite a bit better on my system.  I'll try and stress it a bit 
more later today or tomorrow, but my system is now usable under heavy io load.

--Andy

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

end of thread, other threads:[~2004-05-31 17:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-31 15:48 MM patches (was Re: why swap at all?) Zoltan Boszormenyi
  -- strict thread matches above, loose matches on Subject: below --
2004-05-28 22:28 why swap at all? Bernd Eckenfels
2004-05-29  7:31 ` Denis Vlasenko
2004-05-29  8:40   ` MM patches (was Re: why swap at all?) Nick Piggin
2004-05-29  8:46     ` Nick Piggin
     [not found]     ` <200405292014.23559.matt@lpbproductions.com>
2004-05-30  3:31       ` Nick Piggin
2004-05-31 13:13     ` Tvrtko A. Uršulin
2004-05-31 13:33       ` Con Kolivas
2004-05-31 17:34     ` Andy Lutomirski

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