comp.lang.ada
 help / color / mirror / Atom feed
From: Dirk Heinrichs <dirk.heinrichs@altum.de>
Subject: Re: Ada 2012 automatic concurrency?
Date: Thu, 27 Dec 2012 09:59:44 +0100
Date: 2012-12-27T09:59:44+01:00	[thread overview]
Message-ID: <kbh2m0$sou$1@online.de> (raw)
In-Reply-To: cdf1f6a2-8773-4aa4-95a6-29fb810167d1@googlegroups.com

charleshixsn@earthlink.net wrote:

> IIUC, there shouldn't be more than about twice as many tasks as cores.  Is
> this about right?

Hmm, taking into account that your application isn't alone on your system 
and task switches have their price, too, I think you'd better go with "# of 
CPUs/Cores + 1", like the Gentoo Linux Handbook suggests for the level of 
parallel compilation:

"A good choice is the number of CPUs (or CPU cores) in your system plus one, 
but this guideline isn't always perfect." [1]

However, I'm still confused about the "+1".

Sometimes it may also be application dependent, so you should try different 
models to find the one that suits you best.

HTH...

	Dirk

[1]: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=5
-- 
Dirk Heinrichs <dirk.heinrichs@altum.de>
Tel: +49 (0)2471 209385 | Mobil: +49 (0)176 34473913
GPG Public Key C2E467BB | Jabber: dirk.heinrichs@altum.de



  reply	other threads:[~2012-12-27  8:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-25 17:26 Ada 2012 automatic concurrency? charleshixsn
2012-12-26 22:02 ` John B. Matthews
2012-12-26 22:55 ` Niklas Holsti
2012-12-27  5:57   ` charleshixsn
2012-12-27  8:59     ` Dirk Heinrichs [this message]
2012-12-27 11:22       ` Brian Drummond
2012-12-27 22:13       ` Randy Brukardt
2012-12-27 14:27     ` Jeffrey Carter
2012-12-27 20:13       ` tmoran
2012-12-27 19:06     ` Niklas Holsti
replies disabled

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