Re: [HACKERS] Re: v7.1b4 bad performance

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Schmidt, Peter" <peter(dot)schmidt(at)prismedia(dot)com>, pgsql-hackers(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org
Subject: Re: [HACKERS] Re: v7.1b4 bad performance
Date: 2001-02-17 15:52:33
Message-ID: 20010217095233.A8190@lerami.lerctr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers

* Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> [010216 22:49]:
> "Schmidt, Peter" <peter(dot)schmidt(at)prismedia(dot)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(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Ansley 2001-02-17 15:57:47 RE: v7.1b4 bad performance
Previous Message Peter Eisentraut 2001-02-17 14:44:12 Re: List of Functions Reference

Browse pgsql-hackers by date

  From Date Subject
Next Message Lamar Owen 2001-02-17 16:15:23 Non-locale 7.1beta4 binaries on RedHat 6.2 test results.
Previous Message Thomas Lockhart 2001-02-17 14:58:12 Docs generation fixed