Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
programmer76
Starting Member
6 Posts |
Posted - 2008-09-25 : 17:08:08
|
| Hi,I am troubleshooting a sql server where sql server buffer cache hit ratio is between 70 to 80 percent on couple of times during a day. This server has AWE enabled with 16 GB memory. Here is the out put of DBCC memorystatus command. I tried to run performance counters but couldn't find anything in particular over there. Can any one please help me out?Memory Manager KB ------------------------------ --------------------VM Reserved 1656592VM Committed 181104AWE Allocated 13983744Reserved Memory 1024Reserved Memory In Use 0(5 row(s) affected)Memory node Id = 0 KB ------------------------------ --------------------VM Reserved 1652432VM Committed 177096AWE Allocated 13983744MultiPage Allocator 22384SinglePage Allocator 876208(5 row(s) affected)MEMORYCLERK_SQLGENERAL (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 16552 MultiPage Allocator 3560(7 row(s) affected)MEMORYCLERK_SQLBUFFERPOOL (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 1613856 VM Committed 139296 AWE Allocated 13983744 SM Reserved 0 SM Commited 0 SinglePage Allocator 0 MultiPage Allocator 3680(7 row(s) affected)MEMORYCLERK_SQLOPTIMIZER (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 8248 MultiPage Allocator 88(7 row(s) affected)MEMORYCLERK_SQLUTILITIES (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 240 VM Committed 240 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 528 MultiPage Allocator 0(7 row(s) affected)MEMORYCLERK_SQLSTORENG (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 9664 VM Committed 9664 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 5976 MultiPage Allocator 936(7 row(s) affected)MEMORYCLERK_SQLCONNECTIONPOOL (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 784 MultiPage Allocator 0(7 row(s) affected)MEMORYCLERK_SQLCLR (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 8 MultiPage Allocator 0(7 row(s) affected)MEMORYCLERK_SQLSERVICEBROKER (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 160 MultiPage Allocator 192(7 row(s) affected)MEMORYCLERK_SQLHTTP (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 8 MultiPage Allocator 0(7 row(s) affected)MEMORYCLERK_SNI (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 72 MultiPage Allocator 16(7 row(s) affected)MEMORYCLERK_FULLTEXT (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 16 MultiPage Allocator 0(7 row(s) affected)MEMORYCLERK_SQLXP (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 16 MultiPage Allocator 0(7 row(s) affected)MEMORYCLERK_BHF (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 240 MultiPage Allocator 0(7 row(s) affected)MEMORYCLERK_HOST (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 72 MultiPage Allocator 64(7 row(s) affected)MEMORYCLERK_SOSNODE (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 18992 MultiPage Allocator 9552(7 row(s) affected)MEMORYCLERK_SQLSERVICEBROKERTRANSPORT (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 24 MultiPage Allocator 0(7 row(s) affected)CACHESTORE_OBJCP (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 282296 MultiPage Allocator 304(7 row(s) affected)CACHESTORE_SQLCP (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 494312 MultiPage Allocator 3800(7 row(s) affected)CACHESTORE_PHDR (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 3752 MultiPage Allocator 0(7 row(s) affected)CACHESTORE_XPROC (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 56 MultiPage Allocator 0(7 row(s) affected)CACHESTORE_TEMPTABLES (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 168 MultiPage Allocator 0(7 row(s) affected)CACHESTORE_NOTIF (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 16 MultiPage Allocator 0(7 row(s) affected)CACHESTORE_VIEWDEFINITIONS (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 16 MultiPage Allocator 0(7 row(s) affected)CACHESTORE_XMLDBTYPE (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 8 MultiPage Allocator 0(7 row(s) affected)CACHESTORE_XMLDBELEMENT (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 8 MultiPage Allocator 0(7 row(s) affected)CACHESTORE_XMLDBATTRIBUTE (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 8 MultiPage Allocator 0(7 row(s) affected)CACHESTORE_STACKFRAMES (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 0 MultiPage Allocator 8(7 row(s) affected)CACHESTORE_BROKERTBLACS (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 272 MultiPage Allocator 0(7 row(s) affected)CACHESTORE_BROKERKEK (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 8 MultiPage Allocator 0(7 row(s) affected)CACHESTORE_BROKERDSH (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 8 MultiPage Allocator 0(7 row(s) affected)CACHESTORE_BROKERUSERCERTLOOKUP (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 8 MultiPage Allocator 0(7 row(s) affected)CACHESTORE_BROKERRSB (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 8 MultiPage Allocator 0(7 row(s) affected)CACHESTORE_BROKERREADONLY (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 32 MultiPage Allocator 0(7 row(s) affected)CACHESTORE_BROKERTO (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 8 MultiPage Allocator 0(7 row(s) affected)CACHESTORE_EVENTS (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 16 MultiPage Allocator 0(7 row(s) affected)CACHESTORE_SYSTEMROWSET (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 6008 MultiPage Allocator 0(7 row(s) affected)USERSTORE_SCHEMAMGR (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 13544 MultiPage Allocator 0(7 row(s) affected)USERSTORE_DBMETADATA (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 14568 MultiPage Allocator 0(7 row(s) affected)USERSTORE_TOKENPERM (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 112 MultiPage Allocator 0(7 row(s) affected)USERSTORE_OBJPERM (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 976 MultiPage Allocator 0(7 row(s) affected)USERSTORE_SXC (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 184 MultiPage Allocator 0(7 row(s) affected)OBJECTSTORE_LBSS (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 336 MultiPage Allocator 0(7 row(s) affected)OBJECTSTORE_SNI_PACKET (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 1136 MultiPage Allocator 48(7 row(s) affected)OBJECTSTORE_SERVICE_BROKER (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 0 VM Committed 0 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 256 MultiPage Allocator 0(7 row(s) affected)OBJECTSTORE_LOCK_MANAGER (Total) KB ---------------------------------------------------------------- -------------------- VM Reserved 4096 VM Committed 4096 AWE Allocated 0 SM Reserved 0 SM Commited 0 SinglePage Allocator 6352 MultiPage Allocator 0(7 row(s) affected)Buffer Distribution Buffers------------------------------ -----------Stolen 6468Free 171Cached 103058Database (clean) 1577112Database (dirty) 60734I/O 0Latched 0(7 row(s) affected)Buffer Counts Buffers------------------------------ --------------------Committed 1747543Target 1747543Hashed 1637846Stolen Potential 65578External Reservation 0Min Free 256Visible 184320Available Paging File 494041(8 row(s) affected)Procedure Cache Value------------------------------ -----------TotalProcs 12166TotalPages 98065InUsePages 3070(3 row(s) affected) Global Memory Objects Buffers------------------------------ --------------------Resource 546Locks 797XDES 50SETLS 8SE Dataset Allocators 16SubpDesc Allocators 8SE SchemaManager 1646SQLCache 1551Replication 2ServerGlobal 26XP Global 2SortTables 2(12 row(s) affected) Query Memory Objects Value------------------------------ -----------Grants 0Waiting 0Available (Buffers) 58311Maximum (Buffers) 58311Limit 58340Next Request 0Waiting For 0Cost 0Timeout 0Wait Time 0Last Target 61410(11 row(s) affected)Small Query Memory Objects Value------------------------------ -----------Grants 0Waiting 0Available (Buffers) 3069Maximum (Buffers) 3069Limit 3069(5 row(s) affected)Optimization Queue Value------------------------------ --------------------Overall Memory 1210318848Target Memory 320069632Last Notification 1Timeout 6Early Termination Factor 5(5 row(s) affected)Small Gateway Value------------------------------ --------------------Configured Units 32Available Units 32Acquires 0Waiters 0Threshold Factor 250000Threshold 250000(6 row(s) affected)Medium Gateway Value------------------------------ --------------------Configured Units 8Available Units 8Acquires 0Waiters 0Threshold Factor 12(5 row(s) affected)Big Gateway Value------------------------------ --------------------Configured Units 1Available Units 1Acquires 0Waiters 0Threshold Factor 8(5 row(s) affected)MEMORYBROKER_FOR_CACHE Value-------------------------------- --------------------Allocations 103059Rate 78Target Allocations 135746Future Allocations 0Last Notification 1(5 row(s) affected)MEMORYBROKER_FOR_STEAL Value-------------------------------- --------------------Allocations 6462Rate 0Target Allocations 39071Future Allocations 0Last Notification 1(5 row(s) affected)MEMORYBROKER_FOR_RESERVE Value-------------------------------- --------------------Allocations 0Rate 0Target Allocations 65505Future Allocations 32896Last Notification 1(5 row(s) affected)DBCC execution completed. If DBCC printed error messages, contact your system administrator. |
|
|
clarkbaker1964
Constraint Violating Yak Guru
428 Posts |
Posted - 2008-09-26 : 00:34:49
|
Page Life Expectancy statistic should be checked. This statistic indicates the length of time SQL Server estimates a page will remain in the buffer cache. So, it is wise for often used data to be pinned in the buffer cache. You can do anything at www.zombo.com |
 |
|
|
programmer76
Starting Member
6 Posts |
Posted - 2008-09-26 : 09:43:28
|
| There is no issue with page life expectancy. It is overall above 4000 sec or so. I noticed that server memory is fixed value for min and max value and approximatley out of 17 gb memory available 15 gb is specified in min and max memory. Can that also be a concern? Also looking at DBCC memory status is there anything else we can figure out? |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-09-26 : 10:12:32
|
Are there many ad-hoc or dynamic sql calls to the database? E 12°55'05.63"N 56°04'39.26" |
 |
|
|
programmer76
Starting Member
6 Posts |
Posted - 2008-09-26 : 11:39:52
|
| NO they are very concerned about security and hence try to avoid dynamic sql as much as they can. |
 |
|
|
programmer76
Starting Member
6 Posts |
Posted - 2008-09-26 : 15:24:01
|
| I reconfirmed on client side. Buffer to cache hit ratio is above 95 for a while now. Because when i ran performance monitor I always found buffer cache hit ratio above 98 and I was wondering why I couldn't replicate the problem from my side. They are having problem with sql server plan cache: cache to hit ratio that value is sometimes going below 80%. Is that even considered a problem or that number should be higher also in 90s? Also other counter SQL cache memory is also less than 10 MB even after having the physical memory of 14 GB on the server. I hope this helps and may be now and gurus can suggest me the right path to go to take care of this! Thanks |
 |
|
|
|
|
|