comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Storage_Size in a Simple Program
Date: Mon, 22 Oct 2018 05:00:18 +0100
Date: 2018-10-22T05:00:18+01:00	[thread overview]
Message-ID: <lyva5uk4vh.fsf@pushface.org> (raw)
In-Reply-To: 1nx0yp3.x6ss3k18nq71lN%csampson@inetworld.net

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 <kbytes>.

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/


  reply	other threads:[~2018-10-22  4:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-21 21:35 Storage_Size in a Simple Program Charles H. Sampson
2018-10-22  4:00 ` Simon Wright [this message]
2018-10-22  5:46 ` Jacob Sparre Andersen
2018-10-22 11:39   ` joakimds
2018-10-22 12:17     ` Egil H H
2018-10-22 13:51       ` Simon Wright
2018-10-24  9:07 ` Charles H. Sampson
2018-10-24 20:51   ` Niklas Holsti
2018-10-25 13:37     ` joakimds
2018-10-25 15:56       ` Simon Wright
2018-10-25 21:32         ` Niklas Holsti
2018-10-25 21:39         ` joakimds
2018-10-29 20:58           ` Randy Brukardt
2018-10-30 19:31             ` Niklas Holsti
2018-10-31 20:45               ` Randy Brukardt
2018-10-25 22:23   ` Anh Vo
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox