From: Rik van Riel <H.H.vanRiel@fys.ruu.nl>
To: Noel Maddy <ncm@biostat.hfh.edu>
Cc: linux-mm <linux-mm@kvack.org>
Subject: Re: mmap-age patch, comments wanted
Date: Mon, 22 Dec 1997 17:29:17 +0100 (MET) [thread overview]
Message-ID: <Pine.LNX.3.91.971222172043.7639P-100000@mirkwood.dummy.home> (raw)
In-Reply-To: <m0xjTGa-000sLKC@linux.biostat.hfh.edu>
On Sat, 20 Dec 1997, Noel Maddy wrote:
> I haven't had the time to do comprehensive testing with your mmap-age
> patch, but I have been alternately running 2.1.71 with and without the
> patch. It seems like the patch really helps for steady-state
> situations, but has problems when I start large programs when my system
> is already overloaded.
Hmm, yes. This is a problem, it can probably be solved by
tuning some parameters in /proc/sys/vm (I have the problem too,
but not by far as severe as you have them). <see below>
> The problem comes when I run another large application, like Debian's
> dpkg, or netscape, or gimp. With the mmap-age patched kernel, the
> system freezes for 5 to 10 seconds while loading one of these large
> apps -- no mouse movement, no X updating, nothing. When I run vmstat
> while this is happening, I see a huge amount of page-out with no
> page-in followed by a huge amount of page-in.
>
> When I do the same thing without the mmap-age patch, the system slows
> down, but does not become completely unresponsive.
At my place it doesn't become unresponsive, not even when I'm
already swapping and then I load Netscape...
> I'm not that familiar with the Linux mm system, but I'm guessing that
> what's happening is that since all of the new pages for the starting
> process are referenced while it loads, they all have a high priority,
> and won't be replaced by more pages from the same new process. Once
> the new process starts, the pages from the older processes that have
> been paged out have to be paged in again.
>
> If that's the case, might it help to start the new pages out pre-aged?
> That way, there'd be a chance that a new page for the new process would
> replace older pages for the new process rather than pages from older
> processes?
They are loaded preaged. And since Linux does demand-loading,
only the pages actually required are loaded into core...
I think it's the anti-fragmentation part that's biting you,
ie. the kernel has some free pages in large chunks --> memory
gets allocated --> kswapd has to free loads of random pages until
there are some large chunks of free pages again.
But if we don't have the anti-fragmentation stuff, the kernel
wouldn't run as stable as it does now, and I'm not willing to
sacrifice stability for performance...
(and frankly, I don't think anyone is:)
> Of course, this is just speculation rather than from studying the code
> -- if I'm all wet, just tell me...
Well, you did have a clue. Not neccesary the right clue, but
it did make me think about what to do...
I might actually have some solution^H^H^H^H^H^H^H^Hworkaround
for this by tomorrow...
Merry Cristmas,
Rik.
+-----------------------------+------------------------------+
| For Linux mm-patches, go to | "I'm busy managing memory.." |
| my homepage (via LinuxHQ). | H.H.vanRiel@fys.ruu.nl |
| ...submissions welcome... | http://www.fys.ruu.nl/~riel/ |
+-----------------------------+------------------------------+
next parent reply other threads:[~1997-12-22 17:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <m0xjTGa-000sLKC@linux.biostat.hfh.edu>
1997-12-22 16:29 ` Rik van Riel [this message]
[not found] <m0xkBUW-000sMBC@linux.biostat.hfh.edu>
1997-12-22 22:14 ` Rik van Riel
1997-12-19 11:50 Rik van Riel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.3.91.971222172043.7639P-100000@mirkwood.dummy.home \
--to=h.h.vanriel@fys.ruu.nl \
--cc=linux-mm@kvack.org \
--cc=ncm@biostat.hfh.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox