pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Smith <gsmith@gregsmith.com>
To: pgsql-performance@postgresql.org
Subject: Re: Strange behavior: pgbench and new Linux kernels
Date: Fri, 18 Apr 2008 02:47:22 -0400 (EDT)
Message-ID: <Pine.GSO.4.64.0804180219500.1929@westnet.com> (raw)
In-Reply-To: <22550.1208495934@sss.pgh.pa.us>
References: <Pine.GSO.4.64.0804170230180.26917@westnet.com>
	<fd145f7d0804171009h7658d3bbqf099b5c0e9235268@mail.gmail.com>
	<Pine.LNX.4.64.0804171840180.20402@aragorn.flymine.org>
	<Pine.GSO.4.64.0804172002010.15803@westnet.com>
	<22550.1208495934@sss.pgh.pa.us>

On Fri, 18 Apr 2008, Tom Lane wrote:

> Yeah, it's starting to be obvious that we'd better not ignore sysbench 
> as "not our problem".  Do you have any roadmap on what needs to be done 
> to it?

Just dug into this code again for a minute and it goes something like 
this:

1) Wrap the write statements into transactions properly so the OLTP code 
works.  There's a BEGIN/COMMIT in there, but last time I tried that test 
it just deadlocked on me (I got a report of the same from someone else as 
well).  There's some FIXME items in the code for PostgreSQL already that 
might be related here.

2) Make sure the implementation is running statistics correctly (they 
create a table and index, but there's certainly no ANALYZE in there).

3) Implement the part of the driver wrapper that haven't been done yet.

4) Try to cut down on crashes (I recall a lot of these when I tried to use 
all the features).

5) Compare performance on some simple operations to pgbench to see if it's 
competitive.  Look into whether there's code in the PG wrapper they use 
that can be optimized usefully.

There's two performance-related things that jump right out as things I'd 
want to confirm aren't causing issues:

-It's a threaded design
-The interesting tests look like they use prepared statements.

I think the overall approach sysbench uses is good, it just needs some 
adjustments to work right against a PG database.

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD



view thread (13+ messages)  latest in thread

Message-ID: <Pine.GSO.4.64.0804180219500.1929@westnet.com>
Permalink:  ../Pine.GSO.4.64.0804180219500.1929@westnet.com/
Also on:    postgresql.org/message-id/Pine.GSO.4.64.0804180219500.1929@westnet.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: gsmith@gregsmith.com
  Subject: Re: Strange behavior: pgbench and new Linux kernels
  In-Reply-To: <Pine.GSO.4.64.0804180219500.1929@westnet.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