lock shared memory  lock table spinlock ratio

Chapter 5: Setting Configuration Parameters

lock spinlock ratio

Summary information

Default value

85

Range of values

1–2147483647

Status

Static

Display level

Comprehensive

Required role

System Administrator

Configuration groups

Lock Manager, Memory Use

Adaptive Server manages the acquiring and releasing of locks using an internal hash table with a configurable number of hash buckets. On SMP systems, this hash table can use one or more spinlocks to serialize access between processes running on different engines. To set the number of hash buckets, use lock hashtable size.

For Adaptive Servers running with multiple engines, lock spinlock ratio sets a ratio that determines the number of lock hash buckets that are protected by one spinlock. If you increase lock hashtable size, the number of spinlocks increases, so the number of hash buckets protected by one spinlock remains the same.

The Adaptive Server default value for lock spinlock ratio is 85. With lock hashtable size set to the default value of 2048, the default spinlock ratio defines 26 spinlocks for the lock hash table. For more information about configuring spinlock ratios, see “Configuring spinlock ratio parameters” on page 132.

sp_sysmon reports on the average length of the hash chains in the lock hash table. See the Performance and Tuning Guide for more information.





Copyright © 2005. Sybase Inc. All rights reserved. lock table spinlock ratio

View this book as PDF