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 f1GMNqx74754 for ; Fri, 16 Feb 2001 17:23:52 -0500 (EST) (envelope-from peter.schmidt@prismedia.com) Received: by winmail.prismedia.com with Internet Mail Service (5.5.2653.19) id <15K4YPMF>; Fri, 16 Feb 2001 14:23:37 -0800 Message-ID: From: "Schmidt, Peter" To: "'Bruce Momjian'" , "Schmidt, Peter" Cc: "'Tom Lane'" , "'Michael Ansley'" , "'pgsql-admin@postgresql.org'" Subject: RE: v7.1b4 bad performance Date: Fri, 16 Feb 2001 14:23:37 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C09867.1B2ECFC0" X-Archive-Number: 200102/114 X-Sequence-Number: 715 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_01C09867.1B2ECFC0 Content-Type: text/plain; charset="iso-8859-1" > -----Original Message----- > From: Bruce Momjian [mailto:pgman@candle.pha.pa.us] > Sent: Friday, February 16, 2001 10:59 AM > To: Schmidt, Peter > Cc: 'Tom Lane'; 'Michael Ansley'; 'pgsql-admin@postgresql.org' > Subject: Re: [ADMIN] v7.1b4 bad performance > > > > > "Schmidt, Peter" writes: > > > > However, what I'm interested in is the comparison between > > > 7.0x and 7.1x. > > > > Shouldn't the 7.1b4 database be faster? Have you (or anyone > > > else) done this > > > > comparison? > > > > > > 7.1 is considerably faster if you compare performance without -F. > > > If you are comparing performance with -F, I'm not sure > exactly how it > > > stacks up. > > > > > > regards, tom lane > > > > > > > Here are some of the results of my tests which are very > consistent. I > > dropped and recreated postgres db before each test so the > only user tables > > were the pgbench tables. > > > > 7.1b4(no -F) 49 tps > > 7.03 (no -F) 64 tps > > 7.03 (with -F) 121 tps > > > > The test machine is a Dell Dimension 800mz w/128 RAM and it > is dedicated to > > this testing. Pgbench is run on the same machine. Any ideas > why my results > > differ? I will continue testing and appreciate all comments. > > Peter > > This is very strange. Is there any specific query that is causing the > problem? Does EXPLAIN show the same output on both versions? > "pgbench" doesn't execute any complex sql... Explain shows exactly the same output for both versions(7.03 & 7.1b4): update accounts set abalance = abalance + 1 where aid = 1 Index Scan using accounts_pkey on accounts (cost=0.00..3.81 rows=1 width=30) select abalance from accounts where aid = 1 Index Scan using accounts_pkey on accounts (cost=0.00..3.81 rows=1 width=4) update tellers set tbalance = tbalance + 1 where tid = 1 Seq Scan on tellers (cost=0.00..1.12 rows=1 width=30) update branches set bbalance = bbalance + 1 where bid = 1 Seq Scan on branches (cost=0.00..1.01 rows=1 width=26) insert into history(tid,bid,aid,delta,time) values(1,1,1,1,'now') Result (cost=0.00..0.00 rows=0 width=0) Peter ------_=_NextPart_001_01C09867.1B2ECFC0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [ADMIN] v7.1b4 bad performance

> -----Original Message-----
> From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
> Sent: Friday, February 16, 2001 10:59 AM
> To: Schmidt, Peter
> Cc: 'Tom Lane'; 'Michael Ansley'; 'pgsql-admin@post= gresql.org'
> Subject: Re: [ADMIN] v7.1b4 bad performance
>
>
> > > "Schmidt, Peter" <peter.schm= idt@prismedia.com> writes:
> > > > However, what I'm interested in is t= he comparison between
> > > 7.0x and 7.1x.
> > > > Shouldn't the 7.1b4 database be fast= er? Have you (or anyone
> > > else) done this
> > > > comparison?
> > >
> > > 7.1 is considerably faster if you compare= performance without -F.
> > > If you are comparing performance with -F,= I'm not sure
> exactly how it
> > > stacks up.
> > >
> > >        &nbs= p;          regards, tom lane
> > >
> >
> > Here are some of the results of my tests which= are very
> consistent.  I
> > dropped and recreated postgres db before each = test so the
> only user tables
> > were the pgbench tables.
> >
> > 7.1b4(no -F)     &nbs= p;  49 tps
> > 7.03 (no -F)     &nbs= p;  64 tps
> > 7.03 (with -F)      1= 21 tps
> >
> > The test machine is a Dell Dimension 800mz w/1= 28 RAM and it
> is dedicated to
> > this testing. Pgbench is run on the same machi= ne. Any ideas
> why my results
> > differ? I will continue testing and appreciate= all comments.
> > Peter
>
> This is very strange.  Is there any specific q= uery that is causing the
> problem?  Does EXPLAIN show the same output on= both versions?
>


"pgbench" doesn't execute any complex sql...

Explain shows exactly the same output for both versions(7= .03 & 7.1b4):

update accounts set abalance =3D abalance + 1 where aid = =3D 1
Index Scan using accounts_pkey on accounts  (cost= =3D0.00..3.81 rows=3D1 width=3D30)

select abalance from accounts where aid =3D 1
Index Scan using accounts_pkey on accounts  (cost= =3D0.00..3.81 rows=3D1 width=3D4)

update tellers set tbalance =3D tbalance + 1 where tid = =3D 1
Seq Scan on tellers  (cost=3D0.00..1.12 rows=3D1 wi= dth=3D30)

update branches set bbalance =3D bbalance + 1 where bid = =3D 1
Seq Scan on branches  (cost=3D0.00..1.01 rows=3D1 w= idth=3D26)

insert into history(tid,bid,aid,delta,time) values(1,1,1,= 1,'now')
Result  (cost=3D0.00..0.00 rows=3D0 width=3D0)

Peter
 

------_=_NextPart_001_01C09867.1B2ECFC0--