linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: broken VM in 2.4.10-pre9
@ 2001-09-16 15:19 Ricardo Galli
  2001-09-16 15:23 ` Michael Rothwell
  0 siblings, 1 reply; 133+ messages in thread
From: Ricardo Galli @ 2001-09-16 15:19 UTC (permalink / raw)
  To: linux-kernel

> So whether Linux uses swap or not is a 100% meaningless indicator of
> "goodness". The only thing that matters is how well the job gets done,
> ie was it reasonably responsive, and did the big untars finish quickly..

I am running 2.4.9 on a PII with 448MB RAM. After listening a couple of
hours MP3 from the /dev/cdrom and KDE started, more than 70MB went to
swap, about 300 MB in cache and KDE takes about 15-20 seconds just for
logging out and showing the greeting console.

Obviously, all apps went to disk to leave space for caching mp3 files that
are read only once. Altough logging out is not a very often process...

Regards,


--ricardo



^ permalink raw reply	[flat|nested] 133+ messages in thread
* Re: broken VM in 2.4.10-pre9
@ 2001-09-22 19:59 Peter Magnusson
  2001-09-22 20:46 ` Jan Harkes
  0 siblings, 1 reply; 133+ messages in thread
From: Peter Magnusson @ 2001-09-22 19:59 UTC (permalink / raw)
  To: linux-kernel

Jan Harkes wrote:

> What do you consider as good VM?

When programs that isnt used are swapped out, or parts of them like
it worked in < 2.4.7.

> Because pages aren't 'aged' until there is swap allocated for them, your
> kernel should actually work better if it has a lot of pages backed by
> swap. The only thing is, we don't really make the right decision about

It doesnt. It just gets slower.
If it really become faster i would not have written my orginal posting.

> which pages to swap out, but that's just a detail.
>
> IMHO. A large number of cached/active pages == good.

IMHO:

Use the swap as little as possible == good.
Do you think i have 512 Mbyte of RAM just because i want
the kernel to swap out lotsa stuff? No, because it shouldnt
have the need for swapping out stuff.


^ permalink raw reply	[flat|nested] 133+ messages in thread
* Re: broken VM in 2.4.10-pre9
@ 2001-09-22 19:59 Peter Magnusson
  2001-09-22 20:18 ` Rik van Riel
  0 siblings, 1 reply; 133+ messages in thread
From: Peter Magnusson @ 2001-09-22 19:59 UTC (permalink / raw)
  To: linux-kernel

On Sat, 15 Sep 2001, Linus Torvalds wrote:

> In article <Pine.LNX.4.33L2.0109160031500.7740-100000@flashdance>,
> Peter Magnusson  <iocc@flashdance.nothanksok.cx> wrote:
> >
> >2.4.10-pre4: quite ok VM, but put little more on the swap than 2.4.7
> >2.4.10-pre8: not good
>
> Ehh..
>
> There are _no_ VM changes that I can see between pre4 and pre8.
>
> >2.4.10-pre9: not good ... Linux didnt had used any swap at all, then i
> >             unrared two very large files at the same time. And now 104
> >             Mbyte swap is used! :-( 2.4.7 didnt do like this.
> >             Best is to use the swap as little as possible.
>
> .. and there are none between pre8 and pre9.
>
> Basically, it sounds lik eyou have tested different loads on different
> kernels, and some loads are nice and others are not.

I guess i just was lucky when i used pre4 before.
I have rebooted to pre4 now. unrared exactly the same very big files
that i did in pre9. 70 Mbyte swap used and the box has just been
rebooted!

My guess:

It treats the file system cache as important as normal programs and
thats is very wrong. Its like this on all kernels over 2.4.7.

> Also note that the amount of "swap used" is totally meaningless in
> 2.4.x. The 2.4.x kernel will _allocate_ the swap backing store much
> earlier than 2.2.x, but that doesn't actuall ymean that it does any of
> the IO. Indeed, allocating the swap backing store just means that the

I go after what top (in the Swap used field), xosview says. It havent
lied for me yet. And its hard to miss the slowdown when my computer
trys to swap out about 100 Mbyte.

The "SWAP" field in top lies however, but its not that Im looking on.



^ permalink raw reply	[flat|nested] 133+ messages in thread
* RE: broken VM in 2.4.10-pre9
@ 2001-09-19 22:15 Rob Fuller
  2001-09-19 22:21 ` David S. Miller
                   ` (5 more replies)
  0 siblings, 6 replies; 133+ messages in thread
From: Rob Fuller @ 2001-09-19 22:15 UTC (permalink / raw)
  To: David S. Miller, ebiederm; +Cc: alan, phillips, linux-kernel, linux-mm

In my one contribution to this thread I wrote:

"One argument for reverse mappings is distributed shared memory or
distributed file systems and their interaction with memory mapped files.
For example, a distributed file system may need to invalidate a specific
page of a file that may be mapped multiple times on a node."

I believe reverse mappings are an essential feature for memory mapped
files in order for Linux to support sophisticated distributed file
systems or distributed shared memory.  In general, this memory is NOT
anonymous.  As such, it should not affect the performance of a
fork/exec/exit.

I suppose I confused the issue when I offered a supporting argument for
reverse mappings.  It's not reverse mappings for anonymous pages I'm
advocating, but reverse mappings for mapped file data.

> -----Original Message-----
> From: David S. Miller [mailto:davem@redhat.com]
> Sent: Wednesday, September 19, 2001 4:56 PM
> To: ebiederm@xmission.com
> Cc: alan@lxorguk.ukuu.org.uk; phillips@bonn-fries.net; Rob Fuller;
> linux-kernel@vger.kernel.org; linux-mm@kvack.org
> Subject: Re: broken VM in 2.4.10-pre9
> 
> 
>    From: ebiederm@xmission.com (Eric W. Biederman)
>    Date: 19 Sep 2001 15:37:26 -0600
>    
>    That I think is a significant cost.
> 
> My own personal feeling, after having tried to implement a much
> lighter weight scheme involving "anon areas", is that reverse maps or
> something similar should be looked at as a latch ditch effort.
> 
> We are tons faster than anyone else in fork/exec/exit precisely
> because we keep track of so little state for anonymous pages.
> 
> Later,
> David S. Miller
> davem@redhat.com
> 

^ permalink raw reply	[flat|nested] 133+ messages in thread
* RE: broken VM in 2.4.10-pre9
@ 2001-09-17 15:40 Rob Fuller
  2001-09-17 16:03 ` Eric W. Biederman
  0 siblings, 1 reply; 133+ messages in thread
From: Rob Fuller @ 2001-09-17 15:40 UTC (permalink / raw)
  To: Rik van Riel, Eric W. Biederman; +Cc: linux-kernel, linux-mm

One argument for reverse mappings is distributed shared memory or
distributed file systems and their interaction with memory mapped files.
For example, a distributed file system may need to invalidate a specific
page of a file that may be mapped multiple times on a node.

This may be a naive argument given my limited knowledge of Linux memory
management internals.  If so, I will refrain from posting this sort of
thing in the future.  Let me know.

> -----Original Message-----
> From: Rik van Riel [mailto:riel@conectiva.com.br]
> Sent: Monday, September 17, 2001 7:13 AM
> To: Eric W. Biederman
> Cc: linux-kernel@vger.kernel.org; linux-mm@kvack.org
> Subject: Re: broken VM in 2.4.10-pre9
> 
> 
> On 17 Sep 2001, Eric W. Biederman wrote:

<snip>

> > Do you have any arguments for the reverse mappings or just 
> for some of
> > the other side effects that go along with them?
> 
> Mainly for the side effects, but until somebody comes
> up with another idea to achieve all the side effects I'm
> not giving up on reverse mappings. If you can achieve
> all the good stuff in another way, show it.

^ permalink raw reply	[flat|nested] 133+ messages in thread
* Re: vm rewrite ready [Re: broken VM in 2.4.10-pre9]
@ 2001-09-16 19:07 Rik van Riel
  2001-09-16 15:19 ` broken VM in 2.4.10-pre9 Phillip Susi
  0 siblings, 1 reply; 133+ messages in thread
From: Rik van Riel @ 2001-09-16 19:07 UTC (permalink / raw)
  To: Andrea Arcangeli; +Cc: Tonu Samuel, Linus Torvalds, linux-kernel

On Sun, 16 Sep 2001, Andrea Arcangeli wrote:

> The alternate vm will be included in 2.4.10pre9aa1 (or anwways the
> very next -aa release) and I'll maintain it in the -aa tree.

Cool, I'll definately take a look to see if there are any
good ideas ready to be integrated into the -linus or -ac
kernels.

> It is supposed to provide:

   [snip holy grail]

I doubt you'll be able to achieve all of those without
really major changes, but I'll take a look at your code
when you make it public ;)

cheers,

Rik
-- 
IA64: a worthy successor to i860.

http://www.surriel.com/		http://distro.conectiva.com/

Send all your spam to aardvark@nl.linux.org (spam digging piggy)


^ permalink raw reply	[flat|nested] 133+ messages in thread
[parent not found: <fa.i95if5v.74un2p@ifi.uio.no>]
* broken VM in 2.4.10-pre9
@ 2001-09-15 22:43 Peter Magnusson
  2001-09-15 23:50 ` Jan Harkes
                   ` (2 more replies)
  0 siblings, 3 replies; 133+ messages in thread
From: Peter Magnusson @ 2001-09-15 22:43 UTC (permalink / raw)
  To: linux-kernel

2.4.7: good VM
2.4.8: not good
2.4.9: not good!!!++
2.4.10-pre4: quite ok VM, but put little more on the swap than 2.4.7
2.4.10-pre8: not good
2.4.10-pre9: not good ... Linux didnt had used any swap at all, then i
             unrared two very large files at the same time. And now 104
             Mbyte swap is used! :-( 2.4.7 didnt do like this.
             Best is to use the swap as little as possible.

My cfg:

Real mem: 512684K (512 Mbyte)
Swap    : 257032K
compiled with: gcc version 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.48mdk)


!! remove "nothanksok." from my email if you want to reply to me !!





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

end of thread, other threads:[~2001-10-01 13:00 UTC | newest]

Thread overview: 133+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-16 15:19 broken VM in 2.4.10-pre9 Ricardo Galli
2001-09-16 15:23 ` Michael Rothwell
2001-09-16 16:33   ` Rik van Riel
2001-09-16 16:50     ` Andreas Steinmetz
2001-09-16 17:12       ` Ricardo Galli
2001-09-16 17:06     ` Ricardo Galli
2001-09-16 17:18       ` Jeremy Zawodny
2001-09-16 18:45       ` Stephan von Krawczynski
2001-09-21  3:16         ` Bill Davidsen
2001-09-21 10:21         ` Stephan von Krawczynski
2001-09-21 14:08           ` Bill Davidsen
2001-09-21 14:23             ` Rik van Riel
2001-09-23 13:13               ` Eric W. Biederman
2001-09-23 13:27                 ` Rik van Riel
2001-09-21 10:43         ` Stephan von Krawczynski
2001-09-21 12:13           ` Rik van Riel
2001-09-21 12:55           ` Stephan von Krawczynski
2001-09-21 13:01             ` Rik van Riel
2001-09-22 11:01           ` Daniel Phillips
2001-09-22 20:05             ` Rik van Riel
2001-09-24  9:36           ` Linux VM design VDA
2001-09-24 11:06             ` Dave Jones
2001-09-24 12:15               ` Kirill Ratkin
2001-09-24 13:29             ` Rik van Riel
2001-09-24 14:05               ` VDA
2001-09-24 14:37                 ` Rik van Riel
2001-09-24 14:42                 ` Rik van Riel
2001-09-24 18:37             ` Daniel Phillips
2001-09-24 19:32               ` Rik van Riel
2001-09-24 17:27                 ` Rob Landley
2001-09-24 21:48                   ` Rik van Riel
2001-09-25  9:58                 ` Daniel Phillips
2001-09-25 16:03               ` bill davidsen
2001-09-24 18:46             ` Jonathan Morton
2001-09-24 19:16               ` Daniel Phillips
2001-09-24 19:11             ` Dan Mann
2001-09-25 10:55             ` VDA
2001-09-16 18:16     ` broken VM in 2.4.10-pre9 Stephan von Krawczynski
2001-09-16 19:43     ` Linus Torvalds
2001-09-16 19:57       ` Rik van Riel
2001-09-16 20:17       ` Rik van Riel
2001-09-16 20:29       ` Andreas Steinmetz
2001-09-16 21:28         ` Linus Torvalds
2001-09-16 22:47           ` Alex Bligh - linux-kernel
2001-09-16 22:55             ` Linus Torvalds
2001-09-16 22:59           ` Stephan von Krawczynski
2001-09-16 22:14             ` Linus Torvalds
2001-09-16 23:29               ` Stephan von Krawczynski
2001-09-17 15:35             ` Stephan von Krawczynski
2001-09-17 15:51               ` Linus Torvalds
2001-09-17 16:34               ` Stephan von Krawczynski
2001-09-17 16:46                 ` Linus Torvalds
2001-09-17 17:20                 ` Stephan von Krawczynski
2001-09-17 17:37                   ` Linus Torvalds
2001-09-17  0:37       ` Daniel Phillips
2001-09-17  1:07         ` Linus Torvalds
2001-09-17  2:23           ` Daniel Phillips
2001-09-17  5:11           ` Jan Harkes
2001-09-17 12:33             ` Daniel Phillips
2001-09-17 12:41               ` Rik van Riel
2001-09-17 14:49                 ` Daniel Phillips
2001-09-17 16:14               ` Jan Harkes
2001-09-17 16:34                 ` Linus Torvalds
2001-09-17 15:38             ` Linus Torvalds
2001-09-17 12:26           ` Rik van Riel
2001-09-17 15:42             ` Linus Torvalds
2001-09-18 12:04               ` Rik van Riel
2001-09-17 17:33             ` Linus Torvalds
2001-09-17 18:07               ` Linus Torvalds
2001-09-18 12:09               ` Rik van Riel
2001-09-21  3:10       ` Bill Davidsen
2001-09-17  8:06     ` Eric W. Biederman
2001-09-17 12:12       ` Rik van Riel
2001-09-17 15:45         ` Eric W. Biederman
  -- strict thread matches above, loose matches on Subject: below --
2001-09-22 19:59 Peter Magnusson
2001-09-22 20:46 ` Jan Harkes
2001-09-22 21:46   ` Peter Magnusson
2001-09-22 19:59 Peter Magnusson
2001-09-22 20:18 ` Rik van Riel
2001-09-19 22:15 Rob Fuller
2001-09-19 22:21 ` David S. Miller
2001-09-19 22:26 ` Christoph Hellwig
2001-09-19 22:30 ` Alan Cox
2001-09-19 22:48 ` Eric W. Biederman
2001-09-19 22:51 ` Bryan O'Sullivan
2001-09-20  3:16 ` GOTO Masanori
2001-09-20  7:38   ` Christoph Hellwig
2001-09-17 15:40 Rob Fuller
2001-09-17 16:03 ` Eric W. Biederman
2001-09-19  9:45   ` Daniel Phillips
2001-09-19 19:45     ` Alan Cox
2001-09-19 21:03       ` Eric W. Biederman
2001-09-19 22:04         ` Alan Cox
2001-09-19 22:26           ` Eric W. Biederman
2001-09-19 23:05           ` Rik van Riel
2001-09-20 11:28           ` Daniel Phillips
2001-09-20 12:06             ` Rik van Riel
2001-09-21  8:13               ` Daniel Phillips
2001-09-21 12:10                 ` Rik van Riel
2001-09-21 15:27                 ` Jan Harkes
2001-09-22  7:09                   ` Daniel Phillips
2001-09-25 11:04                     ` Mike Fedyk
2001-09-20 12:57             ` Alan Cox
2001-09-20 13:40               ` Daniel Phillips
2001-09-24 22:50           ` Pavel Machek
2001-09-26 18:22             ` Marcelo Tosatti
2001-09-26 23:44               ` Pavel Machek
2001-09-27 13:52                 ` Eric W. Biederman
2001-10-01 11:37                 ` Marcelo Tosatti
2001-09-19 23:00         ` Rik van Riel
2001-09-21  8:23           ` Eric W. Biederman
2001-09-21 12:01             ` Rik van Riel
2001-09-22  2:14             ` Alexander Viro
2001-09-22  3:09               ` Rik van Riel
2001-09-21 14:29           ` Gábor Lénárt
2001-09-21 14:35             ` Horst von Brand
2001-09-19 21:37       ` Eric W. Biederman
2001-09-19 21:55       ` David S. Miller
2001-09-20 13:02         ` Rik van Riel
2001-09-16 19:07 vm rewrite ready [Re: broken VM in 2.4.10-pre9] Rik van Riel
2001-09-16 15:19 ` broken VM in 2.4.10-pre9 Phillip Susi
2001-09-16 19:33   ` Jeremy Zawodny
2001-09-16 19:52   ` Rik van Riel
     [not found] <fa.i95if5v.74un2p@ifi.uio.no>
     [not found] ` <fa.gu977tv.1b7u0g9@ifi.uio.no>
2001-09-16 18:06   ` Dan Maas
2001-09-15 22:43 Peter Magnusson
2001-09-15 23:50 ` Jan Harkes
2001-09-16  5:31 ` Linus Torvalds
2001-09-16  8:45   ` Eric W. Biederman
2001-09-17 10:25 ` Tonu Samuel
2001-09-16 16:47   ` Jeremy Zawodny
2001-09-16 18:36     ` Alan Cox
2001-09-16 19:38       ` Linus Torvalds
2001-09-16 19:37   ` Linus Torvalds
2001-09-17 14:04     ` Olaf Zaplinski

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).