Lock – Configuration | SQL Server Performance Forums

SQL Server Performance Forum – Threads Archive

Lock – Configuration

********Min*****Max*********Configvalue*****Run value
locks500021474836470 0
This is what i can see while running sp_configure ‘locks’ .Is this the recommended configuraiton? Does it do everything automatically? any help ?
2)how to check OS settings from QA (eg: total RAM )

About locks, from BOL: locks Option
Use the locks option to set the maximum number of available locks, thereby limiting the amount of memory Microsoft® SQL Serverâ„¢ uses for locks. The default setting is 0, which allows SQL Server to allocate and deallocate locks dynamically based on changing system requirements. When the server is started with locks set to 0, the lock manager allocates two percent of the memory allocated to SQL Server to an initial pool of lock structures. As the pool of locks is exhausted, additional locks are allocated. The dynamic lock pool does not allocate more than 40 percent of the memory allocated to SQL Server. Generally, if more memory is required for locks than is available in current memory, and more server memory is available (the max server memory threshold has not been reached), SQL Server allocates memory dynamically to satisfy the request for locks. However, if allocating that memory would cause paging at the operating system level (for example, if another application was running on the same computer as an instance of SQL Server and using that memory), more lock space is not allocated. Allowing SQL Server to use locks dynamically is the recommended configuration. However, you can set locks and override SQL Server’s ability to allocate lock resources dynamically. Increase this value if SQL Server displays a message that you have exceeded the number of available locks. Because each lock consumes memory (96 bytes per lock), increasing this value can require increasing the amount of memory dedicated to the server. locks is an advanced option. If you are using the sp_configure system stored procedure to change the setting, you can change locks only when show advanced options is set to 1. The setting takes effect after stopping and restarting the server. Luis Martin
Moderator
SQL-Server-Performance.com One of the symptoms of an approaching nervous breakdown is the belief that one’s work is terribly important
Bertrand Russell
All postings are provided “AS IS” with no warranties for accuracy.
2)Any sp_ to find how much RAM server(not SQL server) has ?
If you haven’t changed the lock settings then do not touch as referred by BOL as SQL 2000 is efficient to tackle in such situation. I think you can get memory information from SYSPROCESSES table. Satya SKJ
Moderator
http://www.SQL-Server-Performance.Com/forum
This posting is provided “AS IS” with no rights for the sake of knowledge sharing.
]]>