mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mikael Pettersson <mikpe@csd.uu.se>
To: Matt Hahnfeld <matth@everysoft.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: SLOW machine when HIGHMEM enabled (1gb memory, kernel 2.4.22)
Date: Sun, 21 Sep 2003 23:42:45 +0200	[thread overview]
Message-ID: <16238.6997.367589.302883@gargle.gargle.HOWL> (raw)
In-Reply-To: <Pine.LNX.4.44.0309211657470.12232-100000@sotec>

Matt Hahnfeld writes:
 > Mikael --
 > 
 > Thanks for the help!
 > 
 > I have posted my /proc/mtrr and /proc/meminfo to
 > http://www.layover.com/matt/kernel/ .

Hmm, I wanted the list to seem them because I'm not myself
very good at decoding memory maps and mtrrs.

Anyway, Matt's E820 map is

BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e8000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003f730000 (usable)
 BIOS-e820: 000000003f730000 - 000000003f740000 (ACPI data)
 BIOS-e820: 000000003f740000 - 000000003f7f0000 (ACPI NVS)
 BIOS-e820: 000000003f7f0000 - 000000003f800000 (reserved)
 BIOS-e820: 00000000ffb80000 - 0000000100000000 (reserved)
119MB HIGHMEM available.
896MB LOWMEM available.

while his /proc/mtrr is

reg00: base=0x00000000 (   0MB), size= 512MB: write-back, count=1
reg01: base=0x20000000 ( 512MB), size= 256MB: write-back, count=1
reg02: base=0x30000000 ( 768MB), size= 128MB: write-back, count=1
reg03: base=0x38000000 ( 896MB), size=  64MB: write-back, count=1
reg04: base=0x3c000000 ( 960MB), size=  32MB: write-back, count=1
reg05: base=0x3e000000 ( 992MB), size=  16MB: write-back, count=1

Hmm, it looks like your mtrr mappings end just before 0x3f000000,
but your E820 map marked 0x3f000000 to 0x3f730000 as "usable".

This probably means that some piece of memory the kernel is using
isn't cached. No wonders your performance sucks.

The BIOS seems to have done a poor job here. I guess the safest
workaround is to pass a mem= parameter to the kernel, causing
it to skip that problematic uncached portion.

mem=1008M perhaps?

/Mikael

      reply	other threads:[~2003-09-21 21:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-21 20:10 Matt Hahnfeld
2003-09-21 20:35 ` Mikael Pettersson
2003-09-21 21:07   ` Matt Hahnfeld
2003-09-21 21:42     ` Mikael Pettersson [this message]

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=16238.6997.367589.302883@gargle.gargle.HOWL \
    --to=mikpe@csd.uu.se \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matth@everysoft.com \
    /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®