From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: Question on virtual memory layout: lowmem with memory hole
Date: Thu, 25 Aug 2011 11:22:45 +0100 [thread overview]
Message-ID: <20110825102245.GA10405@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <2A3DCF3DA181AD40BDE86A3150B27B6B03B47E23FC@dbde02.ent.ti.com>
On Thu, Aug 25, 2011 at 09:35:07AM +0530, Pedanekar, Hemant wrote:
> E.g., on OMAP3 with mem=32M at 0x80000000 mem=8M at 0x87800000
>
> (CASE 1)
> Memory: 32MB 8MB = 40MB total
> Memory: 28408k/28408k available, 12552k reserved, 0K highmem
> Virtual kernel memory layout:
> vector : 0xffff0000 - 0xffff1000 ( 4 kB)
> fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
> DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
> vmalloc : 0xc8800000 - 0xf8000000 ( 760 MB)
> lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
> modules : 0xbf000000 - 0xc0000000 ( 16 MB)
> .text : 0xc0008000 - 0xc05ac2c8 (5777 kB)
> .init : 0xc05ad000 - 0xc05f8780 ( 302 kB)
> .data : 0xc05fa000 - 0xc06838d0 ( 551 kB)
> .bss : 0xc06838f4 - 0xc0bd8a14 (5461 kB)
>
> Is this expected? 88MB space between two 'mem's seems to have lost.
Yes. The memory layout lines gives an overview of the virtual memory
address space _regions_.
What it's saying is that the virtual addresses from 0xc0000000 - 0xc8000000
are used for lowmem. That may not be fully populated, but that's what
the address range is reserved for.
> This also
> means vmalloc space is lower compared to when a single mem=40M is passed.
Huh. Either your maths is wrong or...
Here's case 1:
> vmalloc : 0xc8800000 - 0xf8000000 ( 760 MB)
And case 2:
> vmalloc : 0xc3000000 - 0xf8000000 ( 848 MB)
Looks to me like case 1, vmalloc space is _higher_ not _lower_. That's
expected because you told the kernel it had more memory in case 1.
next prev parent reply other threads:[~2011-08-25 10:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-25 4:05 Question on virtual memory layout: lowmem with memory hole Pedanekar, Hemant
2011-08-25 10:22 ` Russell King - ARM Linux [this message]
2011-08-25 18:36 ` Pedanekar, Hemant
2011-08-25 18:52 ` Russell King - ARM Linux
2011-08-26 17:41 ` Pedanekar, Hemant
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=20110825102245.GA10405@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).