From: Syd <569170@aliencamel.com>
To: pgsql-performance@postgresql.org
Subject: insert speed - Mac OSX vs Redhat
Date: Fri, 16 Jan 2004 00:56:36 +1100
Message-ID: <A278005E-4762-11D8-BC83-00039398E788@aliencamel.com> (raw)
I've read most of the threads on insert speed in this list and wanted
to share some interesting observations and a question.
We've been benchmarking some dbs to implement Bayesian processing on an
email server. This involves frequent insert and updates to the
following table:
create table bayes_token (
username varchar(200) not null default '',
token varchar(200) not null default '',
spam_count integer not null default 0,
ham_count integer not null default 0,
atime integer not null default 0,
primary key (username, token));
On a variety of hardware with Redhat, and versions of postgres, we're
not getting much better than 50 inserts per second. This is prior to
moving WAL to another disk, and fsync is on.
However, with postgres 7.4 on Mac OSX 10.2.3, we're getting an amazing
500 inserts per second.
We can only put this down to the OS.
Can anyone shed light on why Redhat appears to be so much poorer than
Mac OS X in supporting postgres insert transactions? Or why MacOS
appears to be so much better?
BTW, on the same hardware that postgres is running on to get 50 inserts
per sec, MySQL (4.0.17) is getting an almost unbelievable 5,500 inserts
per second.
-SL
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: 569170@aliencamel.com
Subject: Re: insert speed - Mac OSX vs Redhat
In-Reply-To: <A278005E-4762-11D8-BC83-00039398E788@aliencamel.com>
References: <A278005E-4762-11D8-BC83-00039398E788@aliencamel.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