From: Nix <nix@esperi.org.uk>
To: Hugh Dickins <hugh@veritas.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.10: SPARC64 mapped figure goes unsignedly negative...
Date: Mon, 31 Jan 2005 16:13:47 +0000 [thread overview]
Message-ID: <87d5vlwp8k.fsf@amaterasu.srvr.nix> (raw)
In-Reply-To: <Pine.LNX.4.61.0501311545200.5933@goblin.wat.veritas.com> (Hugh Dickins's message of "Mon, 31 Jan 2005 16:01:06 +0000 (GMT)")
On Mon, 31 Jan 2005, Hugh Dickins said:
> On Mon, 31 Jan 2005, Nix wrote:
>> (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.
Odd: this machine seems to be using swap, albeit not very much (and I've
got the swap priorities upside down, as well; whoops, that's probably
been harming performance for, well, years):
Filename Type Size Used Priority
/dev/sda2 partition 523016 0 1
/dev/sda4 partition 511232 57648 2
/dev/sdb2 partition 523016 0 1
Is the problem that the higher-priority kicking out to swap which should
happen when memory is tight, won't?
> The Mapped count also affects when dirty file
> writeback kicks in, but the effect there appears to be less serious.
... since it kicks in eventually anyway.
> More worrying is, what else might sparc64 gcc-3.4 be getting wrong?
That's a question that's very hard to answer until we know the cause of
this failure and can fix it: then we can go through the RTL or assembler
dumps of a kernel compilation and comb more potential problems out
(or not: it's probably a long and thankless task).
I'll build rmap.c with GCC-3.3 later tonight (if I can find a copy on my
old backups), compare the generated code, and see if anything leaps out
at me.
> --- 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
`78'? A hack indeed! :)
--
`Blish is clearly in love with language. Unfortunately,
language dislikes him intensely.' --- Russ Allbery
next prev parent reply other threads:[~2005-01-31 16:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-30 17:04 2.6.10: SPARC64 mapped figure goes unsignedly negative Nix
2005-01-31 13:04 ` Hugh Dickins
2005-01-31 15:30 ` Nix
2005-01-31 16:01 ` Hugh Dickins
2005-01-31 16:13 ` Nix [this message]
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=87d5vlwp8k.fsf@amaterasu.srvr.nix \
--to=nix@esperi.org.uk \
--cc=hugh@veritas.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.