mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hugh Dickins <hugh@veritas.com>
To: Nix <nix@esperi.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.10: SPARC64 mapped figure goes unsignedly negative...
Date: Mon, 31 Jan 2005 16:01:06 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.4.61.0501311545200.5933@goblin.wat.veritas.com> (raw)
In-Reply-To: <87sm4hwr81.fsf@amaterasu.srvr.nix>

On Mon, 31 Jan 2005, Nix wrote:
> On Mon, 31 Jan 2005, Hugh Dickins suggested tentatively:
> > On Sun, 30 Jan 2005, Nix wrote:
> >> /proc/meminfo on my UltraSPARC IIi:
> >> Mapped:       18446744073687883208 kB
> >> 
> >> (This kernel is compiled with GCC-3.4.3, which might be relevant.)
> > 
> > Indeed: sparc64 gcc-3.4 seems to be having trouble with that
> > since 2.6.9: we've been persuing it offlist, I'll factor you in.
> 
> Excellent; thank you!
> 
> (2.6.10 seems to *run* perfectly well on that box, for what it's worth;
> unless this is a symptom of some underlying dark and terrible failure,
> it looks like a not-very-important cosmetic bug.)

A lot of the time you're right and it is just cosmetic.  But if memory
gets tight and it should be using swap, it mistakenly fails to do so,
so you may end up getting OOM-killed.  Patch below is a temporary hack
workaround against that.  The Mapped count also affects when dirty file
writeback kicks in, but the effect there appears to be less serious.

More worrying is, what else might sparc64 gcc-3.4 be getting wrong?
(if it really is to blame: looks to be so but not yet proven)

Hugh

--- 2.6.10/mm/vmscan.c	2004-12-24 21:36:18.000000000 +0000
+++ linux/mm/vmscan.c	2005-01-31 12:44:56.006629152 +0000
@@ -690,6 +690,8 @@ refill_inactive_zone(struct zone *zone, 
 	 * is mapped.
 	 */
 	mapped_ratio = (sc->nr_mapped * 100) / total_memory;
+	if (mapped_ratio < 0)
+		mapped_ratio = 78;
 
 	/*
 	 * Now decide how much we really want to unmap some pages.  The mapped

  reply	other threads:[~2005-01-31 16:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-30 17:04 Nix
2005-01-31 13:04 ` Hugh Dickins
2005-01-31 15:30   ` Nix
2005-01-31 16:01     ` Hugh Dickins [this message]
2005-01-31 16:13       ` Nix
2005-01-31 17:06         ` Hugh Dickins
2005-01-31 17:31           ` Nix

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.4.61.0501311545200.5933@goblin.wat.veritas.com \
    --to=hugh@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nix@esperi.org.uk \
    /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

all inboxes | Powered by JetHome®