comp.lang.ada
 help / color / mirror / Atom feed
From: Eryndlia Mavourneen <eryndlia@gmail.com>
Subject: Re: Increasing GNAT's heap
Date: Wed, 13 Nov 2013 08:07:14 -0800 (PST)
Date: 2013-11-13T08:07:14-08:00	[thread overview]
Message-ID: <ff6d91f4-fd4c-4566-934e-fae6a83007c4@googlegroups.com> (raw)
In-Reply-To: <20131113163923.32140110@PC-8N-L>

On Wednesday, November 13, 2013 9:39:23 AM UTC-6, Oliver Kleinke wrote:
> > I don't believe it has anything to do with GCC. It looks clearly like
> > GNAT issue which, BTW, also leads to extremely sluggish compilation.
> > After all, if you allocate 2+ GB of memory you have to fill it with
> > some junk and that takes time, much time.
> 
> I suppose this has to do with swapping/paging, so the sluggishness might
> not be GNAT's fault.

I was thinking along these lines.  It is important to remember that the program being run dictates much of what occurs with paging.  Data references aside, the locality of execution has a great deal to do with the amount of paging and swapping that occurs.  A program that constantly jumps around to widely disparate parts of the address space will experience considerably more paging than a program which is as sequential as possible.  I would think that it is possible to have the linker combine frequently used subprograms together with the main code in a single program section or sections that are loaded together to minimize the paging.

Alternatively, there are tools which help to identify which parts of the code are being heavily executed.  It then is possible to lock as many of these pages into memory as circumstances allow.  This will provide a huge increase in speed with relatively little work.

Not having had to worry too much about these issues in a while, I am not up on the latest tools for these things, but I am certain that others in this group are.

-- Eryndlia Mavourneen (KK1T)

  reply	other threads:[~2013-11-13 16:07 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-12 11:09 Increasing GNAT's heap Dmitry A. Kazakov
2013-11-12 13:26 ` Georg Bauhaus
2013-11-12 14:00   ` Dmitry A. Kazakov
2013-11-12 17:31     ` Paul Rubin
2013-11-13  8:00       ` Dmitry A. Kazakov
2013-11-12 19:30     ` Georg Bauhaus
2013-11-12 22:03 ` Florian Weimer
2013-11-13  8:05   ` Dmitry A. Kazakov
2013-11-13 15:41     ` Oliver Kleinke
2013-11-13  8:21 ` Ludovic Brenta
2013-11-13  8:23   ` Ludovic Brenta
2013-11-13  8:58   ` Dmitry A. Kazakov
2013-11-13 11:04     ` Georg Bauhaus
2013-11-13 13:31       ` Dmitry A. Kazakov
2013-11-13 15:39         ` Oliver Kleinke
2013-11-13 16:07           ` Eryndlia Mavourneen [this message]
2013-11-13 16:11             ` Eryndlia Mavourneen
2013-11-13 17:27           ` Dmitry A. Kazakov
2013-11-13 17:41             ` Eryndlia Mavourneen
2013-11-13 18:02               ` Dmitry A. Kazakov
2013-11-13 15:37       ` Oliver Kleinke
2013-11-13 15:32     ` Oliver Kleinke
2013-11-13 17:36       ` Dmitry A. Kazakov
2013-11-13 18:44         ` Oliver Kleinke
2013-11-13 22:08     ` Ludovic Brenta
2013-11-14  8:51       ` Dmitry A. Kazakov
2013-11-14 10:50         ` Georg Bauhaus
2013-11-14 11:16           ` Dmitry A. Kazakov
2013-11-14 13:07 ` Marius Amado-Alves
replies disabled

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