Re: performance config help

From: Pierre Frédéric Caillaud <lists(at)peufeu(dot)com>
To: "Bob Dusek" <redusek(at)gmail(dot)com>, "Ivan Voras" <ivoras(at)freebsd(dot)org>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: performance config help
Date: 2010-01-11 23:53:29
Message-ID: op.u6d7bfnucke6l8@soyouz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


> Each of the 256 requests was being processed by a php process. So, it
> could
> certainly be faster. But, the fact that we're seeing the db performance
> degrade would seem to indicate that our application is fast enough to
> punish
> the db. Isn't that true?

Not necessarily. Your DB still has lots of idle CPU, so perhaps it's your
client which is getting over the top. Or you have locking problems in your
DB.
Things to test :

- vmstat on the benchmark client
- iptraf on the network link
- monitor ping times between client and server during load test

Some time ago, I made a benchmark simulating a forum. Postgres was
saturating the gigabit ethernet between server and client...

If those PHP processes run inside Apache, I'd suggest switching to
lighttpd/fastcgi, which has higher performance, and uses a limited,
controllable set of PHP processes (and therefore DB connections), which in
turn uses much less memory.

PS : try those settings :

fsync = fdatasync
wal_buffers = 64MB
walwriter_delay = 2ms
synchronous commits @ 1 s delay

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Matthew Wakeling 2010-01-12 17:12:30 Re: performance config help
Previous Message Scott Marlowe 2010-01-11 23:29:29 Re: performance config help