diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-10-11 20:41:32 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-10-11 20:41:32 +0000 |
commit | a72ee090900a24815aea5986ef5417c2312c52a5 (patch) | |
tree | 5e85710931097f7cc9cfbf3aa37e94a66aa00e91 /src/include/storage/proc.h | |
parent | 9907b9775b4035f846fec5bb4d077eca7e5494ea (diff) |
Add infrastructure for making spins_per_delay variable depending on
whether we seem to be running in a uniprocessor or multiprocessor.
The adjustment rules could probably still use further tweaking, but
I'm convinced this should be a win overall.
Diffstat (limited to 'src/include/storage/proc.h')
-rw-r--r-- | src/include/storage/proc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h index 7297f444bfd..b915f78035e 100644 --- a/src/include/storage/proc.h +++ b/src/include/storage/proc.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/proc.h,v 1.82 2005/09/19 17:21:48 momjian Exp $ + * $PostgreSQL: pgsql/src/include/storage/proc.h,v 1.83 2005/10/11 20:41:32 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -105,6 +105,8 @@ typedef struct PROC_HDR { /* Head of list of free PGPROC structures */ SHMEM_OFFSET freeProcs; + /* Current shared estimate of appropriate spins_per_delay value */ + int spins_per_delay; } PROC_HDR; |