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 f1KNYrx85954; Tue, 20 Feb 2001 18:34:53 -0500 (EST) (envelope-from peter.schmidt@prismedia.com) Received: by winmail.prismedia.com with Internet Mail Service (5.5.2653.19) id <15K4YSVL>; Tue, 20 Feb 2001 15:34:41 -0800 Message-ID: From: "Schmidt, Peter" To: "'Hiroshi Inoue'" , Tom Lane Cc: "Schmidt, Peter" , pgsql-hackers@postgresql.org, pgsql-admin@postgresql.org Subject: RE: [HACKERS] Re: v7.1b4 bad performance Date: Tue, 20 Feb 2001 15:34:39 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C09B95.B1A90390" X-Archive-Number: 200102/157 X-Sequence-Number: 759 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_01C09B95.B1A90390 Content-Type: text/plain; charset="iso-2022-jp" Hiroshi, Is there any chance you can send the pgbench changes to me so that I can test this scenario? Thanks. Peter > -----Original Message----- > From: Hiroshi Inoue [mailto:Inoue@tpf.co.jp] > Sent: Tuesday, February 20, 2001 3:31 PM > To: Tom Lane > Cc: Schmidt, Peter; pgsql-hackers@postgresql.org; > pgsql-admin@postgresql.org > Subject: Re: [HACKERS] Re: [ADMIN] v7.1b4 bad performance > > > Tom Lane wrote: > > > > "Hiroshi Inoue" writes: > > >> Hmm, you mean you set up a separate test database for > each pgbench > > >> "client", but all under the same postmaster? > > > > > Yes. Different database is to make the conflict as less > as possible. > > > The conflict among backends is a greatest enemy of CommitDelay. > > > > Okay, so this errs in the opposite direction from the > original form of > > the benchmark: there will be *no* cross-backend locking > delays, except > > for accesses to the common WAL log. That's good as a > comparison point, > > but we shouldn't trust it absolutely either. > > > > Of cource it's only one of the test cases. > Because I've ever seen one-sided test cases, I had to > provide this test case unwillingly. > There are some obvious cases that CommitDelay is harmful > and I've seen no test case other than such cases i.e > 1) There's only one session. > 2) The backends always conflict(e.g pgbench with scaling factor 1). > > > >> What platform is this on --- in particular, how long a delay > > >> is CommitDelay=1 in reality? What -B did you use? > > > > > platform) i686-pc-linux-gnu, compiled by GCC > egcs-2.91.60(turbolinux 4.2) > > > min delay) 10msec according to your test program. > > > -B) 64 (all other settings are default) > > > > Thanks. Could I trouble you to run it again with a larger -B, say > > 1024 or 2048? What I've found is that at -B 64, the benchmark is > > so constrained by limited buffer space that it doesn't reflect > > performance at a more realistic production setting. > > > > OK I would try it later though I'm not sure I could > increase -B that large in my current environment. > > Regards, > Hiroshi Inoue > ------_=_NextPart_001_01C09B95.B1A90390 Content-Type: text/html; charset="iso-2022-jp" RE: [HACKERS] Re: [ADMIN] v7.1b4 bad performance

Hiroshi,
Is there any chance you can send the pgbench changes to me so that I can test this scenario?
Thanks.
Peter

> -----Original Message-----
> From: Hiroshi Inoue [mailto:Inoue@tpf.co.jp]
> Sent: Tuesday, February 20, 2001 3:31 PM
> To: Tom Lane
> Cc: Schmidt, Peter; pgsql-hackers@postgresql.org;
> pgsql-admin@postgresql.org
> Subject: Re: [HACKERS] Re: [ADMIN] v7.1b4 bad performance
>
>
> Tom Lane wrote:
> >
> > "Hiroshi Inoue" <Inoue@tpf.co.jp> writes:
> > >> Hmm, you mean you set up a separate test database for
> each pgbench
> > >> "client", but all under the same postmaster?
> >
> > > Yes. Different database is to make the conflict as less
> as possible.
> > > The conflict among backends is a greatest enemy of CommitDelay.
> >
> > Okay, so this errs in the opposite direction from the
> original form of
> > the benchmark: there will be *no* cross-backend locking
> delays, except
> > for accesses to the common WAL log.  That's good as a
> comparison point,
> > but we shouldn't trust it absolutely either.
> >
>
> Of cource it's only one of the test cases.
> Because I've ever seen one-sided test cases, I had to
> provide this test case unwillingly.
> There are some obvious cases that CommitDelay is harmful
> and I've seen no test case other than such cases i.e
> 1) There's only one session.
> 2) The backends always conflict(e.g pgbench with scaling factor 1).
>
> > >> What platform is this on --- in particular, how long a delay
> > >> is CommitDelay=1 in reality?  What -B did you use?
> >
> > > platform) i686-pc-linux-gnu, compiled by GCC
> egcs-2.91.60(turbolinux 4.2)
> > > min delay) 10msec according to your test program.
> > > -B)  64 (all other settings are default)
> >
> > Thanks.  Could I trouble you to run it again with a larger -B, say
> > 1024 or 2048?  What I've found is that at -B 64, the benchmark is
> > so constrained by limited buffer space that it doesn't reflect
> > performance at a more realistic production setting.
> >
>
> OK I would try it later though I'm not sure I could
> increase -B that large in my current environment.
>
> Regards,
> Hiroshi Inoue
>

------_=_NextPart_001_01C09B95.B1A90390--