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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Increasing GNAT's heap Date: Wed, 13 Nov 2013 09:23:23 +0100 Organization: A noiseless patient Spider Message-ID: <87a9h8iubo.fsf@ludovic-brenta.org> References: <1o29hesl8k6yk$.1kqputng2vdks$.dlg@40tude.net> <87habgiufi.fsf@ludovic-brenta.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="d46e6434f8e66b4835c82e1b4dd9d890"; logging-data="23197"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18W1REoLFcKsOKW8uLIAMGi" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:J8dWWknvL1TC57pDQN2HnUMEXbU= sha1:uw+dEkaXPPHKKg8ifAT0nwfangQ= Xref: news.eternal-september.org comp.lang.ada:17644 Date: 2013-11-13T09:23:23+01:00 List-Id: Ludovic Brenta writes on comp.lang.ada: > "Dmitry A. Kazakov" writes: >> Does anybody know a way to increase the heap size available for GNAT? It >> crashes with famous GNAT BUG DETECTED, Storage_Error heap exhausted. >> >> GNAT 4.6.4 under Debian, testing, 32-bit > > Presuming the heap is really exhausted (i.e. the command "free" shows no > free physical RAM and no free swap space left, and the command "top" > shows the gnat1 process consuming close to 4 GiB of resident memory) > then I'd suggest that you cannot increase the heap. So, you should > compile smaller source files. > > I'd try to identify which subprogram causes the problem and place that > subprogram in a compilation unit of its own (e.g. a private child unit). Maybe I forgot the obvious: of course, you know you can increase swap space easily by creating a file filled with zeroes and saying "swapon $the_new_file" as root. -- Ludovic Brenta.