Memory Management in SQL Server Analysis Services

Slides:



Advertisements
Similar presentations
2000 SRM Associates, Ltd. Windows NT/2000 Performance and Capacity Key Metrics Jerry L. Rosenberg SRM Associates, Ltd.
Advertisements

Meeting Date: October 16, 2007 Topic: The 64-bit Question by Rick Heiges
John Howard IT Pro Evangelist Microsoft UK Microsoft.
Introduction to Computers Part II
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Adam Jorgensen Pragmatic Works Performance Optimization in SQL Server Analysis Services 2008.
Mitchel Sellers, CEO IowaComputerGurus Inc.. Active in the DotNetNuke eco system for about 6 years Author of Professional DotNetNuke Module Programming.
Microsoft Office SharePoint Portal Server 2007 Introduction to InfoPath Forms Services Daryl L. Rudolph.
© 2009 Avaya Inc. All rights reserved. Introduction to IP Office Customer Call Reporter Current through IP Office R6.1.
SQL Server Resource Governor. Introduction To The Resource Governor Resource Governor was added in SQL Server 2008 Purpose is to manage resources by specifying.
Burt King We will cover: Essentials --No command line needed here (mott) What is SQL Server How does it come to life What are the.
Cache –Warming Strategies for Analysis Services 2008 Chris Webb Crossjoin Consulting Limited
SSRS 2008 Architecture Improvements Scale-out SSRS 2008 Report Engine Scalability Improvements.
Discovering SQL all rights reserved (c) 2010 agilitator.com INSTALLING MS SQL Server 2008 R2 Express Edition.
© Neeraj Suri EU-NSF ICT March 2006 Budapesti Műszaki és Gazdaságtudományi Egyetem Méréstechnika és Információs Rendszerek Tanszék Zoltán Micskei
Lesson 15 – INSTALL AND SET UP NETWARE 5.1. Understanding NetWare 5.1 Preparing for installation Installing NetWare 5.1 Configuring NetWare 5.1 client.
Kashif Jalal CA-240 (072) Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2 of…
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 10: Collect and Analyze Performance Data.
Capacity Planning in SharePoint Capacity Planning Process of evaluating a technology … Deciding … Hardware … Variety of Ways Different Services.
NovaBACKUP 10 xSP Technical Training By: Nathan Fouarge
Russ Houberg Senior Technical Architect, MCM KnowledgeLake, Inc.
SQL Server memory architecture and debugging memory Issues
 Demand Technology Software, Inc. Memory Leaks Demand Technology 1020 Eighth Avenue South, Suite 6, Naples, FL phone: (941) fax: (941)
Performance Investigations with Analysis Services 2012
Oracle Memory Configuration on Windows Server Configuring Large Memory for Oracle on 32-bit and 64-bit Windows.
Windows 2000 Memory Management Computing Department, Lancaster University, UK.
SPONSORS. Microsoft PowerPivot for SQL Server, Excel 2010, and SharePoint 2010 Michael Herman Syntergy, Inc.
SSIS Over DTS Sagayaraj Putti (139460). 5 September What is DTS?  Data Transformation Services (DTS)  DTS is a set of objects and utilities that.
 Demand Technology Software, Inc. 32-bit Virtual Memory Constraints in Windows: an Update Mark Friedman Demand Technology 1020 Eighth Avenue South,
Key Perf considerations & bottlenecks Windows Azure VM characteristics Monitoring TroubleshootingBest practices.
11 SYSTEM PERFORMANCE IN WINDOWS XP Chapter 12. Chapter 12: System Performance in Windows XP2 SYSTEM PERFORMANCE IN WINDOWS XP  Optimize Microsoft Windows.
Module 10: Monitoring ISA Server Overview Monitoring Overview Configuring Alerts Configuring Session Monitoring Configuring Logging Configuring.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
4.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 4: Organizing a Disk for Data.
BW Know-How Call : Performance Tuning dial-in phone numbers! U.S. Toll-free: (877) International: (612) Passcode: “BW”
Navigating SQL Server Lesson 3. Skills Matrix Graphical User Interface (GUI) Management Tools SQL Server Management Studio SQL Server Configuration Manager.
Amit Bansal CTO | Peopleware India (unit of eDominer Systems) | |
System Software Chapter Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved.
EXCEL MSOLAP PowerPivot OLEDB Transports TCPTCP SSAS Server (1) SERVER= ; DATA SOURCE= ; How used: regular client-server connection Just like SQL.
The Million Point PI System – PI Server 3.4 The Million Point PI System PI Server 3.4 Jon Peterson Rulik Perla Denis Vacher.
SQL Server Memory Architecture Sumit Sarabhai Microsoft Corp.
Lesson 20: Managing Local Storage MOAC : Configuring Windows 8.1.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
20 Copyright © 2008, Oracle. All rights reserved. Cache Management.
Module 6: Administering Reporting Services. Overview Server Administration Performance and Reliability Monitoring Database Administration Security Administration.
Datazen – an overview Frank Geisler Please Support Our Sponsors SQL Saturday is made possible with the generous support of these sponsors.
October 15-18, 2013 Charlotte, NC Accelerating Database Performance Using Compression Joseph D’Antoni, Solutions Architect Anexinet.
Load Testing Analysis Services 30 th march 2012 Bob Duffy Database Architect Prodata SQL Centre of Excellence.
A highway through the mountains of data with the SQL Server Tabular Model This presentation is a walk through in-memory database and reporting features.
AA202: Performance Enhancers for Laserfiche Connie Anderson, Technical Writer.
SQL Server 2016 – New Features Tilahun Endihnew March 12, 2016.
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
TIBCO Business Events Online Training. Introduction to TIBCO BE Tibco Business Events is complex event processing software with a powerful engine enables.
Windows Server 2003 { First Steps and Administration} Benedikt Riedel MCSE + Messaging
Performance Monitoring for SQL Server Analysis Services Stan Geiger #506 | Baltimore BI 2016.
Monitoring Windows Server 2012
Get the Most out of SQL Server Standard Edition
Configuration and Monitoring
Monitoring SQL with System Center
Platform as a Service (PaaS)
Implementing Update Management
Query Performance Tuning: Start to Finish
W3 Status Analyzer.
Performance Monitoring for SQL Server Analysis Services
Designing Database Solutions for SQL Server
Operating System Concepts
Web Development Using ASP .NET
Evaluating System Performance
Microsoft SQL Server 2014 for Oracle DBAs Module 2
Unit OS5: Memory Management
Presentation transcript:

Memory Management in SQL Server Analysis Services Steve Wright Director of Product Support SQL Sentry, Inc.

About the Presenter Steve Wright – Director of Product Support for SQL Sentry Inc. Headquartered in Huntersville, NC SQL Sentry provides tools to monitor your entire Microsoft BI Platform WWW.SQLSENTRY.NET

About this presentation… We will discuss methods used to manage memory in SQL Server Analysis Services Expected behavior when applying these methods. How to monitor that behavior Examples of Issues when these methods are mis-applied.

SSAS Memory Categories Shrinkable Easily reduced and returned to the OS SE and FE caches Nonshrinkable Used for more essential system-related activites Memory Allocators Metadata Objects Not easily reduced.

Measuring SSAS Memory MSOLAP$SQL:Memory Cleaner Memory KB MSOLAP$SQL:Memory >Cleaner Memory (non)shrinkable KB

SSAS Memory Limits Used to determine how to allocate and manage internal memory Configurable with SSAS properties with SSMS or edit msmdsrv.ini Memory\LowMemoryLimit Memory\TotalMemoryLimit Refers to physical memory on the server

Memory\LowMemoryLimit Default Value 65 in SSAS2008, 75 in SSAS2005 Percentage if between 0 and 100. Bytes if greater than 100. Refers to total physical memory on machine

Memory\TotalMemoryLimit Default Value 80 Percentage if between 0 and 100. Bytes if greater than 100. Total amount of memory the SSAS process(msmdsrv.exe) can consume.

Total Memory Limit cont. If set to 0, SSAS will use no memory for caching Total available to SSAS depends on platform 32-bit limited to 3GB with /Gb switch enabled 64-bit provides all memory available

Behavior – Low Limit Reached Cleaner threads start moving data out of memory (non-aggresively) Perfmon – MSOLAP$SQL:Memory > Cleaner Memory Shrunk KB/sec

Behavior – Total Limit Reached Cleaner goes into crisis mode More aggressive cleanup More threads spawned Dramatic performance impact

Behavior Between Low and Total Economic memory management Memory Price per KB Depends on amount available based on limits Memory is free and the livin’ is easy under the Low Limit! Memory price begins to increase as total memory increases between Low and Total.

SSAS Memory Management Self governing – no consideration for low physical memory conditions Windows File Cache Unlike SQL Server, SSAS DB’s are collection of files on files system and use file system cache SSAS data may be loaded in RAM as file cache Not part of SSAS process memory or limits

Monitoring - Perfmon Memory Usage KB Memory Limit Low(High) KB Cleaner Memory KB Cleaner Memory (Non)Shrinkable KB Cleaner Memory Shrunk KB Do NOT rely on Task Manager

Monitoring Example

The Big Picture

Graphical Anomaly - Background SQL Sentry Customer – Financial Services Beta tester of SQL Sentry Performance Advisor for Analysis Services Eager to test as they were suffering from SSAS performance issues Scheduled Microsoft to come on-site to help

Common Issues – Graphical Anomaly?

Graphical Anomaly – The Investigation Memory Limit Setting Configured Value Perf Counter Value (KB) Memory\LowMemoryLimit 2097152 8192 Memory\TotalMemoryLimit 13531488 13312

Graphical Anomaly – The Investigation

Graphical Anomaly – A Comparison Before After

The Investigation Continues

The Investigation Continues

The Investigation Continues Almost all time spent on non-cached Storage Engine operations (SE non-cached) Every time query needs data it’s not found in the FE Cache FE requests from SE SE unable to find in its cache Must go to file system

Caught Red Handed!

Caught Red Handed! Total Queries shows how many times storage engine went to the file system to read data from a partition or aggregation. Want this to be as close to 0 as possible. Exceptions are when Agg is first hit and loaded into cache or cache is cold.

Confirmation

Could have been worse!

Scenario #2 Preallocation

Memory Preallocation Introduced with SQL 2005 SP2 due to limitations with memory allocations in Windows Server 2003 Edit in msmdsrv.ini <PreAllocate> </PreAllocate> Preallocates % of physical memory on SSAS startup

SQL CAT Tech Notes Running Microsoft SQL Server 2008 Analysis Services on Windows Server 2008 vs. Windows Server 2003 and Memory Preallocation: Lessons Learned http://sqlcat.com/technicalnotes/archive/2008/07/16/running-microsoft-sql-server-2008-analysis-services-on-windows-server-2008-vs-windows-server-2003-and-memory-preallocation-lessons-learned.aspx Author: Carl Rabeler Contributors: Eric Jacobsen, Thomas Kejser Technical Reviewers: Brad Daniels, Lindsey Allen, John Desch, Wayne Robertson, Kevin Cox

SQL CAT Report Summary SSAS 2008 runs equally well on Windows 2008 with or without preallocation SSAS 2008 runs substantially better on Windows 2003 WITH preallocation Essentially equal to Windows 2008

Points to Consider Be sure to set low enough so sufficient memory remains for other processes and avoid paging. Be sure to set high enough for it to help SSAS Use peak value for memory counters as guideline Also applies to SSAS 2005 (no change in code)

PreAllocate Pitfall? <PreAllocate> 80 </PreAllocate> <TotalMemoryLimit> 80 </TotalMemoryLimit> <LowMemoryLimit> 65 </LowMemoryLimit>

PreAllocate Pitfall? PreAllocate does not “override” memory limits Memory cleaner acts as if all preallocated memory is in use. In this case PreAllocate = TotalMemoryLimit Result – cleaner goes into crisis mode Performance suffers drastically

Resources http://sqlcat.com/tags/Analysis+Services/default.aspx Books Online http://cwebbbi.spaces.live.com/default.aspx WWW.SQLSENTRY.NET

Thank you!

Monitoring Perfmon counters Another option!