From: Hifi-Comp on
I have a program which has a huge demand on memory use. It is compiled
using gfortran. When it is compiled and run in Windows XP, it fails
when the code trying to allocate 1.8GB memory. It is a laptop with 4GB
physical memory and 2GB virtual memeory and Page file space 11GB. By
the time it allocates the 2.0GB memory, the computer has 2.8GB
available physical memory. I guess it is because there is not a
continuous block of 1.8GB in the vailable 2.8GB physical memory.
However, how about the virtual memory and the page file?

When the code is compiled and run in Linux, I don't have such
program.

Any idea or suggestion of how to persuade a Fortran code to use
virtual memory in windows system will be greatly appreciated. Thanks a
lot in advance!
From: Richard Maine on
Hifi-Comp <wenbinyu.heaven(a)gmail.com> wrote:

> Any idea or suggestion of how to persuade a Fortran code to use
> virtual memory in windows system will be greatly appreciated.

I'm far from a Windows expert, but I think I know your problem anyway.
See the page
<http://msdn.microsoft.com/en-us/library/aa366778(VS.85).aspx>
(or just google "windows memory limit", which is how I found it).

You didn't mention the details of exactly what version of XP you have,
but I'l guess it is a 32-bit version. That's partially based on the fact
that you didn't mention, because I figure if you had a 64-bit one you
would have thought to say. Also partially based on the fact that that's
the most common.

If that's the case, according to the above-cited table, the OS limits
each process to 2 GB, or maybe 3 with some special fiddling (see the web
page for details). Ain't no way you are going to exceed that; it's an OS
limit - not a Fortran one. Well, you could get a 64-bit version of the
OS. That's mostly what 64-bit operating systems buy you. There can be
other small points, or maybe some that arguably aren't so small, but a
bigger virtual address space is the biggie - so to speak.

--
Richard Maine | Good judgment comes from experience;
email: last name at domain . net | experience comes from bad judgment.
domain: summertriangle | -- Mark Twain
From: Hifi-Comp on
Yes. I am using xp sp3 a 32-bit version. Is there any way to persuade
the system to use more memory for one process.
On Feb 18, 11:41 pm, nos...(a)see.signature (Richard Maine) wrote:
> Hifi-Comp <wenbinyu.hea...(a)gmail.com> wrote:
> > Any idea or suggestion of how to persuade a Fortran code to use
> > virtual memory in windows system will be greatly appreciated.
>
> I'm far from a Windows expert, but I think I know your problem anyway.
> See the page
> <http://msdn.microsoft.com/en-us/library/aa366778(VS.85).aspx>
> (or just google "windows memory limit", which is how I found it).
>
> You didn't mention the details of exactly what version of XP you have,
> but I'l guess it is a 32-bit version. That's partially based on the fact
> that you didn't mention, because I figure if you had a 64-bit one you
> would have thought to say.  Also partially based on the fact that that's
> the most common.
>
> If that's the case, according to the above-cited table, the OS limits
> each process to 2 GB, or maybe 3 with some special fiddling (see the web
> page for details). Ain't no way you are going to exceed that; it's an OS
> limit - not a Fortran one. Well, you could get a 64-bit version of the
> OS. That's mostly what 64-bit operating systems buy you. There can be
> other small points, or maybe some that arguably aren't so small, but a
> bigger virtual address space is the biggie - so to speak.
>
> --
> Richard Maine                    | Good judgment comes from experience;
> email: last name at domain . net | experience comes from bad judgment.
> domain: summertriangle           |  -- Mark Twain

From: Hifi-Comp on
I guess the only way is to use PAE or 4G turning.

On Feb 19, 7:47 am, Hifi-Comp <wenbinyu.hea...(a)gmail.com> wrote:
> Yes. I am using xp sp3 a 32-bit version. Is there any way to persuade
> the system to use more memory for one process.
> On Feb 18, 11:41 pm, nos...(a)see.signature (Richard Maine) wrote:
>
>
>
> > Hifi-Comp <wenbinyu.hea...(a)gmail.com> wrote:
> > > Any idea or suggestion of how to persuade a Fortran code to use
> > > virtual memory in windows system will be greatly appreciated.
>
> > I'm far from a Windows expert, but I think I know your problem anyway.
> > See the page
> > <http://msdn.microsoft.com/en-us/library/aa366778(VS.85).aspx>
> > (or just google "windows memory limit", which is how I found it).
>
> > You didn't mention the details of exactly what version of XP you have,
> > but I'l guess it is a 32-bit version. That's partially based on the fact
> > that you didn't mention, because I figure if you had a 64-bit one you
> > would have thought to say.  Also partially based on the fact that that's
> > the most common.
>
> > If that's the case, according to the above-cited table, the OS limits
> > each process to 2 GB, or maybe 3 with some special fiddling (see the web
> > page for details). Ain't no way you are going to exceed that; it's an OS
> > limit - not a Fortran one. Well, you could get a 64-bit version of the
> > OS. That's mostly what 64-bit operating systems buy you. There can be
> > other small points, or maybe some that arguably aren't so small, but a
> > bigger virtual address space is the biggie - so to speak.
>
> > --
> > Richard Maine                    | Good judgment comes from experience;
> > email: last name at domain . net | experience comes from bad judgment.
> > domain: summertriangle           |  -- Mark Twain- Hide quoted text -
>
> - Show quoted text -

From: Hifi-Comp on
I just find out that my system has PAE enabled. So now what is the
solution of my original problem.

On Feb 19, 8:41 am, Hifi-Comp <wenbinyu.hea...(a)gmail.com> wrote:
> I guess the only way is to use PAE or 4G turning.
>
> On Feb 19, 7:47 am, Hifi-Comp <wenbinyu.hea...(a)gmail.com> wrote:
>
>
>
> > Yes. I am using xp sp3 a 32-bit version. Is there any way to persuade
> > the system to use more memory for one process.
> > On Feb 18, 11:41 pm, nos...(a)see.signature (Richard Maine) wrote:
>
> > > Hifi-Comp <wenbinyu.hea...(a)gmail.com> wrote:
> > > > Any idea or suggestion of how to persuade a Fortran code to use
> > > > virtual memory in windows system will be greatly appreciated.
>
> > > I'm far from a Windows expert, but I think I know your problem anyway..
> > > See the page
> > > <http://msdn.microsoft.com/en-us/library/aa366778(VS.85).aspx>
> > > (or just google "windows memory limit", which is how I found it).
>
> > > You didn't mention the details of exactly what version of XP you have,
> > > but I'l guess it is a 32-bit version. That's partially based on the fact
> > > that you didn't mention, because I figure if you had a 64-bit one you
> > > would have thought to say.  Also partially based on the fact that that's
> > > the most common.
>
> > > If that's the case, according to the above-cited table, the OS limits
> > > each process to 2 GB, or maybe 3 with some special fiddling (see the web
> > > page for details). Ain't no way you are going to exceed that; it's an OS
> > > limit - not a Fortran one. Well, you could get a 64-bit version of the
> > > OS. That's mostly what 64-bit operating systems buy you. There can be
> > > other small points, or maybe some that arguably aren't so small, but a
> > > bigger virtual address space is the biggie - so to speak.
>
> > > --
> > > Richard Maine                    | Good judgment comes from experience;
> > > email: last name at domain . net | experience comes from bad judgment..
> > > domain: summertriangle           |  -- Mark Twain- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -