Re: Wierd context-switching issue on Xeon patch for 7.4.1

Bruce Momjian <pgman@candle.pha.pa.us>

From: Bruce Momjian <pgman@candle.pha.pa.us>
To: josh@agliodbs.com
Cc: Tom Lane <tgl@sss.pgh.pa.us>, pg@fastcrypt.com, Paul Tuckfield <paul@tuckfield.com>, Anjan Dave <adave@vantage.com>, Neil Conway <neilc@samurai.com>, Dirk Lutzebäck <lutzeb@aeccom.com>, pgsql-performance@postgresql.org
Date: 2004-04-22T18:31:22Z
Lists: pgsql-performance
Josh Berkus wrote:
> Tom,
> 
> > Having to recompile to run on single- vs dual-processor machines doesn't
> > seem like it would fly.
> 
> Oh, I don't know.  Many applications require compiling for a target 
> architecture; SQL Server, for example, won't use a 2nd processor without 
> re-installation.   I'm not sure about Oracle.
> 
> It certainly wasn't too long ago that Linux gurus were esposing re-compiling 
> the kernel for the machine.
> 
> And it's not like they would *have* to re-compile to use PostgreSQL after 
> adding an additional processor.  Just if they wanted to maximize peformance 
> benefit.
> 
> Also, this is a fairly rare circumstance, I think; to judge by my clients, 
> once a database server is in production nobody touches the hardware.

A much simpler solution would be for the postmaster to run a test during
startup.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073