From: Blaisorblade <blaisorblade@yahoo.it>
To: Jeff Dike <jdike@addtoit.com>
Cc: Jason Lunz <lunz@falooley.org>,
user-mode-linux-devel@lists.sourceforge.net,
Jens Axboe <jens.axboe@oracle.com>
Subject: Re: [uml-devel] [UML] fix crash in block layer
Date: Mon, 19 Feb 2007 23:28:31 +0100 [thread overview]
Message-ID: <200702192328.32202.blaisorblade@yahoo.it> (raw)
In-Reply-To: <20070216184048.GA7481@ccure.user-mode-linux.org>
On Friday 16 February 2007 19:40, Jeff Dike wrote:
> On Fri, Feb 16, 2007 at 12:02:08PM -0500, Jason Lunz wrote:
> > I agree - I have only a vague idea about what uml_reserved means.
>
> This is ancient code - after a quick look through it, I think what is
> happening is this:
> Early in boot, there are both libc and kernel (bootmem) memory
> allocations happening. We can't redirect malloc to kmalloc yet, so
> mallocs are allowed to happen until kmalloc is running. This requires
> that the memory setup code leave some empty room in the address space
> for malloc to grow into. The end of this area is uml_reserved.
> When we are ready to turn on kmalloc, the rest of UML physical
> memory (beyond uml_reserved) was already available to the bootmem
> allocator, and it is just released to the page allocator. The area
> that wasn't malloced by libc is released separately to the page
> allocator.
I was also curious about the "high_physmem - uml_physmem" difference, which I
now guess I understand - and about seeing this documented so that redundant
vars could be deleted.
> At that point, uml_reserved loses its meaning, since memory on
> either side of it is treated identically by the page allocator.
But the purpose of:
uml_reserved = brk_end;
is probably to restore this meaning: after this, uml_reserved marks again the
end of the reserved memory, right?
And now that you explain this me, I'm wondering.
How do things work when kmalloc_ok is disabled (i.e. initial_thread_cb)? I
thought all reserved memory would stay reserved for the whole UML kernel
lifetime.
--
Inform me of my mistakes, so I can add them to my list!
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2007-02-19 22:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070215160001.GA6774@avocado.homenet>
2007-02-15 17:09 ` [uml-devel] [UML] fix crash in block layer Jeff Dike
2007-02-15 19:29 ` Blaisorblade
2007-02-16 17:02 ` Jason Lunz
2007-02-16 18:40 ` Jeff Dike
2007-02-19 22:28 ` Blaisorblade [this message]
2007-02-16 19:10 ` Blaisorblade
2007-02-09 22:01 Jason Lunz
-- strict thread matches above, loose matches on Subject: below --
2007-02-09 21:30 Jason Lunz
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=200702192328.32202.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=jdike@addtoit.com \
--cc=jens.axboe@oracle.com \
--cc=lunz@falooley.org \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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