public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: Does Cygwin have a 2GB Memory/RAM limit ?
@ 2003-10-30 14:26 Vince Hoffman
  0 siblings, 0 replies; 15+ messages in thread
From: Vince Hoffman @ 2003-10-30 14:26 UTC (permalink / raw)
  To: 'dan_nazario@americancentury.com', cygwin

Although it doesnt seem to agree fully with Gerrits description, there is a
good description of what that /3Gb switch does at
http://www.sysinternals.com/ntw2k/info/bootini.shtml
It is related to memory not disk partitions, but read for yorself rather
than have me paraphrase it.

> -----Original Message-----
> From: Dan_Nazario/ACIM/americancentury@americancentury.com
> [mailto:Dan_Nazario/ACIM/americancentury@americancentury.com]
> Sent: 30 October 2003 13:25
> To: cygwin@cygwin.com
> Subject: Re: Does Cygwin have a 2GB Memory/RAM limit ?
> 
> 
> 
> 
> 
> 
> Gerrit - thanks for your reply.
> 
> In looking at the boot.ini snip, it looks like it is related 
> to the size of
> disk partitions being greater than 2GB.
> 
> I'm referring to a limit on the RAM/Memory that cygwin 
> appears to impose.
> My server has 8GB of RAM, but cygwin sees only 2GB of it according to
> vmstat and top commands running in the cygwin bash shell.
> 
> 
> Dan Nazario
> 
> 
> 
> 
> 
>                                                               
>                                                                     
>                                                               
>                                                                     
>                         "Gerrit P.                            
>                                                                     
>                         Haase"                 To:       
> "Dan_Nazario/ACIM/americancentury@americancentury.com"        
>            
>                         <freeweb@nyckel         
> <dan_nazario@americancentury.com>                             
>                     
>                         piga.de>               cc:       
> cygwin@cygwin.com                                             
>            
>                                                Subject:  Re: 
> Does Cygwin have a 2GB Memory/RAM limit ?                            
>                         Sent by:                              
>                                                                     
>                         cygwin-owner@cy                       
>                                                                     
>                         gwin.com                              
>                                                                     
>                                                               
>                                                                     
>                                                               
>                                                                     
>                         10/30/2003                            
>                                                                     
>                         06:10 AM                              
>                                                                     
>                         Please respond                        
>                                                                     
>                         to "Gerrit P.                         
>                                                                     
>                         Haase"                                
>                                                                     
>                                                               
>                                                                     
>                                                               
>                                                                     
>                                                               
>                                                                     
>                                                               
>                                                                     
>                                                               
>                                                                     
> 
> 
> 
> 
> Dan wrote:
> 
> 
> > Can anyone else confirm this - that memory above 2GB is not 
> visible to
> > cygwin.  Any known work-arounds?
> 
> There is a Windows limitation, no application may allocate 
> more then 2GB
> unless you specify the right value (e.g. /3GB) in the boot.ini file.
> 
> boot.ini example:
> 
> [Boot Loader]
> Timeout=7
> Default=scsi(0)disk(0)rdisk(0)partition(1)\WINNT
> [Operating Systems]
> scsi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows 2K Server" /3GB
> scsi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows 2K Server 
> [VGA-Modus]"
> /basevideo /sos
> 
> 
> Gerrit
> --
> =^..^=                                     
http://nyckelpiga.de/donate.html


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Does cygwin have a 2GB Memory/RAM limit ?
  2003-10-30 17:54 Does cygwin " Dan_Nazario/ACIM/americancentury
@ 2003-10-30 18:07 ` Brian Dessent
  0 siblings, 0 replies; 15+ messages in thread
From: Brian Dessent @ 2003-10-30 18:07 UTC (permalink / raw)
  To: cygwin

Dan_Nazario/ACIM/americancentury@americancentury.com wrote:

> Coming from a Solaris background, it did not even occur
> to me that "Windows 2003 enterprise server" would
> impose a 2GB usable memory limit by default on an application.
> 
> Doesn't seem like a very 'enterprise' sort of thing to do ;-)

It has less to do with the wishes of the software and everything to do
with ths IA32 architecture.  Despite the efforts of PAE, the x86 chips
can only address 32 bits (4GB) at any given time.  Since there must be
some division between kernel space and user space, it naturally follows
that there must be some artificial limit of under 4GB for applications. 
It would be a Bad Thing if the kernel were to run out of pages, hence
the default 50/50 partition.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Does cygwin have a 2GB Memory/RAM limit ?
@ 2003-10-30 17:54 Dan_Nazario/ACIM/americancentury
  2003-10-30 18:07 ` Brian Dessent
  0 siblings, 1 reply; 15+ messages in thread
From: Dan_Nazario/ACIM/americancentury @ 2003-10-30 17:54 UTC (permalink / raw)
  To: cygwin





> Cygwin doesn't control the memory use of non-cygwin programs.

Thank You cgf - that was the bit of information I was missing.

Coming from a Solaris background, it did not even occur
to me that "Windows 2003 enterprise server" would
impose a 2GB usable memory limit by default on an application.

Doesn't seem like a very 'enterprise' sort of thing to do ;-)

Thanks to all that replied.



|---------+-------------------------------->
|         |                                |
|         |             Christopher Faylor |
|         |             <cgf-no-reply-pleas|
|         |             e@cygwin.com>      |
|         |                                |
|         |             Sent by:           |
|         |             cygwin-owner@cygwin|
|         |             .com               |
|         |                                |
|         |                                |
|         |             10/30/2003 09:52 AM|
|         |             Please respond to  |
|         |             cygwin             |
|         |                                |
|         |                                |
|         |                                |
|         |                                |
|---------+-------------------------------->
  >------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                              |
  |                                                                                                                              |
  |       To:       cygwin@cygwin.com                                                                                            |
  |       cc:                                                                                                                    |
  |       Subject:  Re: Does cygwin have a 2GB Memory/RAM limit ?                                                                |
  >------------------------------------------------------------------------------------------------------------------------------|




On Thu, Oct 30, 2003 at 09:03:00AM -0500, Jared Ingersoll wrote:
>I think Java has some internal defaults, try setting the max heap size
>on the command line that calls the app (in MB's).

And, this really is off-topic for this list.  Please take it up in a
java-related list.  This has nothing to do with cygwin, AFAICT.
Cygwin doesn't control the memory use of non-cygwin programs.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Does Cygwin have a 2GB Memory/RAM limit ?
@ 2003-10-30 16:52 Dan_Nazario/ACIM/americancentury
  0 siblings, 0 replies; 15+ messages in thread
From: Dan_Nazario/ACIM/americancentury @ 2003-10-30 16:52 UTC (permalink / raw)
  To: cygwin

Have not had a chance yet.  But I think you are right.

I've referred you suggestion to our Windows Server team.

I also came across this which seems to confirm what you are saying and 
expand on it a bit.
http://groups.google.com/groups?q=windows+2003+enterprise+memory+2gb&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=8WEU9.17764%24X7.8393637%40twister.socal.rr.com&rnum=1

I will re-test cygwin after enabling the larger memory support.

Thanks Gerrit.






"Gerrit P. Haase" <freeweb@nyckelpiga.de>
10/30/2003 07:39 AM
Please respond to "Gerrit P. Haase"




 

        To:     dan_nazario@americancentury.com
        cc:     cygwin@cygwin.com
        Subject:        Re: Does Cygwin have a 2GB Memory/RAM limit ?


Dan wrote:

> In looking at the boot.ini snip, it looks like it is related to the size 
of
> disk partitions being greater than 2GB.

> I'm referring to a limit on the RAM/Memory that cygwin appears to 
impose.

I'm referring to the correct settings how to increase the default RAM
usage setting for applications running under Windows.

> My server has 8GB of RAM, but cygwin sees only 2GB of it according to
> vmstat and top commands running in the cygwin bash shell.

Have you actually tried what I told you?


Gerrit
-- 
=^..^=                                     http://nyckelpiga.de/donate.html





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Does cygwin have a 2GB Memory/RAM limit ?
  2003-10-30 15:28 Jared Ingersoll
@ 2003-10-30 16:44 ` Christopher Faylor
  0 siblings, 0 replies; 15+ messages in thread
From: Christopher Faylor @ 2003-10-30 16:44 UTC (permalink / raw)
  To: cygwin

On Thu, Oct 30, 2003 at 09:03:00AM -0500, Jared Ingersoll wrote:
>I think Java has some internal defaults, try setting the max heap size
>on the command line that calls the app (in MB's).

And, this really is off-topic for this list.  Please take it up in a
java-related list.  This has nothing to do with cygwin, AFAICT.
Cygwin doesn't control the memory use of non-cygwin programs.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: Does Cygwin have a 2GB Memory/RAM limit ?
@ 2003-10-30 15:28 Jared Ingersoll
  2003-10-30 16:44 ` Does cygwin " Christopher Faylor
  0 siblings, 1 reply; 15+ messages in thread
From: Jared Ingersoll @ 2003-10-30 15:28 UTC (permalink / raw)
  To: 'dan_nazario@americancentury.com', cygwin

I think Java has some internal defaults, try setting the max heap size on
the command line that calls the app (in MB's).

jared

-----Original Message-----
From: Dan_Nazario/ACIM/americancentury@americancentury.com
[mailto:Dan_Nazario/ACIM/americancentury@americancentury.com]
Sent: Wednesday, October 29, 2003 10:39 PM
To: cygwin@cygwin.com
Subject: Re: Does Cygwin have a 2GB Memory/RAM limit ?






I am running a Java application (Java version 1.4.x).

I try to allocate a JVM with anything much larger than 1.6GB and it fails.
So I started to look at memory (1.6GB is no problem for Java to allocate
providing everything else is working OK).

Two of the places I looked (see below) are the top command and vmstat.
Both of which reported 2GB of RAM available despite my having set max
memory size to 4GB.

Based on that observation, I assumed that cygwin has a built in memory
limit of 2GB.
I'm wondering if anyone has seen this before, or has an environment (RAM >
2GB) where they could do a quick test to see if setting the max memory to >
2GB(see html link below)  reports only 2GB available.

I've checked the FAQ, searched the news groups, googled 'till I can't
google no more ;-).  Can't find any reference to this.

Thanks for any help.

Dan Nazario





 

 

                        "Timothy C

                        Prince"                To:
dan_nazario@americancentury.com                                          
                        <tprince@myreal        cc:       cygwin@cygwin.com

                        box.com>               Subject:  Re: Does Cygwin
have a 2GB Memory/RAM limit ?                            
 

                        Sent by:

                        cygwin-owner@cy

                        gwin.com

 

 

                        10/29/2003

                        06:29 PM

 

 

 

 

 





I don't think you've defined your problem well enough to answer.  Are you
running a single thread gcc program which mallocs memory until it fails?
If you have multiple CPUs and run multiple threads or multiple instances of
your program, you might be able to use more of the memory.

-----Original Message-----
From: Dan_Nazario/ACIM/americancentury@americancentury.com
To: cygwin@cygwin.com
Date: Wed, 29 Oct 2003 17:40:02 -0600
Subject: Does Cygwin have a 2GB Memory/RAM limit ?

I am trying to run cygwin on a Windows 2003 server with 8GB of ram.

I have set the registry key to inform cygwin the max memory should be 4096
(4GB).  Checking the registry - I see the value is set to 4096.
(see: http://www.cygwin.com/cygwin-ug-net/setup-maxmem.html)
In spite of this, all indications are that it does not see more than 2GB
(2097151K) of RAM.  (top and vmstat output)

Can anyone else confirm this - that memory above 2GB is not visible to
cygwin.  Any known work-arounds?

Thanks in advance.

Dan Nazario

P.S.   Cygwin uname info is: CYGWIN_NT-5.2 **server name **
1.5.3(0.90/3/2) 2003-09-01 13:15 i686 unknown unknown Cygwin

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



Tim Prince

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Does Cygwin have a 2GB Memory/RAM limit ?
  2003-10-30 13:47 Dan_Nazario/ACIM/americancentury
@ 2003-10-30 14:48 ` Tim Prince
  0 siblings, 0 replies; 15+ messages in thread
From: Tim Prince @ 2003-10-30 14:48 UTC (permalink / raw)
  To: dan_nazario, Dan_Nazario/ACIM/americancentury, cygwin

On Thursday 30 October 2003 05:15, 
Dan_Nazario/ACIM/americancentury@americancentury.com wrote:
> The Java application is running from within a bash/cygwin shell.
> Perhaps I could have made that more clear.
>
And how does starting Sun Java from a bash shell restrict the memory 
available to it?
-- 
Tim Prince

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Does Cygwin have a 2GB Memory/RAM limit ?
  2003-10-30 14:03 Does Cygwin " Dan_Nazario/ACIM/americancentury
@ 2003-10-30 14:09 ` Gerrit P. Haase
  0 siblings, 0 replies; 15+ messages in thread
From: Gerrit P. Haase @ 2003-10-30 14:09 UTC (permalink / raw)
  To: dan_nazario; +Cc: cygwin

Dan wrote:

> In looking at the boot.ini snip, it looks like it is related to the size of
> disk partitions being greater than 2GB.

> I'm referring to a limit on the RAM/Memory that cygwin appears to impose.

I'm referring to the correct settings how to increase the default RAM
usage setting for applications running under Windows.

> My server has 8GB of RAM, but cygwin sees only 2GB of it according to
> vmstat and top commands running in the cygwin bash shell.

Have you actually tried what I told you?


Gerrit
-- 
=^..^=                                     http://nyckelpiga.de/donate.html


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Does Cygwin have a 2GB Memory/RAM limit ?
@ 2003-10-30 14:03 Dan_Nazario/ACIM/americancentury
  2003-10-30 14:09 ` Gerrit P. Haase
  0 siblings, 1 reply; 15+ messages in thread
From: Dan_Nazario/ACIM/americancentury @ 2003-10-30 14:03 UTC (permalink / raw)
  To: cygwin





Gerrit - thanks for your reply.

In looking at the boot.ini snip, it looks like it is related to the size of
disk partitions being greater than 2GB.

I'm referring to a limit on the RAM/Memory that cygwin appears to impose.
My server has 8GB of RAM, but cygwin sees only 2GB of it according to
vmstat and top commands running in the cygwin bash shell.


Dan Nazario





                                                                                                                                  
                                                                                                                                  
                        "Gerrit P.                                                                                                
                        Haase"                 To:       "Dan_Nazario/ACIM/americancentury@americancentury.com"                   
                        <freeweb@nyckel         <dan_nazario@americancentury.com>                                                 
                        piga.de>               cc:       cygwin@cygwin.com                                                        
                                               Subject:  Re: Does Cygwin have a 2GB Memory/RAM limit ?                            
                        Sent by:                                                                                                  
                        cygwin-owner@cy                                                                                           
                        gwin.com                                                                                                  
                                                                                                                                  
                                                                                                                                  
                        10/30/2003                                                                                                
                        06:10 AM                                                                                                  
                        Please respond                                                                                            
                        to "Gerrit P.                                                                                             
                        Haase"                                                                                                    
                                                                                                                                  
                                                                                                                                  
                                                                                                                                  
                                                                                                                                  
                                                                                                                                  




Dan wrote:


> Can anyone else confirm this - that memory above 2GB is not visible to
> cygwin.  Any known work-arounds?

There is a Windows limitation, no application may allocate more then 2GB
unless you specify the right value (e.g. /3GB) in the boot.ini file.

boot.ini example:

[Boot Loader]
Timeout=7
Default=scsi(0)disk(0)rdisk(0)partition(1)\WINNT
[Operating Systems]
scsi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows 2K Server" /3GB
scsi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows 2K Server [VGA-Modus]"
/basevideo /sos


Gerrit
--
=^..^=                                     http://nyckelpiga.de/donate.html


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Does Cygwin have a 2GB Memory/RAM limit ?
@ 2003-10-30 13:47 Dan_Nazario/ACIM/americancentury
  2003-10-30 14:48 ` Tim Prince
  0 siblings, 1 reply; 15+ messages in thread
From: Dan_Nazario/ACIM/americancentury @ 2003-10-30 13:47 UTC (permalink / raw)
  To: cygwin





The Java application is running from within a bash/cygwin shell.
Perhaps I could have made that more clear.




                                                                                                                                   
                                                                                                                                   
                        Tim Prince                                                                                                 
                        <timothyprince@s        To:       dan_nazario@americancentury.com,                                         
                        bcglobal.net>            Dan_Nazario/ACIM/americancentury@americancentury.com, cygwin@cygwin.com           
                                                cc:                                                                                
                        10/29/2003 10:15        Subject:  Re: Does Cygwin have a 2GB Memory/RAM limit ?                            
                        PM                                                                                                         
                        Please respond                                                                                             
                        to tprince                                                                                                 
                                                                                                                                   
                                                                                                                                   
                                                                                                                                   
                                                                                                                                   
                                                                                                                                   




On Wednesday 29 October 2003 19:38,
Dan_Nazario/ACIM/americancentury@americancentury.com wrote:
> I am running a Java application (Java version 1.4.x).
>
>
So this thread has nothing to do with cygwin?
--
Tim Prince




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Does Cygwin have a 2GB Memory/RAM limit ?
  2003-10-30  1:41 Dan_Nazario/ACIM/americancentury
@ 2003-10-30 13:39 ` Gerrit P. Haase
  0 siblings, 0 replies; 15+ messages in thread
From: Gerrit P. Haase @ 2003-10-30 13:39 UTC (permalink / raw)
  To: Dan_Nazario/ACIM/americancentury@americancentury.com; +Cc: cygwin

Dan wrote:


> Can anyone else confirm this - that memory above 2GB is not visible to
> cygwin.  Any known work-arounds?

There is a Windows limitation, no application may allocate more then 2GB
unless you specify the right value (e.g. /3GB) in the boot.ini file.

boot.ini example:

[Boot Loader]
Timeout=7
Default=scsi(0)disk(0)rdisk(0)partition(1)\WINNT
[Operating Systems]
scsi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows 2K Server" /3GB
scsi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows 2K Server [VGA-Modus]" /basevideo /sos


Gerrit
-- 
=^..^=                                     http://nyckelpiga.de/donate.html


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Does Cygwin have a 2GB Memory/RAM limit ?
  2003-10-30  6:18 Dan_Nazario/ACIM/americancentury
@ 2003-10-30  6:51 ` Tim Prince
  0 siblings, 0 replies; 15+ messages in thread
From: Tim Prince @ 2003-10-30  6:51 UTC (permalink / raw)
  To: dan_nazario, Dan_Nazario/ACIM/americancentury, cygwin

On Wednesday 29 October 2003 19:38, 
Dan_Nazario/ACIM/americancentury@americancentury.com wrote:
> I am running a Java application (Java version 1.4.x).
>
>
So this thread has nothing to do with cygwin?
-- 
Tim Prince

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Does Cygwin have a 2GB Memory/RAM limit ?
@ 2003-10-30  6:18 Dan_Nazario/ACIM/americancentury
  2003-10-30  6:51 ` Tim Prince
  0 siblings, 1 reply; 15+ messages in thread
From: Dan_Nazario/ACIM/americancentury @ 2003-10-30  6:18 UTC (permalink / raw)
  To: cygwin





I am running a Java application (Java version 1.4.x).

I try to allocate a JVM with anything much larger than 1.6GB and it fails.
So I started to look at memory (1.6GB is no problem for Java to allocate
providing everything else is working OK).

Two of the places I looked (see below) are the top command and vmstat.
Both of which reported 2GB of RAM available despite my having set max
memory size to 4GB.

Based on that observation, I assumed that cygwin has a built in memory
limit of 2GB.
I'm wondering if anyone has seen this before, or has an environment (RAM >
2GB) where they could do a quick test to see if setting the max memory to >
2GB(see html link below)  reports only 2GB available.

I've checked the FAQ, searched the news groups, googled 'till I can't
google no more ;-).  Can't find any reference to this.

Thanks for any help.

Dan Nazario





                                                                                                                                  
                                                                                                                                  
                        "Timothy C                                                                                                
                        Prince"                To:       dan_nazario@americancentury.com                                          
                        <tprince@myreal        cc:       cygwin@cygwin.com                                                        
                        box.com>               Subject:  Re: Does Cygwin have a 2GB Memory/RAM limit ?                            
                                                                                                                                  
                        Sent by:                                                                                                  
                        cygwin-owner@cy                                                                                           
                        gwin.com                                                                                                  
                                                                                                                                  
                                                                                                                                  
                        10/29/2003                                                                                                
                        06:29 PM                                                                                                  
                                                                                                                                  
                                                                                                                                  
                                                                                                                                  
                                                                                                                                  
                                                                                                                                  




I don't think you've defined your problem well enough to answer.  Are you
running a single thread gcc program which mallocs memory until it fails?
If you have multiple CPUs and run multiple threads or multiple instances of
your program, you might be able to use more of the memory.

-----Original Message-----
From: Dan_Nazario/ACIM/americancentury@americancentury.com
To: cygwin@cygwin.com
Date: Wed, 29 Oct 2003 17:40:02 -0600
Subject: Does Cygwin have a 2GB Memory/RAM limit ?

I am trying to run cygwin on a Windows 2003 server with 8GB of ram.

I have set the registry key to inform cygwin the max memory should be 4096
(4GB).  Checking the registry - I see the value is set to 4096.
(see: http://www.cygwin.com/cygwin-ug-net/setup-maxmem.html)
In spite of this, all indications are that it does not see more than 2GB
(2097151K) of RAM.  (top and vmstat output)

Can anyone else confirm this - that memory above 2GB is not visible to
cygwin.  Any known work-arounds?

Thanks in advance.

Dan Nazario

P.S.   Cygwin uname info is: CYGWIN_NT-5.2 **server name **
1.5.3(0.90/3/2) 2003-09-01 13:15 i686 unknown unknown Cygwin

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



Tim Prince

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Does Cygwin have a 2GB Memory/RAM limit ?
@ 2003-10-30  2:54 Timothy C Prince
  0 siblings, 0 replies; 15+ messages in thread
From: Timothy C Prince @ 2003-10-30  2:54 UTC (permalink / raw)
  To: dan_nazario; +Cc: cygwin

I don't think you've defined your problem well enough to answer.  Are you running a single thread gcc program which mallocs memory until it fails?  If you have multiple CPUs and run multiple threads or multiple instances of your program, you might be able to use more of the memory.

-----Original Message-----
From: Dan_Nazario/ACIM/americancentury@americancentury.com
To: cygwin@cygwin.com
Date: Wed, 29 Oct 2003 17:40:02 -0600
Subject: Does Cygwin have a 2GB Memory/RAM limit ?

I am trying to run cygwin on a Windows 2003 server with 8GB of ram.

I have set the registry key to inform cygwin the max memory should be 4096 
(4GB).  Checking the registry - I see the value is set to 4096.
(see: http://www.cygwin.com/cygwin-ug-net/setup-maxmem.html)
In spite of this, all indications are that it does not see more than 2GB 
(2097151K) of RAM.  (top and vmstat output)

Can anyone else confirm this - that memory above 2GB is not visible to 
cygwin.  Any known work-arounds?

Thanks in advance.

Dan Nazario

P.S.   Cygwin uname info is: CYGWIN_NT-5.2 **server name **
1.5.3(0.90/3/2) 2003-09-01 13:15 i686 unknown unknown Cygwin

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



Tim Prince

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Does Cygwin have a 2GB Memory/RAM limit ?
@ 2003-10-30  1:41 Dan_Nazario/ACIM/americancentury
  2003-10-30 13:39 ` Gerrit P. Haase
  0 siblings, 1 reply; 15+ messages in thread
From: Dan_Nazario/ACIM/americancentury @ 2003-10-30  1:41 UTC (permalink / raw)
  To: cygwin

I am trying to run cygwin on a Windows 2003 server with 8GB of ram.

I have set the registry key to inform cygwin the max memory should be 4096 
(4GB).  Checking the registry - I see the value is set to 4096.
(see: http://www.cygwin.com/cygwin-ug-net/setup-maxmem.html)
In spite of this, all indications are that it does not see more than 2GB 
(2097151K) of RAM.  (top and vmstat output)

Can anyone else confirm this - that memory above 2GB is not visible to 
cygwin.  Any known work-arounds?

Thanks in advance.

Dan Nazario

P.S.   Cygwin uname info is: CYGWIN_NT-5.2 **server name ** 
1.5.3(0.90/3/2) 2003-09-01 13:15 i686 unknown unknown Cygwin

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2003-10-30 17:34 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-30 14:26 Does Cygwin have a 2GB Memory/RAM limit ? Vince Hoffman
  -- strict thread matches above, loose matches on Subject: below --
2003-10-30 17:54 Does cygwin " Dan_Nazario/ACIM/americancentury
2003-10-30 18:07 ` Brian Dessent
2003-10-30 16:52 Does Cygwin " Dan_Nazario/ACIM/americancentury
2003-10-30 15:28 Jared Ingersoll
2003-10-30 16:44 ` Does cygwin " Christopher Faylor
2003-10-30 14:03 Does Cygwin " Dan_Nazario/ACIM/americancentury
2003-10-30 14:09 ` Gerrit P. Haase
2003-10-30 13:47 Dan_Nazario/ACIM/americancentury
2003-10-30 14:48 ` Tim Prince
2003-10-30  6:18 Dan_Nazario/ACIM/americancentury
2003-10-30  6:51 ` Tim Prince
2003-10-30  2:54 Timothy C Prince
2003-10-30  1:41 Dan_Nazario/ACIM/americancentury
2003-10-30 13:39 ` Gerrit P. Haase

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).