Re: Pgbench performance tuning? - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Pgbench performance tuning?
Date
Msg-id CAM-w4HNkEvUDnhzPX_Gv69YZNUPCzoVgrH1i_Hkuw+Zi+KvzsQ@mail.gmail.com
Whole thread Raw
In response to Re: Pgbench performance tuning?  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Thu, Aug 4, 2016 at 6:53 PM, Andres Freund <andres@anarazel.de> wrote:
> What's the config? Version? What activity does pidstat -d -l indicate?
> How much WAL was generated?

I know the specifics matter but I was also trying to avoid dumping too
much into the email.

The shared buffers is set to 16384 (128MB). Otherwise it's a default
config (For 9.4 and before I set checkpoint_segments to 32 as well).

Never seen pidstat before but pidstat -d looks like it prints very
similar output to the iostat output I was gathering already. There's
nothing else running on the machine.

I would have to rerun the benchmarks to measure the WAL output. Since
there's no replication and the database shut down cleanly it looks
like it recycled all the log files proactively and the last checkpoint
is in the earliest numbered xlog file.

I'll add checking the xlog position before and after pg_bench to the
script. I also wanted to use run the database under a binary calling
getrusage to report RUSAGE_CHILDREN for the database. It looks like
there's no stock program to do this but it shouldn't be hard to hack
one up.

-- 
greg



pgsql-hackers by date:

Previous
From: Claudio Freire
Date:
Subject: Re: Heap WARM Tuples - Design Draft
Next
From: Peter Eisentraut
Date:
Subject: Re: New version numbering practices