pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Bill Montgomery <billm@lulu.com>
Cc: Michael Adler <adler@pobox.com>
Cc: perform <pgsql-performance@postgresql.org>
Subject: Re: Excessive context switching on SMP Xeons
Date: Thu, 14 Oct 2004 15:59:14 -0400
Message-ID: <1097783954.7978.501.camel@localhost.localdomain> (raw)
In-Reply-To: <41658F8D.9090204@lulu.com>
References: <4162CA14.6080206@lulu.com>
	<200410050947.36174.josh@agliodbs.com>
	<41630D50.3020308@lulu.com>
	<200410051538.51664.josh@agliodbs.com>
	<41636D8E.1090403@rentec.com>
	<41648446.5020102@bigfoot.com>
	<4164B48C.9060202@rentec.com>
	<41656559.70100@lulu.com>
	<20041007181537.GA1693@pobox.com>
	<41658F8D.9090204@lulu.com>

Bill,

In order to manifest the context switch problem you will definitely
require clients to be set to more than one in pgbench. It only occurs
when 2 or more backends need access to shared memory.

If you want help backpatching Gavin's patch I'll be glad to do it for
you, but you do need a recent kernel.

Dave


On Thu, 2004-10-07 at 14:48, Bill Montgomery wrote:
> Michael Adler wrote:
> 
> >On Thu, Oct 07, 2004 at 11:48:41AM -0400, Bill Montgomery wrote:
> >  
> >
> >>Alan Stange wrote:
> >>
> >>The same test on a Dell PowerEdge 1750, Dual Xeon 3.2 GHz, 512k cache, 
> >>HT on, Linux 2.4.21-20.ELsmp (RHEL 3), 4GB memory, pg 7.4.5:
> >>
> >>Far less performance that the Dual Opterons with a low number of 
> >>clients, but the gap narrows as the number of clients goes up. Anyone 
> >>smarter than me care to explain?
> >>    
> >>
> >
> >You'll have to wait for someone smarter than you, but I will posit
> >this: Did you use a tmpfs filesystem like Alan? You didn't mention
> >either way. Alan did that as an attempt remove IO as a variable.
> >
> >-Mike
> >  
> >
> 
> Yes, I should have been more explicit. My goal was to replicate his 
> experiment as closely as possible in my environment, so I did run my 
> postgres data directory on a tmpfs.
> 
> -Bill Montgomery
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
-- 
Dave Cramer
519 939 0336
ICQ # 14675561
www.postgresintl.com




view thread (17+ messages)

Message-ID: <1097783954.7978.501.camel@localhost.localdomain>
Permalink:  ../1097783954.7978.501.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1097783954.7978.501.camel@localhost.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: pg@fastcrypt.com, billm@lulu.com, adler@pobox.com
  Subject: Re: Excessive context switching on SMP Xeons
  In-Reply-To: <1097783954.7978.501.camel@localhost.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox