Win64 and LARGEADDRESSAWARE



"Gilles Vollant" <info@xxxxxxxxxxxx> wrote in message
news:ec4DFpIQFHA.1076@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> "Mike Roberts" <"miker at tulgagames dot com"> a écrit dans le message de
> news: OHGVPhIQFHA.1604@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> I've noticed in the AMD64 documentation that the linker has a
>> /LARGEADDRESSAWARE:[NO] option. Are addresses above 2G enabled by default
>> on this platform?
>
> yes, addresses above 2G are enabled by default on 64 bits platform
>
>

I have a further question on this topic. We have an AMD64 system in house,
we loaded the release candidate Windows XP 64Bit and created a couple of
small applications targeting 64Bit. We just compiled a small C app that
just called VirtualAlloc repeatedly and printed out how much memory we were
allowed to allocate. We were never able to get beyond 3Gb. And it was
necessary to specify the LARGEADDRESSAWARE option.

How is one supposed to get beyond 3Gb?

And I have read that running a 32bit app under WOW64 should allow it to grab
all 4GB of possible address space. When we do this with a standard 32bit
app and just allocate memory we are not able to get beyond 2Gb. Setting the
LARGEADDRESSAWARE flag in the pe file header allows us to get to 3GB, but in
no cases were were able to get all 4GB of memory.

Does anyone know what it is we might be doing incorrectly? Our application
is often bumping up against the 2GB address limit because of the size of the
data we must process. Telling our customers that they can buy an AMD64 or
an Intel EMT64 based processor and use the 64 bit OS from Microsoft would
give them 4Gb of virtual address space would be a big win for us.

Any pointers or information on this topic beyond what is in MSDN would be
very helpful.

Thanks,

-Eric Twietmeyer


.



Relevant Pages

  • Win64 and LARGEADDRESSAWARE
    ... addresses above 2G are enabled by default on 64 bits platform ... necessary to specify the LARGEADDRESSAWARE option. ... And I have read that running a 32bit app under WOW64 should allow it to grab ... app and just allocate memory we are not able to get beyond 2Gb. ...
    (microsoft.public.win32.programmer.kernel)
  • What happen to bimonthly status reports?
    ... I've been tasked with putting together a large memory ... to check the status of the AMD64 and IA64 port on the ... what is the status of the AMD64 ... max memory per platform and max ...
    (freebsd-current)
  • Re: Nocona [Intel 64-bit cpu timing]
    ... memory at 4.5GiB/sec. ... As in the case of the Nocona vs. AMD64. ... my Prescott when on a Pentium M. ... The Prescott tops out at probably around ...
    (sci.crypt)
  • Re: vm.kmem_size settings doesnt affect loader?
    ... If your machine has some small amount of memory, ... then you probably shouldn't be using ZFS. ... The i386 vs. amd64 argument is bogus, ... kernel code and absolutely no experience with kernel memory management. ...
    (freebsd-stable)
  • Re: Nocona [Intel 64-bit cpu timing]
    ... >> to main memory is rare. ... > That'd be an interesting fact except my AMD64 is a dual-core. ... My comment was that dual-core RSA on the ... nocona is STILL SLOWER than a single-core AMD64 running RSA. ...
    (sci.crypt)