pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: reydan.cankur@gmail.com
To: scott.marlowe@gmail.com
Cc: pgsql-performance@postgresql.org
Subject: Re: PostgreSQL on SMP Architectures
Date: Mon, 15 Feb 2010 08:33:11 -0600
Message-ID: <4B7906C7020000250002F2D8@gw.wicourts.gov> (raw)

Reydan Cankur  wrote:
 
> I want to spread out the workload on all cores. But also I want to
> set the core number; for example first I want to spread out the
> workload to 32 cores then 64 cores and see the scalability.
 
PostgreSQL itself won't use more cores than you have active
connections, so one way to deal with this might be to use one of the
available connection poolers, like pgpool or pgbouncer.  That should
allow you to control the number of cores used pretty well, although
it won't support targeting particular connections to particular
cores (although this technique could be combined with other
suggestions).  The OS might use another core or two to help with
network or disk I/O, but that should be minimal.
 
-Kevin



view thread (6+ messages)

Message-ID: <4B7906C7020000250002F2D8@gw.wicourts.gov>
Permalink:  ../4B7906C7020000250002F2D8@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4B7906C7020000250002F2D8@gw.wicourts.gov

 · 

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: Kevin.Grittner@wicourts.gov, reydan.cankur@gmail.com, scott.marlowe@gmail.com
  Subject: Re: PostgreSQL on SMP Architectures
  In-Reply-To: <4B7906C7020000250002F2D8@gw.wicourts.gov>
  References: <4B7906C7020000250002F2D8@gw.wicourts.gov>

* 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