From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: nagendra_tomar@adaptec.com
Cc: Tung-Han Hsieh <thhsieh@xcin.phys.ntu.edu.tw>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
jamagallon@able.es
Subject: Re: malloc problem to allocate very large blocks
Date: 29 Jul 2003 12:52:51 +0100 [thread overview]
Message-ID: <1059479571.3118.3.camel@dhcp22.swansea.linux.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.44.0307291027230.17227-100000@localhost.localdomain>
On Maw, 2003-07-29 at 05:58, Nagendra Singh Tomar wrote:
> AFAIK malloc will not return you memory more than the total virtual memory
> (RAM+swap) in the system. So if you want more than 2GB allocations from
> malloc, make sure you have at least 2GB virtual mem, keeping aside some
> space for the kernel.
On the default memory settings it may do. However a request for 2Gb of
memory requires there is a free 2Gb of address space to map it into -
which may not be true because of things like shared libraries.
The actual total allocatable limit for x86 is a bit under 3Gb, but you
won't get that as one linear allocation. (1Gb is kernel mappings)
prev parent reply other threads:[~2003-07-29 11:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-28 6:44 Tung-Han Hsieh
2003-07-28 8:37 ` jw schultz
2003-07-28 9:14 ` jw schultz
2003-07-29 4:58 ` Nagendra Singh Tomar
2003-07-29 5:02 ` Nagendra Singh Tomar
2003-07-29 11:52 ` Alan Cox [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=1059479571.3118.3.camel@dhcp22.swansea.linux.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=jamagallon@able.es \
--cc=linux-kernel@vger.kernel.org \
--cc=nagendra_tomar@adaptec.com \
--cc=thhsieh@xcin.phys.ntu.edu.tw \
/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®