pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: James Cloos <cloos@jhcloos.com>
To: Graeme B. Bell <graeme.bell@nibio.no>
Cc: Andres Freund <andres@anarazel.de>
Cc: Merlin Moncure <mmoncure@gmail.com>
Cc: Craig James <cjames@emolecules.com>
Cc: Joshua D. Drake <jd@commandprompt.com>
Cc: postgres performance list <pgsql-performance@postgresql.org>
Subject: Re: Hmmm... why does CPU-intensive pl/pgsql code parallelise so badly when queries parallelise fine? Anyone else seen this?
Date: Sat, 11 Jul 2015 19:18:21 -0400
Message-ID: <m3pp3y7076.fsf@carbon.jhcloos.org> (raw)
In-Reply-To: <E1016428-2C5E-4348-A9D8-ED50DC07FA9E@skogoglandskap.no>
References: <6E55113B-FA05-433C-9B21-623F798EE935@skogoglandskap.no>
	<CAFwQ8rcEOiGJ79WtoO=uTX33ZhKVUWG9v8iO14TR+AoT_wd1og@mail.gmail.com>
	<559CB5BF.2080509@commandprompt.com>
	<CAFwQ8rdWcZwUxgQDySOzFAqHJPm6=DVH+bp0XMJzmADF1GVmPw@mail.gmail.com>
	<CAHyXU0wO_WMzrbdcdtWwpk-78j_4P-M-Kr0xOyJVg1K15dQNAQ@mail.gmail.com>
	<20150708202733.GS10242@alap3.anarazel.de>
	<E1016428-2C5E-4348-A9D8-ED50DC07FA9E@skogoglandskap.no>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

>>>>> "GBB" == Graeme B Bell <graeme.bell@nibio.no> writes:

GBB> 1a. For example AMD CPUs list the number of integer cores (e.g. 16),
GBB> but there is actually only half as many cores available for floating
GBB> point work (8). So if your functions need to use floating point, your
GBB> scaling will suffer badly on FP functions.

That is half as many 256-bit float units; for scalar math and for
128-bit vector math each core gets a half of the float unit.

Only for the 256-bit vector math do the schedulars have to compete for
float unit access.

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 0x997A9F17ED7DAEA6


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (23+ messages)

Message-ID: <m3pp3y7076.fsf@carbon.jhcloos.org>
Permalink:  ../m3pp3y7076.fsf@carbon.jhcloos.org/
Also on:    postgresql.org/message-id/m3pp3y7076.fsf@carbon.jhcloos.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: cloos@jhcloos.com, graeme.bell@nibio.no, andres@anarazel.de, mmoncure@gmail.com, cjames@emolecules.com, jd@commandprompt.com
  Subject: Re: Hmmm... why does CPU-intensive pl/pgsql code parallelise so badly when queries parallelise fine? Anyone else seen this?
  In-Reply-To: <m3pp3y7076.fsf@carbon.jhcloos.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox