pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Aren Cambre <aren@arencambre.com>
Cc: Pierre C <lists@peufeu.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Postgres refusing to use >1 core
Date: Wed, 11 May 2011 21:35:38 -0600
Message-ID: <BANLkTimz1ZLu=+_H_RfoXROwXQLvTJE80Q@mail.gmail.com> (raw)
In-Reply-To: <BANLkTi=itdq7_hS_N-B9dWJm7TQDSXFrWA@mail.gmail.com>
References: <BANLkTimohiUa6rOYdxYTwqmvSUg2CRYMHg@mail.gmail.com>
	<4DC81A3F020000250003D433@gw.wicourts.gov>
	<BANLkTimNTLqQgQeyu=FPOn-5x6F4XnVBJA@mail.gmail.com>
	<4DC81D56020000250003D438@gw.wicourts.gov>
	<BANLkTi=FH4rX-7OtS9ozjuyXQTNTiRqCmg@mail.gmail.com>
	<BANLkTinwkj7syvKkYzU_O7DD14EMzk2Zmg@mail.gmail.com>
	<BANLkTi=BvGMvsBNq8DUt=_MPJXZjcC0TWg@mail.gmail.com>
	<4DC8B893.3060908@postnewspapers.com.au>
	<BANLkTimi+2nviLvWU4zKGtG688+Z84DF6w@mail.gmail.com>
	<4DC9E733.8040809@postnewspapers.com.au>
	<op.vvbc5r1ieorkce@apollo13>
	<BANLkTi=itdq7_hS_N-B9dWJm7TQDSXFrWA@mail.gmail.com>

On Wed, May 11, 2011 at 9:20 PM, Aren Cambre <aren@arencambre.com> wrote:
>> Using unix sockets, you can expect about 10-20.000 queries/s on small
>> simple selects per core, which is quite a feat. TCP adds overhead, so it's
>> slower. Over a network, add ping time.
>
> I'm talking to a Postgres on localhost, so in theory, I ought to be getting
> really good throughput, but again, the problem may be with the way C#'s
> PLINQ "multithreading in a can" is managing things.

local tcp is gonna be slower not faster than unix sockets, not faster.
 But the big issue is that you need to exlpore doing the work in a
large set not iteratively.  Operations on sets are often much faster
in aggregate.



view thread (46+ messages)  latest in thread

Message-ID: <BANLkTimz1ZLu=+_H_RfoXROwXQLvTJE80Q@mail.gmail.com>
Permalink:  ../BANLkTimz1ZLu=+_H_RfoXROwXQLvTJE80Q@mail.gmail.com/
Also on:    postgresql.org/message-id/BANLkTimz1ZLu=+_H_RfoXROwXQLvTJE80Q@mail.gmail.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: scott.marlowe@gmail.com, aren@arencambre.com, lists@peufeu.com
  Subject: Re: Postgres refusing to use >1 core
  In-Reply-To: <BANLkTimz1ZLu=+_H_RfoXROwXQLvTJE80Q@mail.gmail.com>
  References: <BANLkTimohiUa6rOYdxYTwqmvSUg2CRYMHg@mail.gmail.com> <4DC81A3F020000250003D433@gw.wicourts.gov> <BANLkTimNTLqQgQeyu=FPOn-5x6F4XnVBJA@mail.gmail.com> <4DC81D56020000250003D438@gw.wicourts.gov> <BANLkTi=FH4rX-7OtS9ozjuyXQTNTiRqCmg@mail.gmail.com> <BANLkTinwkj7syvKkYzU_O7DD14EMzk2Zmg@mail.gmail.com> <BANLkTi=BvGMvsBNq8DUt=_MPJXZjcC0TWg@mail.gmail.com> <4DC8B893.3060908@postnewspapers.com.au> <BANLkTimi+2nviLvWU4zKGtG688+Z84DF6w@mail.gmail.com> <4DC9E733.8040809@postnewspapers.com.au> <op.vvbc5r1ieorkce@apollo13> <BANLkTi=itdq7_hS_N-B9dWJm7TQDSXFrWA@mail.gmail.com> <BANLkTimz1ZLu=+_H_RfoXROwXQLvTJE80Q@mail.gmail.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