Re: apparent 4 GB memory limit for brk() in solaris 8 on some hardware...?



clsmyth@xxxxxxxxxxxxxxx wrote:

Folks,

Hi, I have never posted to a language group before so please excuse me
if this is inappropriate.

It's not -- but it's closer to appropriate than some of the nonsense that goes on around here, ergo ego te absolvo if you'll say ten "Hail, Dennises" and give up undefined behavior for a week.

[...] The process grows to about 4 GB in RAM and then spits
out an error like this:

malloc(33554440) failed
app_name is aborting because it can't get more than 3838 megabytes of
memory

<off-topic>

    I betcha I betcha I just betcha the program was compiled
and linked as a 32-bit application.  A 32-bit pointer can have
only 4G distinct values, and so can address only 4GB of memory
no matter how much the system may have available.  A 32-bit
process is therefore limited to an address of no more than
4GB -- and it turns out that your O/S (Solaris) claims a little
bit of that space for its own purposes.

    The cure -- well, there are two possible cures.  First, you
may be looking at a memory leak in the program that causes it
to grow without limit.  If so, you need to find and fix that
bug.  Second, the program may be all right but your problem size
may require more memory than 4GB-minus-a-sliver.  If so, you need
to rebuild the program as a 64-bit application; this will get
you a "modest increase" in the amount of memory you can handle ...

</off-topic>

    Good luck!

--
Eric Sosman
esosman@xxxxxxxxxxxxxxxxxxx
.



Relevant Pages

  • Re: Dell Dimension 3000 memory add-on
    ... Betcha $5 he's running XP. ... XP doesn't care what memory your board has - it just wants ... The question doesn't belong HERE. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Possible bridges between OO programming proponents and relational model
    ... Segmented memory is not the same as two-dimensional memory. ... To give yourself some indication of why anglophones cannot understand you when you use the word "bidimensionality" while flitting between the logical and the physical, I suggest you search for the following terms on google including the quotation marks for each. ... J M Davitt asked once for clarification indicating you were not communicating well and once pointed out that your style of quoting interferes with communication. ... Fools talk nonsense all the time. ...
    (comp.databases.theory)
  • Re: MS Office file formats
    ... This is nonsense - binary format simply means non-ascii. ... You could never 'blit' the data unchanged between memory and disk ...
    (uk.comp.sys.mac)
  • Re: Please vote on this suggestion...
    ... Comparing it to the GC is just a nonsense. ... file to one or more projects in the IDE. ... because if everyone gets rid of the memory used by ...
    (microsoft.public.dotnet.languages.vb)
  • Re: .EXE -> .ASM -> .EXE
    ... This is nonsense. ... The only time they save memory is ... when you have enough applications *running concurrently* that use that ... For an assembly language library, well, how many RosAsm apps do you ...
    (alt.lang.asm)