pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Smith <greg@2ndquadrant.com>
To: Christian Elmerot @ One.com <ce@one.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: CPUs for new databases
Date: Fri, 26 Nov 2010 17:30:16 -0500
Message-ID: <4CF034F8.5080606@2ndquadrant.com> (raw)
In-Reply-To: <4CEFE29B.7040408@one.com>
References: <4CC6CFAA.10107@one.com>
	<AANLkTi=ScGQiHB2ch+C_+K14TgjaO_3+x0+28QOFYeUU@mail.gmail.com>
	<4CC73FEF.9020805@agliodbs.com>
	<m3ocagplgf.fsf@jhcloos.com>
	<ia7r55$5ih$1@dough.gmane.org>
	<4CC88476.7010804@2ndquadrant.com>
	<4CEFE29B.7040408@one.com>

Christian Elmerot @ One.com wrote:
> Highest results comes at 32 threads:
> Number of Threads requested = 32
> Function      Rate (MB/s)   Avg time     Min time     Max time
> Triad:      81013.5506       0.0378       0.0377       0.0379

There is some run-to-run variation in the results of this test, and 
accordingly some margin for error in each individual result.  I wouldn't 
consider the difference between the speed at 32 threads (81) and 48 
(79.7) to be statistically significant, and based on the overall shape 
of the results curve that 32 result looks suspicious.  I would bet that 
if you run the test multiple times, you'd sometimes seen the 48 core one 
run faster than the 32.

> The pattern is quite clear in that any multiple of 4 (the number of 
> physical CPU packages) get a higher value but thinking about how the 
> memory is connected and utilized this makes perfect sense.

In addition to the memory issues, there's also thread CPU scheduling 
involved here.  Ideally the benchmark would pin each thread to a single 
core and keep it there for the runtime of the test, but it's not there 
yet.  I suspect one source of variation at odd numbers of threads 
involves processes that bounce between CPUs more than in the more even 
cases.

-- 
Greg Smith   2ndQuadrant US    greg@2ndQuadrant.com   Baltimore, MD
PostgreSQL Training, Services and Support        www.2ndQuadrant.us
"PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books




view thread (20+ messages)  latest in thread

Message-ID: <4CF034F8.5080606@2ndquadrant.com>
Permalink:  ../4CF034F8.5080606@2ndquadrant.com/
Also on:    postgresql.org/message-id/4CF034F8.5080606@2ndquadrant.com

 · 

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: greg@2ndquadrant.com, ce@one.com
  Subject: Re: CPUs for new databases
  In-Reply-To: <4CF034F8.5080606@2ndquadrant.com>

* 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