pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Smith <greg@2ndQuadrant.com>
To: pgsql-performance@postgresql.org
Subject: Re: Benchmarking a large server
Date: Mon, 09 May 2011 18:29:35 -0400
Message-ID: <4DC86ACF.6050008@2ndQuadrant.com> (raw)
In-Reply-To: <BANLkTikONPZ_7zQNfbyyN4MGBnn5PXHrAg@mail.gmail.com>
References: <BANLkTikONPZ_7zQNfbyyN4MGBnn5PXHrAg@mail.gmail.com>

On 05/09/2011 04:32 PM, Chris Hoover wrote:
> So, does anyone have any suggestions/experiences in benchmarking 
> storage when the storage is smaller then 2x memory? 

If you do the Linux trick to drop its caches already mentioned, you can 
start a database test with zero information in memory.  In that 
situation, whether or not everything could fit in RAM doesn't matter as 
much; you're starting with none of it in there.  In that case, you can 
benchmark things without having twice as much disk space.  You just have 
to recognize that the test become less useful the longer you run it, and 
measure the results accordingly.

A test starting from that state will start out showing you random I/O 
speed on the device, slowing moving toward in-memory cached speeds as 
the benchmark runs for a while.  You really need to capture the latency 
data for every transaction and graph it over time to make any sense of 
it.  If you look at "Using and Abusing pgbench" at 
http://projects.2ndquadrant.com/talks , starting on P33 I have several 
slides showing such a test, done with pgbench and pgbench-tools.  I 
added a quick hack to pgbench-tools around then to make it easier to run 
this specific type of test, but to my knowledge no one else has ever 
used it.  (I've had talks about PostgreSQL in my yard that were better 
attended than that session, for which I blame Jonah Harris for doing a 
great talk in the room next door concurrent with it.)

-- 
Greg Smith   2ndQuadrant US    greg@2ndQuadrant.com   Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support  www.2ndQuadrant.us
"PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books




view thread (20+ messages)  latest in thread

Message-ID: <4DC86ACF.6050008@2ndQuadrant.com>
Permalink:  ../4DC86ACF.6050008@2ndQuadrant.com/
Also on:    postgresql.org/message-id/4DC86ACF.6050008@2ndQuadrant.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: greg@2ndQuadrant.com
  Subject: Re: Benchmarking a large server
  In-Reply-To: <4DC86ACF.6050008@2ndQuadrant.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