kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: mulyadi.santosa@gmail.com (Mulyadi Santosa)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Can i allocate 4GB virtual addresses (more than a certain limit) using vmalloc?
Date: Tue, 31 May 2011 14:02:49 +0700	[thread overview]
Message-ID: <BANLkTi=r7o3ZMWMw-bWbHQTykGmexbVbOA@mail.gmail.com> (raw)
In-Reply-To: <BANLkTikCwSmk5SuCVmhCzyKM9dQeWY8MVw@mail.gmail.com>

Hi...

I am not ARM guy, but I'll see what I can share here..... hold your breath :)

On Tue, May 31, 2011 at 12:54, sandeep kumar <coolsandyforyou@gmail.com> wrote:
> Hi all,
> The following link gives the memory map for the arm architecture.
> http://www.arm.linux.org.uk/developer/memory.txt
>
> I have the following doubts..
> 1) Any chipset(based on arm) manufacturer(qualcom,samsung..) should follow
> the same memory map.
> Is it hardly constrained or can be changed?
> Where are?this constraints are implemented in the kernel source tree?

you mean, device memory map? well AFAIK that is dictated by
BIOS....kernel simply just follow along...

>
> 2) while i was student,?i read in?OS concepts?that, "Virtual memory gives?an
> illusion?to a?process,
> that it?has always a larger?continuous address space (even more than RAM)
> available to it."

that's true... but you need to count another limitation: addressable
or not by the MMU or at least processor itself?

let's say you have 16 GiB of virtual memory, composed of 4 GiB of RAM
+ 12 GiB swap. Theoritically, a single process should be able to use
them all, but assuming we have no PAE enabled, an 32 bit system could
only address up to 4 GiB

> So i thought i could allocate howmuch ever memory i want.

Also think about fragmentation...

> But seeing the above link,i observed?there is some limitation in the address
> space created by the vmalloc().
> So i m now thinking that vmalloc has some?limit.

Yup.....

maybe my old article could shed a light further for you:
http://linuxdevcenter.com/pub/a/linux/2006/11/30/linux-out-of-memory.html

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

  reply	other threads:[~2011-05-31  7:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-31  5:54 Can i allocate 4GB virtual addresses (more than a certain limit) using vmalloc? sandeep kumar
2011-05-31  7:02 ` Mulyadi Santosa [this message]
2011-05-31  8:09   ` sandeep kumar
2011-05-31 15:19 ` Dave Hylands
2011-08-22 21:43   ` subin gangadharan
2011-08-22 22:27     ` Jonathan Neuschäfer
2011-05-31 15:27 ` Peter Teoh
2011-06-01  4:24   ` sandeep kumar

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='BANLkTi=r7o3ZMWMw-bWbHQTykGmexbVbOA@mail.gmail.com' \
    --to=mulyadi.santosa@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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).