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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,8060bed478dfa9cd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.109.162 with SMTP id ht2mr9856303wib.1.1356837414332; Sat, 29 Dec 2012 19:16:54 -0800 (PST) Path: i11ni337243wiw.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.131.MISMATCH!xlned.com!feeder3.xlned.com!news.astraweb.com!border6.a.newsrouter.astraweb.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!newsfeed.freenet.ag!takemy.news.telefonica.de!telefonica.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: Dirk Heinrichs Newsgroups: comp.lang.ada Subject: Re: Ada 2012 automatic concurrency? Date: Thu, 27 Dec 2012 09:59:44 +0100 Organization: Privat Message-ID: References: NNTP-Posting-Host: pd9ff8917.dip0.t-ipconnect.de Mime-Version: 1.0 X-Trace: online.de 1356598785 29470 217.255.137.23 (27 Dec 2012 08:59:45 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Thu, 27 Dec 2012 08:59:45 +0000 (UTC) User-Agent: KNode/4.10 beta2 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Date: 2012-12-27T09:59:44+01:00 List-Id: 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 Tel: +49 (0)2471 209385 | Mobil: +49 (0)176 34473913 GPG Public Key C2E467BB | Jabber: dirk.heinrichs@altum.de