Subject: Re: 256mb limit in cygwin - heap_chunk_in_mb not working?
From: "Dylan Cuthbert" <[email-masked]>
To: [email-masked]
Date: Thu, 8 Aug 2002 21:57:29 +0900
Newsgroups: gmane.os.cygwin

No replies to this for about a week and we're stumped at this end - does
anyone know whether this cygwin registry key is *intended* to work or not?
Is this a bug or simply an unimplemented feature?  Is it a limitation
somewhere higher up (lower down) than cygwin (in the w32 process heap
manager or something?)

Ive seen plenty of mails regarding this and this is the only solution listed
(no "it worked!" confirmation mails however).  I can't see what's wrong, I'm
putting the registry key in the right place and everything, I've even logged
in as administrator and made sure the key is set in that environment too.
Has anyone allocated more than 256 megs in a cygwin compiled app?

Regards

---------------------------------
Q-Games, Dylan Cuthbert.
http://www.q-games.com
P2P internet radio - http://www.peercast.org

"Dylan Cuthbert" <[email-masked]> wrote in message
news:[email-masked]...
> Hi all
>
> I have edited/created the DWORD registry entry heap_chunk_in_mb (the ls of
> /proc/registry is below) and it reads 512 in regedit.
>
> I reboot but still a simple program that does new char[ 256 * 1024 *
1024 ]
> will run out of memory.
>
> AFAIK I am using the recent versions of absolutely everything. (cygcheck
> below)
>
> Any ideas what's going on, I want to run some memory intensive algorithmic
> programs and can't because of this problem.
>
> Regards
>
> ---------------------------------
> Q-Games, Dylan Cuthbert.
> http://www.q-games.com
> P2P internet radio - http://www.peercast.org
>
>
>  $ ls -l
> total 0
> dr-xr-xr-x    0 Dylan    なし            0 Feb  1 10:16 Program Options
> -r--r--r--    1 Dylan    なし            4 Aug  2 17:18 heap_chunk_in_mb
> dr-xr-xr-x    0 Dylan    なし            0 Feb 17 14:19 mounts v2
> Dylan@DCUTHBERT-2K /proc/registry/HKEY_CURRENT_USER/Software/Cygnus
> Solutions/Cygwin
>
>
>  $ cygcheck -s
>
> Cygwin Win95/NT Configuration Diagnostics
> Current System Time: Fri Aug 02 17:33:28 2002
>
> Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2
>
> Path:   d:\cygwin\usr\local\bin
>         d:\cygwin\bin
>         d:\cygwin\bin
>         c:\WINNT\system32
>         c:\WINNT
>         c:\WINNT\System32\Wbem
>         d:\cygwin\home\dylan\projects\global
>         d:\cygwin\usr\local\bin
>         d:\cygwin\bin
>         c:\WINNT\system32
>         c:\WINNT
>         c:\WINNT\System32\Wbem
>
> SysDir: C:\WINNT\System32
> WinDir: C:\WINNT
>
> CYGWIN = `binmode'
> HOME = `d:\cygwin\home\Dylan'
> MAKE_MODE = `unix'
> PWD = `/proc/registry/HKEY_CURRENT_USER/Software/Cygnus Solutions/Cygwin'
> USER = `Dylan'
>
> Use `-r' to scan registry
>
> a:  fd           N/A    N/A
> c:  hd  NTFS   51199Mb  11% CP CS UN PA FC     WIN2K
> d:  hd  NTFS   44351Mb  17% CP CS UN PA FC     WORK
> f:  cd  CDFS       0Mb -2147483548%    CS              Audio CD
>
> .              /cygdrive  user    textmode,cygdrive
> d:/cygwin      /          system  binmode
> d:/cygwin/bin  /usr/bin   system  binmode
> d:/cygwin/lib  /usr/lib   system  binmode
> .              /cygdrive  user    binmode,cygdrive
>
> Found: d:\cygwin\bin\bash.exe
> Found: d:\cygwin\bin\cat.exe
> Found: d:\cygwin\bin\cpp.exe
> Found: d:\cygwin\bin\find.exe
> Found: d:\cygwin\bin\gcc.exe
> Found: d:\cygwin\bin\gdb.exe
> Found: d:\cygwin\bin\ld.exe
> Found: d:\cygwin\bin\ls.exe
> Found: d:\cygwin\bin\make.exe
> Found: d:\cygwin\bin\sh.exe
>
>    58k 2002/05/07 d:\cygwin\bin\cygbz2-1.dll
>   621k 2002/05/17 d:\cygwin\bin\cygcrypto.dll
>   452k 2002/07/17 d:\cygwin\bin\cygcurl-2.dll
>    50k 2002/03/17 d:\cygwin\bin\cygexslt-0.dll
>    45k 2001/04/25 d:\cygwin\bin\cygform5.dll
>    35k 2002/01/09 d:\cygwin\bin\cygform6.dll
>    19k 2002/02/20 d:\cygwin\bin\cyggdbm.dll
>    20k 2002/07/17 d:\cygwin\bin\cyghistory5.dll
>   929k 2002/06/24 d:\cygwin\bin\cygiconv-2.dll
>    22k 2001/12/13 d:\cygwin\bin\cygintl-1.dll
>    23k 2002/06/24 d:\cygwin\bin\cygintl-2.dll
>    21k 2001/06/20 d:\cygwin\bin\cygintl.dll
>    45k 2002/02/08 d:\cygwin\bin\cygjbig1.dll
>   119k 2002/02/09 d:\cygwin\bin\cygjpeg6b.dll
>    25k 2002/07/16 d:\cygwin\bin\cygltdl-3.dll
>    26k 2001/04/25 d:\cygwin\bin\cygmenu5.dll
>    20k 2002/01/09 d:\cygwin\bin\cygmenu6.dll
>   156k 2001/04/25 d:\cygwin\bin\cygncurses++5.dll
>   175k 2002/01/09 d:\cygwin\bin\cygncurses++6.dll
>   226k 2001/04/25 d:\cygwin\bin\cygncurses5.dll
>   202k 2002/01/09 d:\cygwin\bin\cygncurses6.dll
>    15k 2001/04/25 d:\cygwin\bin\cygpanel5.dll
>    12k 2002/01/09 d:\cygwin\bin\cygpanel6.dll
>    40k 2001/11/21 d:\cygwin\bin\cygpcre.dll
>    39k 2001/11/21 d:\cygwin\bin\cygpcreposix.dll
>   179k 2002/07/22 d:\cygwin\bin\cygpng12.dll
>   170k 2002/01/21 d:\cygwin\bin\cygpng2.dll
>    22k 2002/06/09 d:\cygwin\bin\cygpopt-0.dll
>   127k 2002/07/17 d:\cygwin\bin\cygreadline5.dll
>    66k 2001/11/20 d:\cygwin\bin\cygregex.dll
>   156k 2002/05/17 d:\cygwin\bin\cygssl.dll
>   549k 2002/07/19 d:\cygwin\bin\cygtcl83.dll
>    11k 2002/07/19 d:\cygwin\bin\cygtclpip83.dll
>   253k 2002/02/10 d:\cygwin\bin\cygtiff3.dll
>   221k 2002/07/19 d:\cygwin\bin\cygtix4183.dll
>   830k 2002/07/19 d:\cygwin\bin\cygtk83.dll
>   633k 2002/07/22 d:\cygwin\bin\cygxml2-2.dll
>    41k 2002/01/20 d:\cygwin\bin\cygXpm-noX4.dll
>    46k 2002/01/20 d:\cygwin\bin\cygXpm-X4.dll
>   152k 2002/03/17 d:\cygwin\bin\cygxslt-1.dll
>    15k 2002/03/17 d:\cygwin\bin\cygxsltbreakpoint-1.dll
>    50k 2002/03/12 d:\cygwin\bin\cygz.dll
>   883k 2002/07/06 d:\cygwin\bin\cygwin1.dll
>     Cygwin DLL version info:
>         DLL version: 1.3.12
>         DLL epoch: 19
>         DLL bad signal mask: 19005
>         DLL old termios: 5
>         DLL malloc env: 28
>         API major: 0
>         API minor: 54
>         Shared data: 3
>         DLL identifier: cygwin1
>         Mount registry: 2
>         Cygnus registry name: Cygnus Solutions
>         Cygwin registry name: Cygwin
>         Program options name: Program Options
>         Cygwin mount registry name: mounts v2
>         Cygdrive flags: cygdrive flags
>         Cygdrive prefix: cygdrive prefix
>         Cygdrive default prefix:
>         Build date: Sat Jul 6 02:16:58 EDT 2002
>         CVS tag: cygwin-1-3-12-1
>         Shared id: cygwin1S3
>
>
> Cygwin Package Information
> Package             Version
> _update-info-dir    00037-1
> ash                 20020131-1
> autoconf-devel      2.53a-1
> autoconf-stable     2.13-4
> automake-devel      1.6.2-1
> automake-stable     1.4p5-5
> bash                2.05b-1
> bc                  1.06-1
> binutils            20020706-2
> bison               1.35-1
> byacc               1.9-1
> bzip2               1.0.2-2
> clear               1.0-1
> compface            1.4-5
> cpio                2.4.2
> cron                3.0.1-7
> crypt               1.0-1
> ctags               5.2-1
> curl                7.9.8-2
> cvs                 1.11.0-1
> cygrunsrv           0.95-1
> cygutils            1.1.2-1
> cygwin              1.3.12-2
> dejagnu             20010117-1
> diff                1.0-1
> diffutils           2.8.1-1
> ed                  0.2-1
> expect              20010117-1
> figlet              2.2-1
> file                3.37-1
> fileutils           4.1-1
> findutils           4.1.7-4
> flex                2.5.4-2
> fortune             1.8-2
> gawk                3.0.4-1
> gcc                 3.1.1-4
> gcc-mingw           3_1-20020516-2
> gcc2                2.95.3-9
> gdb                 20020718-1
> gdbm                1.8.0-4
> gettext             0.11.2-2
> ghostscript         7.05-1
> gperf               0.0
> grep                2.5-1
> groff               1.17.2-1
> gzip                1.3.3-3
> indent              2.2.8-1
> inetutils           1.3.2-19
> irc                 20010101-1
> jbigkit             1.2-6
> jpeg                6b-7
> less                374-1
> libbz2_1            1.0.2-2
> libiconv2           1.8-2
> libintl             0.10.38-3
> libintl1            0.10.40-1
> libintl2            0.11.2-2
> libltdl3            20020705-2
> libncurses5         5.2-1
> libncurses6         5.2-8
> libpng              1.2.4-2
> libpng12            1.2.4-2
> libpng2             1.0.12-1
> libpopt0            1.6.4-4
> libreadline4        4.1-2
> libreadline5        4.3-1
> libtool             20020705-1
> libtool-devel       20020705-2
> libtool-stable      1.4.2-2
> libxml2             2.4.23-1
> libxslt             1.0.13-1
> links               0.96-1
> login               1.4-3
> lynx                2.8.4-1
> m4                  0.0
> make                3.79.1-7
> man                 1.5g-2
> mingw-runtime       2.0-2
> mktemp              1.4-1
> mt                  2.0.1-1
> mutt                1.4-1
> nano                1.0.7-1
> ncftp               3.1.3-1
> ncurses             5.2-8
> newlib-man          20001118-1
> opengl              1.1.0-6
> openssh             3.4p1-4
> openssl             0.9.6d-1
> openssl-devel       0.9.6d-1
> patch               2.5-3
> pcre                3.7-1
> perl                5.6.1-2
> popt                1.6.4-4
> postgresql          7.2.1-2
> python              2.2.1-1
> rcs                 5.7-3
> readline            4.3-1
> regex               4.4-2
> robots              2.0-1
> rsync               2.5.5-1
> rxvt                2.7.2-10
> sed                 3.02-1
> sh-utils            2.0-2
> sharutils           4.2.1-2
> shutdown            1.2-2
> squid               2.4.STABLE7-1
> ssmtp               2.38.7-3
> tar                 1.13.19-1
> tcltk               20001125-1
> tcsh                6.11.00-4
> termcap             20020403-1
> terminfo            5.2-3
> tetex-beta          20001218-4
> texinfo             4.2-3
> texmf               20000804-2
> texmf-base          20000804-2
> texmf-doc           20000804-2
> texmf-extra         20000804-2
> texmf-tiny          20000804-2
> textutils           2.0.21-1
> tiff                3.5.7-1
> time                1.7-1
> units               1.77-1
> unzip               5.50-1
> vim                 6.1-2
> w32api              1.5-1
> wget                1.8.2-1
> which               1.5-1
> whois               4.5.17-1
> xpm-nox             4.2.0-1
> zip                 2.3-2
> zlib                1.1.4-1
>
>
>
>
>
>
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/