This is the mail archive of the
mailing list for the Cygwin project.
Increasing Available Memory for Cygwin Run Programs in XP
- From: "Brad Krane" <brad dot krane at gmail dot com>
- To: "Cygwin General List" <cygwin at cygwin dot com>
- Date: Thu, 11 May 2006 02:46:28 -0400
- Subject: Increasing Available Memory for Cygwin Run Programs in XP
I am trying to run a numerical simulation that requires a large amount
of RAM in the cygwin environment running on a Pentium 4 with Windows
XP and 3GB RAM. I have so far learned that Windows XP (and other
Windows versions) allot only 2GB RAM for user program space. I have
verified this with a small program I developed that allocates the
maximum available memory to 4 bytes.
In Windows when I run this program I am able to allocate a total of
1.94GB of memory, however, when I run the same code in Cygwin I am
only able to allocate 1.12GB of memory.
I am not the only person to have come across a similar problem in the
past. I have been searching through the archives and so far have found
3 notable references from topics that can be found here:
In the first topic it is said that using the -mno-cygwin flag in the
compiler options will allow programs to gain access to more memory by
having them by pass the cygwin1.dll. This however produces the
undesirable side effect of an error compiling, as the program
references sys/resource.h and I can only assume that this would
require the use of cygwin1.dll. I don't suppose there is much of a way
The second idea I found was to set the registry item
x" where 'x' is the amount in MB(obviously). I set this value to a
safe amount of 1950000MB or 1.90GB. Unfortunately this does nothing
and I am left with the exact same amount of memory.
Finally there was the idea to run XP with the /3gb option set in the
boot.ini to increase the user program space from 2GB to 3GB. The
problem is that after a reboot I am still only able to allocate 1.94GB
of RAM with a Windows XP binary and 1.12GB through Cygwin. Could this
be a side-effect of having only 3GM or physical memory or would the
page file accommodate this(as I think)?
I've noticed that the messages are at least one year old. Has anything
significant that would affect these "fixes" have changed since then?
Does anyone have any fresh ideas or work around aside from a new OS?
On a further note I have noticed that in the Advanced Properties of
the Cygwin shortcut that is set to run in a separate memory space by
default and I am unable to change this even when making a shortcut
directly to bash.exe itself. Could this be affecting the available
memory and if so is there anyway to modify this property?
Thank you for your time and effort.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html