Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Malloc limitations under 5.1a
@ 2002-12-19  1:58 Nico Kadel-Garcia
  2002-12-19 10:09 ` Emmanuel Choquet
  2002-12-19 19:46 ` Chris Adams
  0 siblings, 2 replies; 4+ messages in thread
From: Nico Kadel-Garcia @ 2002-12-19  1:58 UTC (permalink / raw)


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?




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Malloc limitations under 5.1a
  2002-12-19  1:58 Malloc limitations under 5.1a Nico Kadel-Garcia
@ 2002-12-19 10:09 ` Emmanuel Choquet
  2002-12-19 19:46 ` Chris Adams
  1 sibling, 0 replies; 4+ messages in thread
From: Emmanuel Choquet @ 2002-12-19 10:09 UTC (permalink / raw)


"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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Malloc limitations under 5.1a
  2002-12-19  1:58 Malloc limitations under 5.1a Nico Kadel-Garcia
  2002-12-19 10:09 ` Emmanuel Choquet
@ 2002-12-19 19:46 ` Chris Adams
  2002-12-20  4:59   ` Nico Kadel-Garcia
  1 sibling, 1 reply; 4+ messages in thread
From: Chris Adams @ 2002-12-19 19:46 UTC (permalink / raw)


Once upon a time, Nico Kadel-Garcia <nkadel@bellatlantic.net> said:
>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?

Hey, if they are writing "portable" code, it should compile with the
native compiler (otherwise, they are writing gcc-specific code!).

That probably doesn't help you much though.  I have not run into such a
limitation with gcc, but I don't think I've had anything malloc 1G.
-- 
Chris Adams <cmadams@hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Malloc limitations under 5.1a
  2002-12-19 19:46 ` Chris Adams
@ 2002-12-20  4:59   ` Nico Kadel-Garcia
  0 siblings, 0 replies; 4+ messages in thread
From: Nico Kadel-Garcia @ 2002-12-20  4:59 UTC (permalink / raw)


Chris Adams wrote:
> Once upon a time, Nico Kadel-Garcia <nkadel@bellatlantic.net> said:
>> 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?
>
> Hey, if they are writing "portable" code, it should compile with the
> native compiler (otherwise, they are writing gcc-specific code!).
>
> That probably doesn't help you much though.  I have not run into such
> a limitation with gcc, but I don't think I've had anything malloc 1G.

It's for Matlab use: the Tru64 system has > 4Gig of RAM for precisely this
sort of issue. But as RAM prices drop and Linux and other kernels get
smarter, it would be useful to run some of the code elsewhere.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-12-20  4:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-19  1:58 Malloc limitations under 5.1a Nico Kadel-Garcia
2002-12-19 10:09 ` Emmanuel Choquet
2002-12-19 19:46 ` Chris Adams
2002-12-20  4:59   ` Nico Kadel-Garcia

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