pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Browne <cbbrowne@acm.org>
To: pgsql-admin@postgresql.org
Subject: Re: performance problem - 10.000 databases
Date: Sat, 08 Nov 2003 19:02:23 -0500
Message-ID: <m3vfpuxvcg.fsf@wolfe.cbbrowne.com> (raw)
References: <Pine.LNX.4.33.0311051403510.10816-100000@css120.ihs.com>
	<1068128463.10743.30.camel@franki-laptop.tpi.pl>
	<20031106093725.20d3a43f.threshar@torgo.978.org>
	<60y8utv72f.fsf@dev6.int.libertyrms.info>
	<20031108203823.GQ24094@ns.snowman.net>

Quoth sfrost@snowman.net (Stephen Frost):
> * Christopher Browne (cbbrowne@libertyrms.info) wrote:
>> On one of our test servers, I set "fsync=false", and a test load's
>> load time dropped from about 90 minutes to 3 minutes.  (It was
>> REALLY update heavy, with huge numbers of tiny transactions.)
>> 
>> Which is, yes, quite spectacularly faster.  But also quite
>> spectacularly unsafe.
>> 
>> I'm willing to live with the risk on a test box whose purpose is
>> _testing_; it's certainly not a good thing to do in production.
>
> Would it be possible to have the effectively done for a specific
> transaction?  If this was done as a single large transaction could
> there be an option to say "don't fsync this until it's all done and
> then do it all" or something?  Just looking for a way to get the
> 'best of both worlds'...

Oh, for sure, the whole thing could be invoked as one giant
transaction, which would reduce the cost dramatically.

But it diminishes the value of the benchmark for my purposes.  It's
useful to measure how costly those individual transactions are.
-- 
wm(X,Y):-write(X),write('@'),write(Y). wm('cbbrowne','cbbrowne.com').
http://www.ntlug.org/~cbbrowne/oses.html
"As far as Saddam Hussein being a great military strategist, he is
neither a strategist, nor is he schooled in the operational arts, nor
is he a tactician, nor is he a general, nor is he as a soldier.  Other
than that, he's a great military man, I want you to know that."
-- General Norman Schwarzkopf, 2/27/91



view thread (50+ messages)  latest in thread

Message-ID: <m3vfpuxvcg.fsf@wolfe.cbbrowne.com>
Permalink:  ../m3vfpuxvcg.fsf@wolfe.cbbrowne.com/
Also on:    postgresql.org/message-id/m3vfpuxvcg.fsf@wolfe.cbbrowne.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 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-admin@postgresql.org
  Cc: cbbrowne@acm.org
  Subject: Re: performance problem - 10.000 databases
  In-Reply-To: <m3vfpuxvcg.fsf@wolfe.cbbrowne.com>
  References: <Pine.LNX.4.33.0311051403510.10816-100000@css120.ihs.com> <1068128463.10743.30.camel@franki-laptop.tpi.pl> <20031106093725.20d3a43f.threshar@torgo.978.org> <60y8utv72f.fsf@dev6.int.libertyrms.info> <20031108203823.GQ24094@ns.snowman.net> <m3vfpuxvcg.fsf@wolfe.cbbrowne.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