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!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Storage_Size in a Simple Program Date: Mon, 22 Oct 2018 05:00:18 +0100 Organization: A noiseless patient Spider Message-ID: References: <1nx0yp3.x6ss3k18nq71lN%csampson@inetworld.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="615d942b90a3b557be8eff9a05805850"; logging-data="11237"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19KP4YRcuT7Cs/xZhxubkoSKGjxm+tnn24=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:ZBQxti5vUOyoMwA4nBTIDb+qB8s= sha1:1mxthhlG2yaTH9i/MM1qpjxe5KE= Xref: reader02.eternal-september.org comp.lang.ada:54686 Date: 2018-10-22T05:00:18+01:00 List-Id: csampson@inetworld.net (Charles H. Sampson) writes: > I've got a conceptually simple program that uses a lot of memory. It is > highly recursive (using a lot of stack) and also puts a lot of stuff on > the heap. Is there any way to specify that a lot of memory is needed > other than pragma Storage_Size? > > As it is, I have three totally artificial tasks hidden in packages. The > packages' entry routines are simply pass-throughs to their embedded > task's entries. There are no concurrency issues because the simple > program is single-threaded at heart. > > Is that it? That's a lot of baggage just to give permission to use more > memory, particularly when there's a lot of memory lying around now. You can increase the maximum stack size (up to some system-set limit, berween 32 MB and 64 MB here) by ulimit -s . ulimit -a says the max memory size and the virtual memory are both unlimited, but of course there has to be a limit (2**64 - 1!). https://ss64.com/osx/ulimit.html https://serverfault.com/questions/15564/where-are-the-default-ulimits-specified-on-os-x-10-5 https://wilsonmar.github.io/maximum-limits/