Received: from winmail.prismedia.com (host69.razafoundries.com [63.113.102.69] (may be forged)) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1H34dx01705 for ; Fri, 16 Feb 2001 22:04:40 -0500 (EST) (envelope-from peter.schmidt@prismedia.com) Received: by winmail.prismedia.com with Internet Mail Service (5.5.2653.19) id <15K4YPWN>; Fri, 16 Feb 2001 19:04:28 -0800 Message-ID: From: "Schmidt, Peter" To: "'Tom Lane'" , "Schmidt, Peter" Cc: "'Bruce Momjian'" , "'Michael Ansley'" , "'pgsql-admin@postgresql.org'" Subject: RE: v7.1b4 bad performance Date: Fri, 16 Feb 2001 19:04:27 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0988E.56B4A070" X-Archive-Number: 200102/119 X-Sequence-Number: 721 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0988E.56B4A070 Content-Type: text/plain; charset="iso-8859-1" > -----Original Message----- > From: Tom Lane [mailto:tgl@sss.pgh.pa.us] > I got roughly twice the tps reading (pgbench -t 1000, with > -F) at -B 1024. > I tried -B 1024 and got roughly the same results (~50 tps). However, when I change WAL option commit_delay from the default of 5 to 0, I get ~200 tps (which is double what I get with 7.03). I'm not sure I want to do this, do I? Peter The COMMIT_DELAY parameter defines for how long the backend will be forced to sleep after writing a commit record to the log with LogInsert call but before performing a LogFlush. This delay allows other backends to add their commit records to the log so as to have all of them flushed with a single log sync. Unfortunately, this mechanism is not fully implemented at release 7.1, so there is at present no point in changing this parameter from its default value of 5 microseconds. ------_=_NextPart_001_01C0988E.56B4A070 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [ADMIN] v7.1b4 bad performance

> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> I got roughly twice the tps reading (pgbench -t 100= 0, with
> -F) at -B 1024.
>

I tried -B 1024 and got roughly the same results (~50 tps= ). However, when I change WAL option commit_delay from the default of 5 to = 0, I get ~200 tps (which is double what I get with 7.03). I'm not sure I wa= nt to do this, do I?

Peter

The <varname>COMMIT_DELAY</varname> parameter= defines for how long
   the backend will be forced to sleep after w= riting a commit record
   to the log with <function>LogInsert&l= t;/function> call but before
   performing a <function>LogFlush</f= unction>. This delay allows other
   backends to add their commit records to the= log so as to have all
   of them flushed with a single log sync. Unf= ortunately, this
   mechanism is not fully implemented at relea= se 7.1, so there is at
   present no point in changing this parameter= from its default value
   of 5 microseconds.

------_=_NextPart_001_01C0988E.56B4A070--