Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: emmanuel.choquet@hp.com (Emmanuel Choquet)
Subject: Re: Malloc limitations under 5.1a
Date: 19 Dec 2002 02:09:56 -0800	[thread overview]
Message-ID: <7aabdf42.0212190209.20ede759@posting.google.com> (raw)
In-Reply-To: %I9M9.46294$_S2.34530@nwrddc01.gnilink.net

"Nico Kadel-Garcia" <nkadel@bellatlantic.net> wrote in message news:<%I9M9.46294$_S2.34530@nwrddc01.gnilink.net>...
> I've got some users growsing that gcc-3.04 will not allow them to malloc
> more than 1 Gig of RAM, while the built-in compiler will. They prefer gcc
> for portability reasons, but this malloc allegedly fails *silently*: is
> anyone else familiar with this limitation or any ways to address it
> gracefully?

In what library is the malloc you link against with gcc ?

Just a remark, by default,  you do not malloc RAM, but VM. malloc will
enlarge your virtual address space, at least the first time you call
it. but RAM, so Resident Set will be created at first access with Zero
Filled pages.

free will not reduce your Virtual address space, same space created
will be used by next mallocs.

In one case malloc will create Resident Set - IE RAM - at call : in
this mode your process locks his pages in RAM. this is a real time
extension option.


Cheers


  reply	other threads:[~2002-12-19 10:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-19  1:58 Malloc limitations under 5.1a Nico Kadel-Garcia
2002-12-19 10:09 ` Emmanuel Choquet [this message]
2002-12-19 19:46 ` Chris Adams
2002-12-20  4:59   ` Nico Kadel-Garcia
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox