From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Large number of tasks slows down my program (using debian) - any fix?
Date: Thu, 29 Mar 2018 15:33:08 -0700 (PDT)
Date: 2018-03-29T15:33:08-07:00 [thread overview]
Message-ID: <9377f941-31d0-4260-818a-8e189aac8c19@googlegroups.com> (raw)
In-Reply-To: <1aa8f536-250d-4bef-9392-4d936f916e5f@googlegroups.com>
On Wednesday, March 28, 2018 at 12:06:31 PM UTC-6, reinert wrote:
> Hei,
>
> I use gnat on debian (latest version). Now I tried to initiate a large number of (access) tasks ( "t := new atask_type" ). When I try to start, say, 500 tasks, my program slows down whithout any apparent reason (before the tasks do anything).
> Any hope for a quick fix?
Hm, you shouldn't be hitting the limit with so few tasks. (500 sounds like a lot, but most OSes you'll be using use an integer-ID; meaning something on the order of 2**32 or 2**64.)
If there's data-initialization going on that may be contributing to the issue.
It could also be problems with ACCESS-types, does the problem persist with non-access setups?
Lastly, take a look at your problem. Some problems are good with task-decomposition, others not so; those which are "embarrassingly parallel" are probably where you'll benefit the most from parallelizing. (e.g. The 'Exponentiation' trick.) -- Though Ada Tasks also lend themselves well to decomposing a sub-system, and that could be used to great effect, though this use isn't particularly a "parallel"-problem.
next prev parent reply other threads:[~2018-03-29 22:33 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-28 18:06 Large number of tasks slows down my program (using debian) - any fix? reinert
2018-03-28 18:49 ` Dennis Lee Bieber
2018-03-28 19:06 ` Paul Rubin
2018-03-28 19:21 ` Dmitry A. Kazakov
2018-03-28 20:17 ` reinert
2018-03-29 8:46 ` reinert
2018-03-29 9:18 ` Dmitry A. Kazakov
2018-03-29 15:39 ` Jeffrey R. Carter
2018-04-15 5:20 ` reinert
2018-03-29 22:33 ` Shark8 [this message]
2018-03-30 9:04 ` Dmitry A. Kazakov
2018-03-30 20:46 ` Paul Rubin
2018-03-31 0:09 ` Randy Brukardt
2018-03-31 6:00 ` Paul Rubin
2018-03-31 9:37 ` Jacob Sparre Andersen
2018-03-31 10:44 ` Dmitry A. Kazakov
2018-04-02 3:35 ` Randy Brukardt
2018-04-02 6:23 ` alby.gamper
2018-04-02 7:12 ` alby.gamper
2018-04-05 14:07 ` Brad Moore
2018-04-05 15:09 ` Dmitry A. Kazakov
2018-04-07 4:16 ` Brad Moore
2018-04-05 15:30 ` Jeffrey R. Carter
2018-04-05 19:33 ` Spiros Bousbouras
2018-04-05 19:44 ` Simon Wright
2018-04-05 20:25 ` Jeffrey R. Carter
2018-04-06 5:58 ` Benchmarks Game: Thread ring (Was: Large number of tasks slows down my program (using debian) - any fix?) Jacob Sparre Andersen
2018-04-07 4:28 ` Brad Moore
2018-04-06 15:48 ` Large number of tasks slows down my program (using debian) - any fix? Jeffrey R. Carter
2018-04-07 4:39 ` Brad Moore
2018-04-07 8:15 ` Jeffrey R. Carter
2018-04-07 16:28 ` Brad Moore
2018-04-07 18:41 ` Jeffrey R. Carter
2018-04-08 0:29 ` Brad Moore
2018-04-08 8:25 ` Jeffrey R. Carter
2018-04-08 0:06 ` Robert I. Eachus
2018-04-07 16:51 ` Brad Moore
2018-04-07 12:21 ` Simon Wright
2018-04-07 16:57 ` Brad Moore
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox