En el siguiente webcast http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032438450&Culture=es-AR analizamos las herramientas de desempeño de SQL Server 2008 y cómo utilizarlas.
Saludos,
Ing. Eduardo Castro Martínez, PhD – Microsoft SQL Server MVP
http://mswindowscr.org
http://comunidadwindows.org
Costa Rica
Technorati Tags: SQL Server
LiveJournal Tags: SQL Server
del.icio.us Tags: SQL Server
http://ecastrom.blogspot.com
http://ecastrom.wordpress.com
http://ecastrom.spaces.live.com
http://universosql.blogspot.com
http://todosobresql.blogspot.com
http://todosobresqlserver.wordpress.com
http://mswindowscr.org/blogs/sql/default.aspx
http://citicr.org/blogs/noticias/default.aspx
http://sqlserverpedia.blogspot.com/
Presentation at March 2019 Dutch Postgres User Group Meetup on lessons learnt while migrating from Oracle to Postgres, demo'ed via vagrant test environments and using generic pgbench datasets.
2AM. We sleeping well. And our mobile ringing and ringing. Message: DISASTER! In this session (on slides) we are NOT talk about potential disaster (such BCM); we talk about: What happened NOW? Which tasks should have been finished BEFORE. Is virtual or physical SQL matter? We talk about systems, databases, peoples, encryption, passwords, certificates and users. In this session (on few demos) I'll show which part of our SQL Server Environment are critical and how to be prepared to disaster. In some documents I'll show You how to be BEST prepared.
A basic overlook for some configurations when running SQL Server, SSRS and SSAS. Some configurations are also when the services are ran on the same stand alone server. There are also basic hardware considerations.
Presentation at March 2019 Dutch Postgres User Group Meetup on lessons learnt while migrating from Oracle to Postgres, demo'ed via vagrant test environments and using generic pgbench datasets.
2AM. We sleeping well. And our mobile ringing and ringing. Message: DISASTER! In this session (on slides) we are NOT talk about potential disaster (such BCM); we talk about: What happened NOW? Which tasks should have been finished BEFORE. Is virtual or physical SQL matter? We talk about systems, databases, peoples, encryption, passwords, certificates and users. In this session (on few demos) I'll show which part of our SQL Server Environment are critical and how to be prepared to disaster. In some documents I'll show You how to be BEST prepared.
A basic overlook for some configurations when running SQL Server, SSRS and SSAS. Some configurations are also when the services are ran on the same stand alone server. There are also basic hardware considerations.
[db tech showcase Tokyo 2014] B15: Scalability with MariaDB and MaxScale by ...Insight Technology, Inc.
Scalability with MariaDB and MaxScale talks about MariaDB 10, and MaxScale, a pluggable router for your queries. These are technologies developed at MariaDB Corporation, made opensource, and will help scale your MariaDB and MySQL workloads
2AM. We sleeping well. And our mobile ringing and ringing. Message: DISASTER! In this session (on slides) we are NOT talk about potential disaster (such BCM); we talk about: What happened NOW? Which tasks should have been finished BEFORE. Is virtual or physical SQL matter? We talk about systems, databases, peoples, encryption, passwords, certificates and users. In this session (on few demos) I'll show which part of our SQL Server Environment are critical and how to be prepared to disaster. In some documents I'll show You how to be BEST prepared.
MySQL Administrator
Basic course
- MySQL 개요
- MySQL 설치 / 설정
- MySQL 아키텍처 - MySQL 스토리지 엔진
- MySQL 관리
- MySQL 백업 / 복구
- MySQL 모니터링
Advanced course
- MySQL Optimization
- MariaDB / Percona
- MySQL HA (High Availability)
- MySQL troubleshooting
네오클로바
http://neoclova.co.kr/
MySQL Backup and Security Best PracticesLenz Grimmer
Slides of my talk about MySQL Backup and Security at phpDay in Verona, Italy:
http://www.phpday.it/site/phpday-2009/calendario-conferenze/canale-developers/mysql-backup-and-security-best-practices/
SQL Server ASYNC_NETWORK_IO Wait Type ExplainedConfio Software
When a SQL Server session waits on the async network io event, it may be encountering issues with the network or with aclient application not processing the data quickly enough. If the wait times for "async network io" are high, review the client application to see if large results sets are being sent to the client. If they are, work with the developers to understand if all the data is needed and reduce the size of result set if possible. Learn tips and techniques for decreasing decrease waits for async_network_io in this presentation.
Uwe Ricken at SQL in the City 2016.
Waits, as they’re known in the SQL Server world, indicate that a worker thread inside SQL Server is waiting for a resource to become available before it can proceed with executing. They’re often a major source of performance issues.
In this session, we’ll walk through an optimal performance troubleshooting process for a variety of scenarios, and illustrate both the strengths and weaknesses of using a waits-only approach to troubleshooting.
PASS VC: SQL Server Performance Monitoring and BaseliningPARIKSHIT SAVJANI
When managing large scale deployment of SQL Server instances, it is important for DBAs to setup proactive monitoring & establishing performance baselines which helps in performance tuning, capacity planning & identifying workload patterns. Attend this session to learn what data should a DBAs collect & how, to monitor & establish performance baseline in SQL Server.
It Depends - Database admin for developers - Rev 20151205Maggie Pint
Do you feel like most interactions with your DBA/IT team result in statement ""It Depends""? Do you wonder what metrics your DBA is evaluating to make assertions about the system? Do you want to know key tips for performance tuning applications? A former DBA turned full-stack web developer will take you through some of the metrics and tools that DBAs use to evaluate performance so that you can more easily communicate with your DBA or troubleshoot your SQL server personally.
Investigate SQL Server Memory Like Sherlock HolmesRichard Douglas
Memory is one part of the holy trinity of resources consumed by SQL Server, the others being CPU and disk. Most people know how to look at disk latency and throughput and then take remedial measures to fix those issues. But what about memory issues?
In this session, you will learn how SQL Server uses memory and various caches, how to gauge memory pressure, and how to address the significant problems it can cause.
You will leave with a much clearer understanding of how to monitor and manage memory consumption within SQL Server using native Dynamic Management Objects.
Sql server performance tuning and optimizationManish Rawat
Sql server performance tuning and optimization
SQL Server Concepts/Structure
Performance Measuring & Troubleshooting Tools
Locking
Performance Problem : CPU
Performance Problem : Memory
Performance Problem : I/O
Performance Problem : Blocking
Query Tuning
Indexing
[db tech showcase Tokyo 2014] B15: Scalability with MariaDB and MaxScale by ...Insight Technology, Inc.
Scalability with MariaDB and MaxScale talks about MariaDB 10, and MaxScale, a pluggable router for your queries. These are technologies developed at MariaDB Corporation, made opensource, and will help scale your MariaDB and MySQL workloads
2AM. We sleeping well. And our mobile ringing and ringing. Message: DISASTER! In this session (on slides) we are NOT talk about potential disaster (such BCM); we talk about: What happened NOW? Which tasks should have been finished BEFORE. Is virtual or physical SQL matter? We talk about systems, databases, peoples, encryption, passwords, certificates and users. In this session (on few demos) I'll show which part of our SQL Server Environment are critical and how to be prepared to disaster. In some documents I'll show You how to be BEST prepared.
MySQL Administrator
Basic course
- MySQL 개요
- MySQL 설치 / 설정
- MySQL 아키텍처 - MySQL 스토리지 엔진
- MySQL 관리
- MySQL 백업 / 복구
- MySQL 모니터링
Advanced course
- MySQL Optimization
- MariaDB / Percona
- MySQL HA (High Availability)
- MySQL troubleshooting
네오클로바
http://neoclova.co.kr/
MySQL Backup and Security Best PracticesLenz Grimmer
Slides of my talk about MySQL Backup and Security at phpDay in Verona, Italy:
http://www.phpday.it/site/phpday-2009/calendario-conferenze/canale-developers/mysql-backup-and-security-best-practices/
SQL Server ASYNC_NETWORK_IO Wait Type ExplainedConfio Software
When a SQL Server session waits on the async network io event, it may be encountering issues with the network or with aclient application not processing the data quickly enough. If the wait times for "async network io" are high, review the client application to see if large results sets are being sent to the client. If they are, work with the developers to understand if all the data is needed and reduce the size of result set if possible. Learn tips and techniques for decreasing decrease waits for async_network_io in this presentation.
Uwe Ricken at SQL in the City 2016.
Waits, as they’re known in the SQL Server world, indicate that a worker thread inside SQL Server is waiting for a resource to become available before it can proceed with executing. They’re often a major source of performance issues.
In this session, we’ll walk through an optimal performance troubleshooting process for a variety of scenarios, and illustrate both the strengths and weaknesses of using a waits-only approach to troubleshooting.
PASS VC: SQL Server Performance Monitoring and BaseliningPARIKSHIT SAVJANI
When managing large scale deployment of SQL Server instances, it is important for DBAs to setup proactive monitoring & establishing performance baselines which helps in performance tuning, capacity planning & identifying workload patterns. Attend this session to learn what data should a DBAs collect & how, to monitor & establish performance baseline in SQL Server.
It Depends - Database admin for developers - Rev 20151205Maggie Pint
Do you feel like most interactions with your DBA/IT team result in statement ""It Depends""? Do you wonder what metrics your DBA is evaluating to make assertions about the system? Do you want to know key tips for performance tuning applications? A former DBA turned full-stack web developer will take you through some of the metrics and tools that DBAs use to evaluate performance so that you can more easily communicate with your DBA or troubleshoot your SQL server personally.
Investigate SQL Server Memory Like Sherlock HolmesRichard Douglas
Memory is one part of the holy trinity of resources consumed by SQL Server, the others being CPU and disk. Most people know how to look at disk latency and throughput and then take remedial measures to fix those issues. But what about memory issues?
In this session, you will learn how SQL Server uses memory and various caches, how to gauge memory pressure, and how to address the significant problems it can cause.
You will leave with a much clearer understanding of how to monitor and manage memory consumption within SQL Server using native Dynamic Management Objects.
Sql server performance tuning and optimizationManish Rawat
Sql server performance tuning and optimization
SQL Server Concepts/Structure
Performance Measuring & Troubleshooting Tools
Locking
Performance Problem : CPU
Performance Problem : Memory
Performance Problem : I/O
Performance Problem : Blocking
Query Tuning
Indexing
SQL Server Tuning to Improve Database PerformanceMark Ginnebaugh
SQL Server tuning is a process to eliminate performance bottlenecks and improve application service. This presentation from Confio Software discusses SQL diagramming, wait type data, column selectivity, and other solutions that will help make tuning projects a success, including:
•SQL Tuning Methodology
•Response Time Tuning Practices
•How to use SQL Diagramming techniques to tune SQL statements
•How to read executions plans
This presentation was prepared for a Webcast where John Yerhot, Engine Yard US Support Lead, and Chris Kelly, Technical Evangelist at New Relic discussed how you can scale and improve the performance of your Ruby web apps. They shared detailed guidance on issues like:
Caching strategies
Slow database queries
Background processing
Profiling Ruby applications
Picking the right Ruby web server
Sharding data
Attendees will learn how to:
Gain visibility on site performance
Improve scalability and uptime
Find and fix key bottlenecks
See the on-demand replay:
http://pages.engineyard.com/6TipsforImprovingRubyApplicationPerformance.html
Optimizing the queries you send to the database can greatly increase the database's performance, but what do you know about all those strange MySQL variables that can be played with to get even more power from the database? Join me as we go over some of the basics of the various MySQL settings you can twitch, tweak and massage to get the most out of your MySQL server.
Machine Learning con Azure Managed InstanceEduardo Castro
En esta presentación mostramos las opciones para implementar Machine Learning dentro de Azure, así como las formas de configurar y utilizar Python dentro de Azure Managed Instance
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
Elevating Tactical DDD Patterns Through Object CalisthenicsDorra BARTAGUIZ
After immersing yourself in the blue book and its red counterpart, attending DDD-focused conferences, and applying tactical patterns, you're left with a crucial question: How do I ensure my design is effective? Tactical patterns within Domain-Driven Design (DDD) serve as guiding principles for creating clear and manageable domain models. However, achieving success with these patterns requires additional guidance. Interestingly, we've observed that a set of constraints initially designed for training purposes remarkably aligns with effective pattern implementation, offering a more ‘mechanical’ approach. Let's explore together how Object Calisthenics can elevate the design of your tactical DDD patterns, offering concrete help for those venturing into DDD for the first time!
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
State of ICS and IoT Cyber Threat Landscape Report 2024 previewPrayukth K V
The IoT and OT threat landscape report has been prepared by the Threat Research Team at Sectrio using data from Sectrio, cyber threat intelligence farming facilities spread across over 85 cities around the world. In addition, Sectrio also runs AI-based advanced threat and payload engagement facilities that serve as sinks to attract and engage sophisticated threat actors, and newer malware including new variants and latent threats that are at an earlier stage of development.
The latest edition of the OT/ICS and IoT security Threat Landscape Report 2024 also covers:
State of global ICS asset and network exposure
Sectoral targets and attacks as well as the cost of ransom
Global APT activity, AI usage, actor and tactic profiles, and implications
Rise in volumes of AI-powered cyberattacks
Major cyber events in 2024
Malware and malicious payload trends
Cyberattack types and targets
Vulnerability exploit attempts on CVEs
Attacks on counties – USA
Expansion of bot farms – how, where, and why
In-depth analysis of the cyber threat landscape across North America, South America, Europe, APAC, and the Middle East
Why are attacks on smart factories rising?
Cyber risk predictions
Axis of attacks – Europe
Systemic attacks in the Middle East
Download the full report from here:
https://sectrio.com/resources/ot-threat-landscape-reports/sectrio-releases-ot-ics-and-iot-security-threat-landscape-report-2024/
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
91mobiles recently conducted a Smart TV Buyer Insights Survey in which we asked over 3,000 respondents about the TV they own, aspects they look at on a new TV, and their TV buying preferences.
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
Here is something new! In our next Connector Corner webinar, we will demonstrate how you can use a single workflow to:
Create a campaign using Mailchimp with merge tags/fields
Send an interactive Slack channel message (using buttons)
Have the message received by managers and peers along with a test email for review
But there’s more:
In a second workflow supporting the same use case, you’ll see:
Your campaign sent to target colleagues for approval
If the “Approve” button is clicked, a Jira/Zendesk ticket is created for the marketing design team
But—if the “Reject” button is pushed, colleagues will be alerted via Slack message
Join us to learn more about this new, human-in-the-loop capability, brought to you by Integration Service connectors.
And...
Speakers:
Akshay Agnihotri, Product Manager
Charlie Greenberg, Host
2. Session Objectives:
Get familiar with database performance tuning
tools, especially what SQL Server 2008 offers
Understand methodology of database
performance bottleneck analysis
Learn features/improvements of SQL Server
2008 that help improve performance
3. Target the most challenging and innovative
SQL Server applications
10+ TB DW, 3k/tran/s OLTP, Large 500GB+ Cubes, Competitive migrations,
Complex deployments, Server Consolidation (1000+)
Invest in large scale, referenceable SQL Server projects
across the world
Provide SQLCAT technical & project experience
Conduct architecture and design reviews covering performance,
operation, scalability and availability
Offer use of HW lab in Redmond with direct access to SQL Server
development team
10. Built-in system_health session
select event_session_id, name, startup_state from
sys.server_event_sessions
Session definition example
create event session session_error on server
ADD EVENT sqlserver.error_reported
(action (sqlserver.sql_text, sqlserver.tsql_stack,
sqlserver.client_app_name)
where error = 50001)
ADD target package0.ring_buffer
with (max_dispatch_latency = 1 seconds)
go
alter event session session_error on server state = start;
go
11.
12. Memory allocation tracking
sys.dm_os_memory_brokers
sys.dm_os_memory_nodes
Reqource Governor
sys.dm_resource_governor_configuration
sys.dm_resource_governor_resource_pools
sys.dm_resource_governor_workload_groups
Query performance (hash value for query and plan)
sys.dm_exec_query_stats
Sys.dm_exec_requests
sys.dm_exec_procedure_stats
sys.dm_exec_trigger_stats
More…
13. Bottleneck – A point or component of a
process where throughput is the slowest.
Understanding where time is spent
Elapsed Time = Running + Waiting
Key is the waiting - what type of wait(s)?
14. Monitor and identify I/O bottleneck
Resource Monitor & Performance Monitor
MDW
DMV & Extended Events
What is driving high I/O load?
Inefficient query plan
Too much data to read/write
Slow I/O subsystem
17. Physical Disk Object:
Avg. Disk Queue Length
Avg. Disk Sec/Read
Avg. Disk Sec/Write
%Disk Time
Disk Transfers/Sec
Avg. Disk Bytes/Read
Avg. Disk Bytes/Write
Disk Read Bytes/Sec
Disk Write Bytes/Sec
SQL Server Buffer Manager Object: (memory
pressure could cause I/O pressure)
Buffer Cache hit ratio
Page Life Expectancy
Checkpoint pages/sec
Lazywrites/sec
19. High I/O Latch sys.dm_os_wait_stats
Wait Time sys.dm_exec_requests
pending/stalled sys.dm_io_pending_io_requests
I/O sys.dm_io_virtual_file_stats
ERRORLOG This is
15 second delay in IO
warnings of I/O completion way too
delays slow
20. sqlos package sqlserver package
• async_io_requested • physical_page_read
• async_io_completed • physical_page_write
• wait_info • file_read
• wait_info_external • file_write
• long_io_detected
2009-04-13 18:30:10.170 spid5s SQL Server has encountered 1
occurrence(s) of I/O requests taking longer than 15 seconds to complete on file
[T:tempdbtemplog.ldf] in database [tempdb] (2). The OS file handle is
0x0000000000000670. The offset of the latest long I/O is: 0x000007eecac000
king longer than 15 seconds to complete on file [e:myslowdb.mdf] in database
[myslowdb] (1). The OS file handle is
0x00000438. The offset of the latest long IO is: 0x000000513ce000
21. Look if there is memory pressure
Further narrow down to what queries are
generating the I/O workload. Tune these
queries.
Explore data compression to reduce I/O
load
Upgrade storage hardware
22. Compress tables/indexes to reduce
database size
Compression ratio depends on schema &
data distribution (avg 50-60%)
Reduce query runtime I/O (increase cpu)
Identify compression candidates
sp_estimate_data_compression_savings
sys.dm_db_index_operational_stats
23.
24. Sustained %Processor Time > 80%
Performance Monitor/Task Manager
MDW Server Activity Report
DMV & Extended Events
What is driving high CPU?
Recompilations
Cursors
Inefficient query plans
More…
25. Resource • Monitor it Live
Monitor/Task Manager
Performance Monitor • Watch Live or Log
Counters counters you like
System Data Collector • Formatted Perfmon
Reports counter based report
Windows Performance • Dig deeper using ETW
Toolkit (XPerf)
26. Processor object:
%Privileged Time
%Processor Time New in SQL Server
2008 for Resource
%User Time Governor feature
Process object (SQL Server):
%Privileged Time
%Processor Time
%User Time
SQL Server:Workload Group Stats
CPU usage %
Max request cpu time
SQL Server:Resource Pool Stats
CPU usage %
CPU usage target %
27. SQL Server:SQL Statistics
Batch requests/sec
SQL Compilations/sec
SQL Re-Compilations/sec
SQL Server:Cursor Manager by Type
SQL Server:Cursor Manager Total
Concurrent
processing of multiple
cursors could be cpu
intensive
28. Total CPU
waits
CPU cycles
that did the
real work
Wait in
runnable
queue
Thread
voluntarily
yields
30. sqlos package sqlserver package
•scheduler_monitor_non_yielding_ring_buffer_recorded •sql_statement_completed
•spinlock_backoff •sp_statement_completed
•Wait_info •cursor_manager_cursor_end
•wait_info_external •checkpoint_end
Extended Event can track individual statement level events like Profiler does
with minimal impact -
ADD EVENT sqlserver.sql_statement_completed
(action (sqlserver.sql_text)
WHERE duration > 0),
ADD EVENT sqlserver.sp_statement_completed
(action (sqlserver.sql_text)
WHERE duration > 0)
select top 10
CONVERT(xml, event_data).value('(/event/data/value)[4]','int') as 'cpu'
31. High cpu doesn’t necessarily mean it’s a
problem.
Drill down to specific workload and queries
that drive cpu usage. Tune them.
Use Resource Governor to protect high
priority workloads
Upgrade hardware
32. Resource Governor
allocate cpu/memory to prioritized workloads
based on connection string parameters
Mixed workloads: OLTP, Reporting,
Maintenance
Soft Numa
Node configuration (soft numa node and cpu
affinity)
Network Configuration (soft numa node and tcp
port)
33.
34. Monitor and identify memory pressure
Performance Monitor/Task Manager
MDW Server Activity Report
DMV & Extended Events
What is eating up my memory?
External or internal memory pressure
Inefficient query plan (hashing, sorting,…)
35. AWE
32-bit uses AWE to cache data/index pages
64-bit uses AWE to implement “Locked pages
in memory”
Environment Virtual Address Max physical
Space memory
32-bit on 32-bit OS 2 GB 64 GB
32-bit on 64-bit OS (Wow) 4 GB 64 GB
64-bit on 64-bit OS 8 TB 2 TB
36. Perfmon is golden tool to identify memory
pressure
Memory object:
Available K/M bytes
Commit Limit
Paging File %Usage (Peak)
Page reads/sec
Process object:
Private bytes
Virtual bytes
Working set
37. SQL Server Memory Manager object:
Connection Memory
Lock Memory Somebody is waiting on
Optimizer Memory memory
Memory Grants Pending
…
SQL Server Buffer Manager object:
Buffer cache hit ratio
Checkpoint pages/sec
Free list stalls/sec
Free pages
Lazy writes/sec
Page life expectancy How long will the page
Stolen pages live?
Target pages
Total pages
SQL Server Plan Cache object
SQL Server Resource Pool Stats object
42. Check memory configuration – sp_configure
External memory pressure – Identify what
other processes are competing
Internal memory pressure – Identify which
SQL component is main consumer
Workload/query tuning (sorting, hash join…)
Resource Governor
Hardware upgrade
43.
44. Focus on methodology – no guess
Correlate data points from multiple tools
Performance tuning is iterative process –
bottleneck could move
Resource contention impacts each other
Lack of memory -> high cpu & I/O
Slow I/O -> tempdb contention
…