public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: "Horst H. von Brand" <vonbrand@inf.utfsm.cl>
Cc: Aucoin@Houston.RR.com, "'Kyle Moffett'" <mrmacman_g4@mac.com>,
	"'Tim Schmielau'" <tim@physik3.uni-rostock.de>,
	torvalds@osdl.org, linux-kernel@vger.kernel.org,
	clameter@sgi.com
Subject: Re: la la la la ... swappiness
Date: Mon, 4 Dec 2006 10:06:56 -0800	[thread overview]
Message-ID: <20061204100656.793d8d6a.akpm@osdl.org> (raw)
In-Reply-To: <200612041707.kB4H7Mnh020665@laptop13.inf.utfsm.cl>

On Mon, 04 Dec 2006 14:07:22 -0300
"Horst H. von Brand" <vonbrand@inf.utfsm.cl> wrote:

> Please explain again:
> 
> - What you are doing, step by step

That 2GB machine apparently has a 1.6GB shm segment which is mlocked.  That will
cause the VM to do one heck of a lot of pointless scanning and could, I guess,
cause false oom decisions.  It's also an ia32 highmem machine, which adds to the
fun.

We could scan more:

--- a/mm/vmscan.c~a
+++ a/mm/vmscan.c
@@ -918,6 +918,7 @@ static unsigned long shrink_zone(int pri
 	 * slowly sift through the active list.
 	 */
 	zone->nr_scan_active += (zone->nr_active >> priority) + 1;
+	zone->nr_scan_active *= 2;
 	nr_active = zone->nr_scan_active;
 	if (nr_active >= sc->swap_cluster_max)
 		zone->nr_scan_active = 0;
@@ -925,6 +926,7 @@ static unsigned long shrink_zone(int pri
 		nr_active = 0;
 
 	zone->nr_scan_inactive += (zone->nr_inactive >> priority) + 1;
+	zone->nr_scan_inactive *= 2;
 	nr_inactive = zone->nr_scan_inactive;
 	if (nr_inactive >= sc->swap_cluster_max)
 		zone->nr_scan_inactive = 0;
_

but that's rather dumb.  Better would be to remove mlocked pages from the
LRU.

  parent reply	other threads:[~2006-12-04 18:08 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-04  1:54 la la la la ... swappiness Aucoin
2006-12-04  4:59 ` Andrew Morton
2006-12-04  7:22 ` Kyle Moffett
2006-12-04 14:39   ` Aucoin
2006-12-04 16:10     ` Chris Friesen
2006-12-04 17:07     ` Horst H. von Brand
2006-12-04 17:49       ` Aucoin
2006-12-04 18:44         ` Tim Schmielau
2006-12-04 21:28           ` Aucoin
2006-12-04 18:46         ` Horst H. von Brand
2006-12-04 21:43           ` Aucoin
2006-12-04 18:06       ` Andrew Morton [this message]
2006-12-04 18:15         ` Christoph Lameter
2006-12-04 18:38           ` Jeffrey Hundstad
2006-12-04 21:25             ` Aucoin
2006-12-04 21:43               ` Andrew Morton
2006-12-04 15:55   ` David Lang
2006-12-04 17:42     ` Aucoin
  -- strict thread matches above, loose matches on Subject: below --
2006-12-04 19:02 Al Boldi
     [not found] <200612030616.kB36GYBs019873@ms-smtp-03.texas.rr.com>
2006-12-03  8:08 ` Andrew Morton
2006-12-03 15:40   ` Aucoin
2006-12-03 20:46     ` Tim Schmielau
2006-12-03 23:56       ` Aucoin
2006-12-04  0:57         ` Horst H. von Brand
2006-12-04  4:56         ` Andrew Morton
2006-12-04  5:13           ` Linus Torvalds
2006-12-04 17:03             ` Christoph Lameter
2006-12-04 10:43         ` Nick Piggin
2006-12-04 14:45           ` Aucoin
2006-12-04 15:04             ` Nick Piggin
2006-12-05  4:02               ` Aucoin
2006-12-05  4:46                 ` Linus Torvalds
2006-12-05  6:41                   ` Aucoin
2006-12-05  7:01                     ` Nick Piggin
2006-12-05  7:26                       ` Rene Herman
2006-12-05 13:27                         ` Aucoin
2006-12-05 13:49                           ` Rene Herman
2006-12-05 13:25                       ` Aucoin
2006-12-03  6:18 Aucoin

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=20061204100656.793d8d6a.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=Aucoin@Houston.RR.com \
    --cc=clameter@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mrmacman_g4@mac.com \
    --cc=tim@physik3.uni-rostock.de \
    --cc=torvalds@osdl.org \
    --cc=vonbrand@inf.utfsm.cl \
    /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