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

Christopher Kings-Lynne <chriskl@familyhealth.com.au>

From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pg@fastcrypt.com, Josh Berkus <josh@agliodbs.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-22T04:44:07Z
Lists: pgsql-performance
> Yeah.  I don't know a reasonable way to tune this number automatically
> for particular systems ... but at the very least we'd need to find a way
> to distinguish uniprocessor from multiprocessor, because on a
> uniprocessor the optimal value is surely 1.

 From TODO:

* Add code to detect an SMP machine and handle spinlocks accordingly 
from distributted.net, http://www1.distributed.net/source, in 
client/common/cpucheck.cpp

Chris