From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f479f3331eef5353 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!panix!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Size of Vector limited to 1024 MB of Heap Size Date: Tue, 24 Jun 2008 13:32:40 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1214328760 9083 192.74.137.71 (24 Jun 2008 17:32:40 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 24 Jun 2008 17:32:40 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:uWlDc/xFCM15Mihn3CdByAV7dOs= Xref: g2news1.google.com comp.lang.ada:844 Date: 2008-06-24T13:32:40-04:00 List-Id: Dennis Hoppe writes: > my machine has 4 GB of RAM and I am wondering, why I can't use > at least 2 or 3 GBytes to run an Ada program. ... I don't think this has anything to do with Ada or GNAT. It's an OS issue. You could verify that by writing a similar memory-eating program in some other language, like C. I had a similar problem a while ago, where the OS was reserving 2GB of the address space for itself, by default. But there was an option to decrease that to 1GB, leaving 3GB for the user-mode program. I don't remember if I did that on windows or linux (or both). So check if there is such an option on linux. Anyway, if you're getting that close to the hardware limit of 4GB, it's probably time to upgrade to a 64-bit machine (and OS)! - Bob