pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Smet <guillaume.smet@gmail.com>
To: Jérôme BENOIS <benois@argia-engineering.fr>
Cc: Scott Marlowe <smarlowe@g2switchworks.com>
Cc: Dave Dutcher <dave@tridecap.com>
Cc: pgsql-performance@postgresql.org, "Xavier Milliard" <milliard@argia.fr>
Subject: Re: High CPU Load
Date: Fri, 15 Sep 2006 00:24:43 +0200
Message-ID: <1d4e0c10609141524j3532e140i308111908c1ab437@mail.gmail.com> (raw)
In-Reply-To: <1158270523.5167.18.camel@localhost.localdomain>
References: <004001c6d80e$bdef5bc0$8300a8c0@tridecap.com>
	<1158249411.24726.17.camel@state.g2switchworks.com>
	<1158268058.5167.2.camel@localhost.localdomain>
	<1d4e0c10609141422o57ecf28eobf3d0b7594bb242f@mail.gmail.com>
	<1158270523.5167.18.camel@localhost.localdomain>

On 9/14/06, Jérôme BENOIS <benois@argia-engineering.fr> wrote:
> Yes i have a lot of users ;-)

So your work_mem is probably far too high (that's what I told you in
my first message) and you probably swap when you have too many users.
Remember that work_mem can be used several times per query (and it's
especially the case when you have a lot of sorts).
When your load is high, check your swap activity and your io/wait. top
gives you these information. If you swap, lower your work_mem to 32 MB
for example then see if it's enough for your queries to run fast (you
can check if there are files created in the $PGDATA/base/<your
database oid>/pg_tmp) and if it doesn't swap. Retry with a
lower/higher value to find the one that fits best to your queries and
load.

> I agree but by moment DB Server is so slow.

Yep, that's the information that was missing :).

> what's means "HT" please ?

Hyper threading. It's usually not recommended to enable it on
PostgreSQL servers. On most servers, you can disable it directly in
the BIOS.

--
Guillaume



view thread (30+ messages)  latest in thread

Message-ID: <1d4e0c10609141524j3532e140i308111908c1ab437@mail.gmail.com>
Permalink:  ../1d4e0c10609141524j3532e140i308111908c1ab437@mail.gmail.com/
Also on:    postgresql.org/message-id/1d4e0c10609141524j3532e140i308111908c1ab437@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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: guillaume.smet@gmail.com, benois@argia-engineering.fr, smarlowe@g2switchworks.com, dave@tridecap.com, milliard@argia.fr
  Subject: Re: High CPU Load
  In-Reply-To: <1d4e0c10609141524j3532e140i308111908c1ab437@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