Welcome to blogs.conchango.com Sign in | Join | Help

Welcome to blogs.conchango.com

Claypole's World - The SQL Server Side

Concerning development of bespoke applications and database administration.

SQL2K5 Enterprise Edition Mini Feature 2 : Ramp up

This one is a bit surprising.

Assume you have a cold SQL Server which you have just re-booted.  The buffer cache is empty and lots of I/O requests are going to be physical. Boo! Hiss!  Down with physical I/O. Well help is at hand (if you are using SQL Server Enterprise Edition).

Ramp-up is the process of converting your I/O's from page size 8KB reads to extent level I/O's i.e. 64KB.  This isn't the extent the page belongs to per se but just an equivalent size. SQL Server does this to accelerate the warming up process of the server.  Essentially rather than reading pages to satisfy your query request it pulls back the surrounding 7 pages to flood the cache with data just in case with the hope that you the user will request one of those pages next.  There is over-head in doing this but I don't believe it's much and the benefit of subsequent requests being potentially logical rather than physical I/O's offsets this cost.  However, you may see 64KB I/O's in perfmon until this period of ramp up has finished.

Thrilling stuff eh. 

However, the question I know that's on your lips is; How do I know when it's finished ramping up?  Well as with most things the answer lies in a DMV.  sys.dm_os_sys_info is the puppy.  This DMV tells you what the target size for the buffer cache is (bpool_commit_target) and also what the current committed value is (bpool_committed) i.e. how much data is already in cache.  Once these two numbers are the same then ramp up ends...till the next time.

The scantily clad documentation for this feature can be found in the I/O Basics chapter 2 paper here.

Cheers, James

P.S. Conchango are recruiting! If you are passionate about Data, SQL Server or Business Intelligence then we'd like to hear from you.  Why not contact me and let's have a chat?

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Claypole's World - The SQL Server Side said:

I thought it might be fun to do series of posts on features that are exclusive to enterprise edition

March 16, 2008 20:44
 

An addition to managing SSAS Caching « Charlie Maitland’s Blog said:

March 16, 2008 22:08

Leave a Comment

(required) 
(optional)
(required) 
Submit

About James.Rowland-Jones

James is a Managing Consultant for Conchango. He works primarily with SQL Server technologies in architecture, development and administration capacities. He also co-ordinates Conchango's SQL Server Community.

View James Rowland-Jones's profile on LinkedIn

Powered by Community Server (Personal Edition), by Telligent Systems