Re: Memory allocation problem [message #64062 is a reply to message #32923] |
Fri, 28 November 2008 08:12   |
Foldy Lajos
Messages: 268 Registered: October 2001
|
Senior Member |
|
|
On Fri, 28 Nov 2008, Paolo wrote:
> There seems to be a problem with that on my machine.
> memtest reports that it can allocate *any* memory size
> I want (at least up to 2 TB).
> Since that is larger than my hard drive, not even
> reckless virtual memory usage could go that far...
>
> IDL> help,!version,/st
> ** Structure !VERSION, 8 tags, length=104, data length=100:
> ARCH STRING 'x86_64'
> OS STRING 'darwin'
> OS_FAMILY STRING 'unix'
> OS_NAME STRING 'Mac OS X'
> RELEASE STRING '7.0.4'
> BUILD_DATE STRING 'Sep 3 2008'
> MEMORY_BITS INT 64
> FILE_OFFSET_BITS
> INT 64
A shot in the dark: memtest does not use the memory, only allocates it.
Probably Mac OS X is 'lazy' and it allocates memory pages when they are
first used. Try to remove the /nozero keyword in
; Allocate memory (if possible)
memPtrs[i] = ptr_new(bytarr(currentBlockSize, /nozero), /no_copy)
regards,
lajos
|
|
|