From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: heap_chunk_in_mb not working? Windows Server 2012
Date: Tue, 09 Jul 2013 13:27:00 -0000 [thread overview]
Message-ID: <20130709104744.GA27319@calimero.vinschen.de> (raw)
In-Reply-To: <18D2D60441EEB14B9007A0412561D3C20741F6@SINEX14MBXC421.southpacific.corp.microsoft.com>
On Jul 8 06:54, Frank Seide wrote:
> Hi, I am not able to enlarge the memory size from the 256 MB default.
The default heap is 384 Megs.
> Specifically, a perl script fails after allocating 256 MB (I get is a
> message "Out of memory!" when running /bin/perl.exe; in Task Manager,
> perl.exe had just grown its private working set to 266,xxx).
The working set doesn't tell you safely about the virtual memory a
process already takes.
Does it try to allocate 256 Megs in a single block? There are multiple
reasons that this may fail, one is that the VM is fragmented so that
there's no 256Megs block available, another is a too small pagefile.
> I tried the following two commands, to no avail. None of the tips I found on the FAQ or mailing lists (=basically these two) worked.
>
> % regtool -i set /HKLM/Software/Cygwin/heap_chunk_in_mb 2000
This is an old method and doesn't work anymore.
> % peflags --cygwin-heap=2000 /bin/perl.exe
> % peflags --cygwin-heap /bin/perl.exe
> /bin/perl.exe: initial Cygwin heap size: 2000 (0x7d0) MB
This is the right method, but did you really think about it? 2 Gigs is
what a 32 bit process usually(*) gets as its *entire* virtual memory,
including the image itself, all loaded DLLs, all thread stacks, all
shared memory etc.
(*) Unless you're on a 64 bit machine, in which case you get 4 Gigs VM
per process if the executable has the large-address awareness bit
set (see peflags).
> I am running on a x64 Windows Server 20*12*. Could that be a problem?
No.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
prev parent reply other threads:[~2013-07-09 10:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-08 7:58 Frank Seide
2013-07-08 16:51 ` Larry Hall (Cygwin)
2013-07-09 13:27 ` Corinna Vinschen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130709104744.GA27319@calimero.vinschen.de \
--to=corinna-cygwin@cygwin.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).