pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Larry Rosenman <ler@lerctr.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Schmidt, Peter <peter.schmidt@prismedia.com>
Cc: pgsql-hackers@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: [HACKERS] Re: v7.1b4 bad performance
Date: Sat, 17 Feb 2001 09:52:33 -0600
Message-ID: <20010217095233.A8190@lerami.lerctr.org> (raw)
In-Reply-To: <2081.982385009@sss.pgh.pa.us>
References: <F1DC8388AD52D411B83B00D0B774D6EB1928E4@winmail.prismedia.com>
	<2081.982385009@sss.pgh.pa.us>

* Tom Lane <tgl@sss.pgh.pa.us> [010216 22:49]:
> "Schmidt, Peter" <peter.schmidt@prismedia.com> writes:
> > So, is it OK to use commit_delay=0?
> 
> Certainly.  In fact, I think that's about to become the default ;-)
> 
> I have now experimented with several different platforms --- HPUX,
> FreeBSD, and two considerably different strains of Linux --- and I find
> that the minimum delay supported by select(2) is 10 or more milliseconds
> on all of them, as much as 20 msec on some popular platforms.  Try it
> yourself (my test program is attached).
> 
> Thus, our past arguments about whether a few microseconds of delay
> before commit are a good idea seem moot; we do not have any portable way
> of implementing that, and a ten millisecond delay for commit is clearly
> Not Good.
> 
> 			regards, tom lane
Here is another one.  UnixWare 7.1.1 on a P-III 500 256 Meg Ram:

$ cc -o tgl.test -O tgl.test.c
$ time ./tgl.test 0

real    0m0.01s
user    0m0.01s
sys     0m0.00s
$ time ./tgl.test 1

real    0m10.01s
user    0m0.00s
sys     0m0.01s
$ time ./tgl.test 2

real    0m10.01s
user    0m0.00s
sys     0m0.00s
$ time ./tgl.test 3

real    0m10.11s
user    0m0.00s
sys     0m0.01s
$ uname -a
UnixWare lerami 5 7.1.1 i386 x86at SCO UNIX_SVR5
$ 

-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749



view thread (63+ messages)  latest in thread

Message-ID: <20010217095233.A8190@lerami.lerctr.org>
Permalink:  ../20010217095233.A8190@lerami.lerctr.org/
Also on:    postgresql.org/message-id/20010217095233.A8190@lerami.lerctr.org

 · 

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: ler@lerctr.org, tgl@sss.pgh.pa.us, peter.schmidt@prismedia.com, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] Re: v7.1b4 bad performance
  In-Reply-To: <20010217095233.A8190@lerami.lerctr.org>
  References: <F1DC8388AD52D411B83B00D0B774D6EB1928E4@winmail.prismedia.com> <2081.982385009@sss.pgh.pa.us> <20010217095233.A8190@lerami.lerctr.org>

* 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