pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: griscom@suitable.com
Cc: pgsql-performance@postgresql.org
Subject: Re: Throttling PostgreSQL's CPU usage
Date: Wed, 09 May 2007 07:56:40 +0200
Message-ID: <20070509055655.D4C24DCC04A@svr2.hagander.net> (raw)
In-Reply-To: <p06240801c266a74e7a94@[192.168.1.8]>

> Thanks for all the feedback. Unfortunately I didn't specify that this 
> is running on a WinXP machine (the 3D renderer is an ActiveX plugin), 
> and I don't even think "nice" is available. I've tried using the 
> Windows Task Manager to set every postgres.exe process to a low 
> priority, but that didn't make a difference.

Are you sure you're actually cpu limited? The windows schedules is actually pretty good at down shifting like that. It sounds like you might be i/o bound 
instead. Especially if you're on ide disks in this machine.

> Several people have mentioned having multiple processors; my current 
> machine is a uni-processor machine, but I believe we could spec the 
> actual runtime machine to have multiple processors/cores. I'm only 
> running one query at a time; would that query be guaranteed to 
> confine itself to a single processor/core?

Yes. Background processes can run on the other, like the background writer. They normally don't use a lot of cpu. You can avoid that as well by setting the cpu 
affinity on pg_ctl or postmaster.


> In terms of performance, I don't think simply more power will do the 
> trick; I've got an AMD 3200+, and even doubling the power/halving the 
> stutter time won't be good enough.

Again, make sure cpu really is the problem.

/Magnus




view thread (18+ messages)  latest in thread

Message-ID: <20070509055655.D4C24DCC04A@svr2.hagander.net>
Permalink:  ../20070509055655.D4C24DCC04A@svr2.hagander.net/
Also on:    postgresql.org/message-id/20070509055655.D4C24DCC04A@svr2.hagander.net

 · 

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: magnus@hagander.net, griscom@suitable.com
  Subject: Re: Throttling PostgreSQL's CPU usage
  In-Reply-To: <20070509055655.D4C24DCC04A@svr2.hagander.net>
  References: <p06240801c266a74e7a94@[192.168.1.8]> <20070509055655.D4C24DCC04A@svr2.hagander.net>

* 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