- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a simple test code to test memory
Program Main
ALLOCATABLE :: PNEW(:)
M=1024*1024*470
ALLOCATE (PNEW(0:M))
DO J=1,M
PNEW(J)=J
ENDDO
WRITE(*,*) PNEW(M)
DEALLOCATE (PNEW)
END
The code runs properly with M set at 1024*1024*470, once I increase M to 1024*1024*480. The erros comes out:
Forrt1: severe (41): insufficient virtual memory
I have 3G memory (XP) and 8G virutual memory. I increased the Virtual memory, the problem still exists. What step do you think I should take?
Thanks,
Emerson
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You do not have 8G virtual memory unless you're using XP x64 (or another 64-bit OS.) 2GB is the limit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So if I upgrade my machine to 64 bit, I can have up to 4 GB virtual memory, right?
Thanks for your reply.
Emerson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You'd have MUCH more than 4GB virtual memory available, depending on how much disk space you had for your swapfile.

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