This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc crash (memory?)


Dan schrieb:

> Hi Gerrit,

>> Increase the size of your swap file, for me the maximum memory usage
>> compiling this file was not much more than 1 GB.  I have a 2 GB swap
>> file.

> Thanks for your reply. I have a 2GB swap file too (and 768MB RAM), and it
> doesn't seem to help. Moreover, as I mentioned, I was able to allocate 1.7GB
> with a test program, so I don't think it's the actual lack of memory that's
> killing it.

> I also tried to compile this repeatedly, and it always dies in the same spot
> with the same error, so I don't think it's a hardware issue either.

> What version of gcc did you use?

I use gcc 3.4.4.  I have also this famous registry key defined:
In "HKLM\SOFTWARE\Cygnus Solutions\Cygwin" define a DWORD named
heap_chunk_in_mb and set the value to 1024 (decimal) or 400 (hex) or
even more.

This may require a reboot to take affect.


Gerrit
-- 
=^..^=



--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]