[prev in list] [next in list] [prev in thread] [next in thread] 

List:       beowulf
Subject:    Re: problem allocating large amount of memory
From:       Roland Krause <rokrau () yahoo ! com>
Date:       2003-12-06 1:05:56
[Download RAW message or body]

Mark,

thanks for the clarification. I was now able to squeeze
TASK_UNMAPPED_BASE to a rather small fraction of TASK_SIZE and to
allocate enough memory for the application in question. 

Again, thanks a lot for your very helpful comments. 

Roland


--- Mark Hahn <hahn@physics.mcmaster.ca> wrote:
> 
> I probably should have commented on the code a bit more.  it
> demonstrates
> three separate things: that for <128K allocations, libc uses the heap
> first, then when that fills (hits the mmap arena) it switches to
> allocating
> in the mmap arena.  if allocations are 128K or more, it *starts* in
> the 
> mmap arena (since mmap has advantages when doing large allocations -
> munmap).  
> finally, if you statically link and avoid the use of stdio,
> you can make one giant allocation from the end of text up to stack.
> 
> 

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
_______________________________________________
Beowulf mailing list, Beowulf@beowulf.org
To change your subscription (digest mode or unsubscribe) visit \
http://www.beowulf.org/mailman/listinfo/beowulf


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic