Skip site navigation (1) Skip section navigation (2)

Re: analyzing postgresql performance for dbt-2

From: markw(at)osdl(dot)org
To: pgman(at)candle(dot)pha(dot)pa(dot)us
Cc: pgsql-performance(at)postgresql(dot)org,osdldbt-general(at)lists(dot)sourceforge(dot)net
Subject: Re: analyzing postgresql performance for dbt-2
Date: 2003-10-28 18:08:33
Message-ID: 200310281808.h9SI8ao01456@mail.osdl.org (view raw or flat)
Thread:
Lists: pgsql-performance
On 26 Oct, Bruce Momjian wrote:
> Mark Wong wrote:
>> > > Here are a pair of results where I just raise the load on the
>> > > database, where increasing the load increases the area of the database
>> > > touched in addition to increasing the transaction rate.  The overall
>> > > metric increases somewhat, but the response time for most of the
>> > > interactions also increases significantly:
>> > > 
>> > > http://developer.osdl.org/markw/dbt2-pgsql/158/ [baseline]
>> > > 	- load of 100 warehouses
>> > > 	- metric 1249.65
>> > > 	
>> > > http://developer.osdl.org/markw/dbt2-pgsql/149/
>> > > 	- load of 140 warehouses
>> > > 	- metric 1323.90
>> > 
>> > I looked at these charts and they looked normal to me.  It looked like
>> > your the load increased until your computer was saturated.  Is there
>> > something I am missing?
>> 
>> I've run some i/o tests so I'm pretty sure I haven't saturated that.  And it
>> looks like I have almost 10% more processor time left.  I do agree that it
>> appears something might be saturated, I just don't know where to look...
> 
> Could the 10% be context switching time, or is the I/O saturated?

There are about 14,000 to 17,000 context switches/s according to the
vmstat output.  This is on a 1.5Ghz hyperthreaded Xeon processor.  I
don't know what I'm supposed to be able to expect in terms of context
switching.  I really doubt the i/o is saturated because I've run
disktest (part of the Linux Test Project suite) and saw much higher
throughput for various sequential/random read/write tests.

I'm starting to collect oprofile data (and will hopefully have some
results soon) to get an idea where the database is spending its time,
just in case that may have something to do with it.

Mark

In response to

pgsql-performance by date

Next:From: Stephan SzaboDate: 2003-10-28 18:32:36
Subject: Re: Adding foreign key performance
Previous:From: John K. HerreshoffDate: 2003-10-28 18:06:10
Subject: Re: Adding foreign key performance

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group