From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,c1aec016742c3aa4 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-12-19 02:09:56 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: emmanuel.choquet@hp.com (Emmanuel Choquet) Newsgroups: comp.unix.tru64 Subject: Re: Malloc limitations under 5.1a Date: 19 Dec 2002 02:09:56 -0800 Organization: http://groups.google.com/ Message-ID: <7aabdf42.0212190209.20ede759@posting.google.com> References: <%I9M9.46294$_S2.34530@nwrddc01.gnilink.net> NNTP-Posting-Host: 161.114.126.52 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1040292596 6580 127.0.0.1 (19 Dec 2002 10:09:56 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 19 Dec 2002 10:09:56 GMT Xref: archiver1.google.com comp.unix.tru64:9299 "Nico Kadel-Garcia" 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