Extreme Performance for DBAs
           ‫| ואלינור‬SQL Server MVP |‫מאיר דודאי‬
‫לפני קצת יותר מ-01 שנים...‬
‫לפני קצת יותר מ-01 שנים...‬
‫לפני קצת יותר מ-01 שנים...‬
‫ואלינור‬
‫החברה המובילה בישראל במתן שירותים מקצועיים בתחום‬      ‫•‬
         ‫בסיסי נתונים: ‪SQL Server, Oracle, MySQL‬‬
           ‫צוות יועצים מוביל המתמחה בכלל הרבדים של‬    ‫•‬
                                      ‫בסיסי הנתונים‬
                     ‫שותפים של ‪ Microsoft‬ו- ‪Oracle‬‬    ‫•‬
                    ‫נציגי מוצרים מובילים בתחום ה-‪DB‬‬   ‫•‬
                       ‫מעל 003 לקוחות בכל המגזרים‬     ‫•‬
‫ארגז הכלים החדש שלכם‬
Agenda

 • Utility Control Point
 • Detecting bottlenecks
 • New Performance Monitor in Windows
   2008/R2
Agenda

 • Utility Control Point
 • Detecting bottlenecks
 • New Performance Monitor in Windows
   2008/R2
Database evolution


                             Underutilized
                              hardware




                            Overburdened
                            Administrators




      1990           2000      2010
Having fun with deployment
DAC Concepts
 .dacpac = unit of deployment
  (data-tier application +
                                          Schema
  developer intent)
 Data-tier Application           LOGICAL
                                   Tables,
                                               PHYSICAL
                                                 Users,
  Component                        Views,        Logins,
    Improves collaboration      Procs, UDFs    Indexes

     between developer and DBA
    Moves developers from a
     procedural model to a        DAC Deployment Profile
     declarative model           Deployment Requirements,
                                   Management Policies


 V1 is targeted at small apps
Key Concept: Utility Control Point

•   Provides unified view of an
    organization’s SQL Server




                                                            SQL02
                                                    SQL01
    usage
•   Shows health of
     • SQL Server instances




                                                                    SQL03




                                                                                         SQL05
     • Data-tier
        applications
                                   DBA


     • Database files,




                                                                                SQL04
        filegroups and
        volumes
                                                  UCP                       Managed Instances
                              Management Studio




•   Provides resource
    monitoring
     • CPU utilization
     • Storage space
DEVELOP                                  DEPLOY                                       MANAGE

                                                                                      SQL Server Management Studio
                     FinApp
                     Dev DB




  Deploy /
  Upgrade       Reverse
    DAC         Engineer                   SQL Server Management Studio
                  DAC                                                                DBA


Visual Studio 2010                                                                         Manage, Register,
                                                                                           Uninstall, Extract,    Control
                                                                                            Upgrade DAC            Point
                                Create
                                policies    DBA

                                                                          Deploy /
                                                                          Upgrade




                                                                                                                 HR
Developer                                                                   DAC
                Compile                           Hand-off to DBA
                                                                                               FinApp
                 + Build
                                                                                              Prod DB




                                                                                                         SALES
                              .dacpac

                                                                                                    Managed
                                                                                                    Instances
UTILITY CONTROL POINT
UCP
UCP
UCP Reports
UCP Reports




http://bit.ly/j8xMwH
UCP Reports
What’s missing?

              • Supports only SQL Server
                2008 R2 (or later)
              • Better management
              • More counters can be
                useful…
              • Monitors only DAC
                  – Or is it?
FAKE DAC
What’s next?

           • Denali’s Contained
             Databases…
Agenda

 • Utility Control Point
 • Detecting bottlenecks
 • New Performance Monitor in Windows
   2008/R2
Performance Tools

• DTA
• SSMS
   – Built-in Reports
   – Activity Monitor (or what’s
     left of it)
• Profiler assistants:
   – ClearTrace
   – Trace Analyzer
• UCP
• BPA
• Extended Events
SSMS Activity Monitor
PERFORMANCE REPORTS
USING PROFILER TO DETECT BLOCKS
CLEAR TRACE & TRACE ANALYZER
Agenda

 • Utility Control Point
 • Detecting bottlenecks
 • New Performance Monitor in Windows
   2008/R2
 • Performance Data Collector
Windows Performance Tools

• Performance
  Monitor
• Reliability Monitor
• Resource Monitor
• PAL (Performance
  Analysis of Logs)
PERFORMANCE & RESOURCE MONITOR
New performance counters

• Database Mirroring
  – Compression stats
  – Transactions volume
  – Mirroring performance


• Custom counters
CUSTOM COUNTERS
Agenda

 • Utility Control Point
 • Detecting bottlenecks
 • New Performance Monitor in Windows
   2008/R2
‫שאלות?‬

Extreme performance - IDF UG

  • 1.
    Extreme Performance forDBAs ‫| ואלינור‬SQL Server MVP |‫מאיר דודאי‬
  • 2.
    ‫לפני קצת יותרמ-01 שנים...‬
  • 3.
    ‫לפני קצת יותרמ-01 שנים...‬
  • 4.
    ‫לפני קצת יותרמ-01 שנים...‬
  • 5.
    ‫ואלינור‬ ‫החברה המובילה בישראלבמתן שירותים מקצועיים בתחום‬ ‫•‬ ‫בסיסי נתונים: ‪SQL Server, Oracle, MySQL‬‬ ‫צוות יועצים מוביל המתמחה בכלל הרבדים של‬ ‫•‬ ‫בסיסי הנתונים‬ ‫שותפים של ‪ Microsoft‬ו- ‪Oracle‬‬ ‫•‬ ‫נציגי מוצרים מובילים בתחום ה-‪DB‬‬ ‫•‬ ‫מעל 003 לקוחות בכל המגזרים‬ ‫•‬
  • 6.
  • 7.
    Agenda • UtilityControl Point • Detecting bottlenecks • New Performance Monitor in Windows 2008/R2
  • 8.
    Agenda • UtilityControl Point • Detecting bottlenecks • New Performance Monitor in Windows 2008/R2
  • 9.
    Database evolution Underutilized hardware Overburdened Administrators 1990 2000 2010
  • 10.
    Having fun withdeployment
  • 11.
    DAC Concepts  .dacpac= unit of deployment (data-tier application + Schema developer intent)  Data-tier Application LOGICAL Tables, PHYSICAL Users, Component Views, Logins,  Improves collaboration Procs, UDFs Indexes between developer and DBA  Moves developers from a procedural model to a DAC Deployment Profile declarative model Deployment Requirements, Management Policies  V1 is targeted at small apps
  • 12.
    Key Concept: UtilityControl Point • Provides unified view of an organization’s SQL Server SQL02 SQL01 usage • Shows health of • SQL Server instances SQL03 SQL05 • Data-tier applications DBA • Database files, SQL04 filegroups and volumes UCP Managed Instances Management Studio • Provides resource monitoring • CPU utilization • Storage space
  • 13.
    DEVELOP DEPLOY MANAGE SQL Server Management Studio FinApp Dev DB Deploy / Upgrade Reverse DAC Engineer SQL Server Management Studio DAC DBA Visual Studio 2010 Manage, Register, Uninstall, Extract, Control Upgrade DAC Point Create policies DBA Deploy / Upgrade HR Developer DAC Compile Hand-off to DBA FinApp + Build Prod DB SALES .dacpac Managed Instances
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
    What’s missing? • Supports only SQL Server 2008 R2 (or later) • Better management • More counters can be useful… • Monitors only DAC – Or is it?
  • 21.
  • 22.
    What’s next? • Denali’s Contained Databases…
  • 23.
    Agenda • UtilityControl Point • Detecting bottlenecks • New Performance Monitor in Windows 2008/R2
  • 24.
    Performance Tools • DTA •SSMS – Built-in Reports – Activity Monitor (or what’s left of it) • Profiler assistants: – ClearTrace – Trace Analyzer • UCP • BPA • Extended Events
  • 25.
  • 26.
  • 27.
    USING PROFILER TODETECT BLOCKS
  • 28.
    CLEAR TRACE &TRACE ANALYZER
  • 29.
    Agenda • UtilityControl Point • Detecting bottlenecks • New Performance Monitor in Windows 2008/R2 • Performance Data Collector
  • 30.
    Windows Performance Tools •Performance Monitor • Reliability Monitor • Resource Monitor • PAL (Performance Analysis of Logs)
  • 31.
  • 32.
    New performance counters •Database Mirroring – Compression stats – Transactions volume – Mirroring performance • Custom counters
  • 33.
  • 34.
    Agenda • UtilityControl Point • Detecting bottlenecks • New Performance Monitor in Windows 2008/R2
  • 35.