From: Steven Rostedt <rostedt@goodmis.org>
To: "Alex Villacís Lasso" <a_villacis@palosanto.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Use of memmap= to forcibly recover memory in 3GB-4GB range - is this safe?
Date: Tue, 15 Jan 2013 21:29:55 -0500 [thread overview]
Message-ID: <20130116022955.GB3854@home.goodmis.org> (raw)
In-Reply-To: <50F606A8.2080804@palosanto.com>
On Tue, Jan 15, 2013 at 08:47:20PM -0500, Alex Villacís Lasso wrote:
> The system boots, apparently normally, and I can see the additional
> "memory" in all system reports. However, I cannot quite shake the
> feeling that this "memory" might be in fact an illusion, and an
> attempt to use it will wrap around to the bottom of the memory and
> corrupt anything there. Or worse.
>
> Some tests that I have tried:
> 1) I have tried to occupy as much memory as possible, by starting
> two virtual machines, plus one instance of eclipse, a browser, and a
> bittorrent client, while running the graphical desktop. I have seen
> the free memory (as reported by "top") fall to under 200 Mb with no
> apparent instability, so this should prove that the extra memory is
> real, right?
If you ran all that and it didn't crash and burn, I'm thinking you are
pretty safe. I would think that if you had 768 megs mapped to nothing,
mirrored to other memory, or any number of other atrocities, your above
actions would most likely show some horrible failure.
I think you are correct in assuming that if the MTRR mappings shows
memory there, it may just be a bug in the BIOS that is not adding it.
> 2) I have recompiled the kernel to support the memtest parameter.
> When using it, the extra memory segment appears to be as healthy as
> other areas of memory. However this might only mean that it is
> wrapping into healthy low RAM.
>
> Is my reasoning sane? Is there a way to know, once and for all,
> whether the extra "memory" is real and safe to use or not?
I can think of writing a kernel module that reads and writes to these
locations just to make sure. But other than that, I'm not aware of
anything. Maybe someone else could offer more.
-- Steve
next prev parent reply other threads:[~2013-01-16 2:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-16 1:47 Alex Villacís Lasso
2013-01-16 2:28 ` H. Peter Anvin
2013-01-16 7:02 ` Yinghai Lu
2013-01-16 2:29 ` Steven Rostedt [this message]
2013-01-16 7:11 ` Yinghai Lu
2013-01-17 0:24 ` Alex Villacís Lasso
2013-01-17 0:31 ` Yinghai Lu
2013-01-17 15:03 ` Martin Mokrejs
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=20130116022955.GB3854@home.goodmis.org \
--to=rostedt@goodmis.org \
--cc=a_villacis@palosanto.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 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®