Received: from lerami.lerctr.org (lerami.lerctr.org [207.158.72.11]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1HFqqx11997; Sat, 17 Feb 2001 10:52:52 -0500 (EST) (envelope-from ler@lerctr.org) Received: (from ler@localhost) by lerami.lerctr.org (8.11.2/8.11.2/20010112/$Revision: 1.13 $) id f1HFqXL08760; Sat, 17 Feb 2001 09:52:33 -0600 (CST) (envelope-from ler) Date: Sat, 17 Feb 2001 09:52:33 -0600 From: Larry Rosenman To: Tom Lane Cc: "Schmidt, Peter" , pgsql-hackers@postgresql.org, pgsql-admin@postgresql.org Subject: Re: [HACKERS] Re: v7.1b4 bad performance Message-ID: <20010217095233.A8190@lerami.lerctr.org> References: <2081.982385009@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.15i In-Reply-To: <2081.982385009@sss.pgh.pa.us>; from tgl@sss.pgh.pa.us on Fri, Feb 16, 2001 at 11:43:29PM -0500 X-Mailer: Mutt http://www.mutt.org/ X-Archive-Number: 200102/134 X-Sequence-Number: 736 * Tom Lane [010216 22:49]: > "Schmidt, Peter" 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