pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dennis Bjorklund <db@zigo.dhs.org>
To: Jason Lustig <lustig@brandeis.edu>
Cc: pgsql-performance@postgresql.org
Subject: Re: Slow Postgresql server
Date: Thu, 12 Apr 2007 06:34:14 +0200
Message-ID: <461DB6C6.5010207@zigo.dhs.org> (raw)
In-Reply-To: <57271CC2-BCB1-4ACA-A177-4FF64F1BC33F@brandeis.edu>
References: <57271CC2-BCB1-4ACA-A177-4FF64F1BC33F@brandeis.edu>

Jason Lustig skrev:
> and work_mem to 8096. What would cause the computer to only use such a 
> small percentage of the CPU, with more than half of it waiting on I/O 
> requests?

Do your webpages write things to the database on each connect?

Maybe it do a bunch of writes each individually commited? For every 
commit pg will wait for the data to be written down to the disk platter 
before it move on. So if you do several writes you want to do them in 
one transaction so you only need one commit.

/Dennis



view thread (13+ messages)  latest in thread

Message-ID: <461DB6C6.5010207@zigo.dhs.org>
Permalink:  ../461DB6C6.5010207@zigo.dhs.org/
Also on:    postgresql.org/message-id/461DB6C6.5010207@zigo.dhs.org

 · 

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: db@zigo.dhs.org, lustig@brandeis.edu
  Subject: Re: Slow Postgresql server
  In-Reply-To: <461DB6C6.5010207@zigo.dhs.org>

* 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