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,be7fa91648ac3f12 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!newscon06.news.prodigy.com!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Large arrays (again), problem case for GNAT Date: 14 Apr 2005 11:24:32 -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: pcls4.std.com 1113492272 26978 192.74.137.71 (14 Apr 2005 15:24:32 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 14 Apr 2005 15:24:32 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:10464 Date: 2005-04-14T11:24:32-04:00 List-Id: Robert A Duff writes: > Does anybody here know how to get allocate-on-write under MS Windows? Just to be clear: Windows does not allocate physical memory on allocation, but it does allocate backing store in the page file. And the page file is limited to 4GB, which isn't all that big these days. Does anybody know how to tell Windows not to allocate backing store? I want to write a Storage_Pool, which allocates an array of (say) hundreds of megabytes, and allocate little pieces out of that giant array. I want to be *able* to use all those hundreds of megabytes, but I don't want to allocate space in the paging file unless they're needed. This works by default on most Unices, but not on Windows. - Bob