- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I understand that max memory to run program is 2gb under win 32bit.
Now I'm using win7 64bit with 64bit compiler. What's the new theoretical and practical limit now?
What can I do to maximize this amount of memory?
Thanks!
I understand that max memory to run program is 2gb under win 32bit.
Now I'm using win7 64bit with 64bit compiler. What's the new theoretical and practical limit now?
What can I do to maximize this amount of memory?
Thanks!
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It depends on the version. See http://msdn.microsoft.com/en-us/library/windows/desktop/aa366778(v=vs.85).aspx#physical_memory_limits_windows_7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you've set restrictions on your program which liimit it to 2GB on Win32, those restrictions may apply under X64 as well. The primary means for going beyond 2GB is with allocatable arrays. In Win32 you gain potentially just 1GB additional non-contiguous address space for those; Win-x64 gives you more than your physical memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting quarkz
Hi,
I understand that max memory to run program is 2gb under win 32bit.
[SergeyK] For a 32-bitWindows OSwithout AWEthis is 2GB.
For a 32-bitWindows OSwith AWEthis is more than2GB.
Now I'm using win7 64bit with 64bit compiler. What's the new theoretical and practical limit now?
[SergeyK] Please take a lookat a piece of code from a 'malloc.h' header file.
What can I do to maximize this amount of memory?
[SergeyK] More physical memory and abiggerVirtual Memory file.
Also, try to avoid Memory Leaks in your application.
I understand that max memory to run program is 2gb under win 32bit.
[SergeyK] For a 32-bitWindows OSwithout AWEthis is 2GB.
For a 32-bitWindows OSwith AWEthis is more than2GB.
Now I'm using win7 64bit with 64bit compiler. What's the new theoretical and practical limit now?
[SergeyK] Please take a lookat a piece of code from a 'malloc.h' header file.
What can I do to maximize this amount of memory?
[SergeyK] More physical memory and abiggerVirtual Memory file.
Also, try to avoid Memory Leaks in your application.
...
/* Maximum heap request the heap manager will attempt */
#ifdef _WIN64
#define _HEAP_MAXREQ 0xFFFFFFFFFFFFFFE0
#else
#define _HEAP_MAXREQ 0xFFFFFFE0
#endif
...
Note: AWE - Address Windowing Extensions ( a Microsoft's technology )
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page