Memory addressing problem.

For system help, all hardware / software topics NOTE: use Coders Corner for all coders topics.

Moderators: Krom, Grendel

Post Reply
User avatar
Iceman
DBB Habitual Type Killer
DBB Habitual Type Killer
Posts: 4929
Joined: Thu Apr 20, 2000 2:01 am
Location: Huntsville, AL. USA
Contact:

Memory addressing problem.

Post by Iceman »

We have a PC at here work that was recently upgraded to 4Gb RAM. Windows XP sees the RAM but we cannot allocate space larger than 2Gb from our C++ programs. Has anyone seen this before? Could this be a Windows limitation? Could this be a RAM problem? I am perplexed ...
User avatar
Iceman
DBB Habitual Type Killer
DBB Habitual Type Killer
Posts: 4929
Joined: Thu Apr 20, 2000 2:01 am
Location: Huntsville, AL. USA
Contact:

Post by Iceman »

Never mind ... I found it ... There is a 2Gb heap limit PER PROCESS in windows ...

http://teamapproach.ca/trouble/Memory.htm

http://www.mail-archive.com/activeperl@ ... 15067.html
User avatar
Iceman
DBB Habitual Type Killer
DBB Habitual Type Killer
Posts: 4929
Joined: Thu Apr 20, 2000 2:01 am
Location: Huntsville, AL. USA
Contact:

Post by Iceman »

dbl post++
User avatar
Krom
DBB Database Master
DBB Database Master
Posts: 16138
Joined: Sun Nov 29, 1998 3:01 am
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
Contact:

Post by Krom »

You can delete your posts if you accidentally double post on this BB. At least the "delete this post" checkbox in the edit post says so. I have not actually tested it.
User avatar
SSX-Thunderbird
DBB Admiral
DBB Admiral
Posts: 1275
Joined: Sun Jun 03, 2001 2:01 am
Location: Washington (the state, not the city)

Post by SSX-Thunderbird »

But your postcount goes down by one if you do that :P.

All systems in the NT core have this 2GB limit. Of the 4GB, the system allocates 2GB for itself (maximum) and 2GB for programs. At least that's what I remember reading.
User avatar
Iceman
DBB Habitual Type Killer
DBB Habitual Type Killer
Posts: 4929
Joined: Thu Apr 20, 2000 2:01 am
Location: Huntsville, AL. USA
Contact:

Post by Iceman »

SSC-Thunderbird wrote:But your postcount goes down by one if you do that :P.
yup++ :D
User avatar
DCrazy
DBB Alumni
DBB Alumni
Posts: 8826
Joined: Wed Mar 15, 2000 3:01 am
Location: Seattle

Post by DCrazy »

I just wish that we could break the 4GB barrier... but reading up on my protected mode documentation means that's not the case.
User avatar
SSX-Thunderbird
DBB Admiral
DBB Admiral
Posts: 1275
Joined: Sun Jun 03, 2001 2:01 am
Location: Washington (the state, not the city)

Post by SSX-Thunderbird »

From what I've read, a 32-bit system cannot address more than that at once.
User avatar
DCrazy
DBB Alumni
DBB Alumni
Posts: 8826
Joined: Wed Mar 15, 2000 3:01 am
Location: Seattle

Post by DCrazy »

Yeah, except for a 32/64 hybrid.
User avatar
fliptw
DBB DemiGod
DBB DemiGod
Posts: 6459
Joined: Sat Oct 24, 1998 2:01 am
Location: Calgary Alberta Canada

Post by fliptw »

or, you do it like the Xeons do it.

36-bit addressing.

there are versions of windows that allow a greater than 2GB heap.

The more expensive ones, IIRC.
Post Reply