250 likes | 515 Vues
WCL316. Maximizing Windows 7 Performance: Troubleshooting Tips. Johan Arwidmark Chief Technical Architect Knowledge Factory. Objectives And Takeaways. Performance is critical Live production system analysis Tools of the trade Inbox tools Windows Performance Toolkit.
E N D
WCL316 Maximizing Windows 7 Performance: Troubleshooting Tips Johan Arwidmark Chief Technical Architect Knowledge Factory
Objectives And Takeaways • Performance is critical • Live production system analysis • Tools of the trade • Inbox tools • Windows Performance Toolkit
Defining Performance • Responsiveness • Unresponsive system Customer dissatisfaction • Resource utilization • CPU, disk, memory, network, battery • Resources are limited and shared • Good Citizenship • It takes one component to impact system performance
Windows 7 Performance Enhancements • Performance work started with Windows Vista • I/O Models – Caching – Network Protocols • Startup / Shutdown / Resume • Continued to improve in Windows 7 • All of the above... • Superfetch and Readyboost • Device Drivers (Industry / Parallelization) • CPU / Memory Management • Logon time (Redirected folders etc.)
Has anyone ever heard this? Hello IT-Pro…My system is running really slow.Fix it now!
Performance Tools • Windows Inbox Tools • Task Manager, Resource Monitor, Perfmon • Write your own tools to gather data • Event Tracing for Windows (ETW) • Performance Counters
Windows Inbox Tools demo
Performance Tools, continued • Non-Inbox Tools • Windows Performance Toolkit • Sysinternals tools (http://www.sysinternals.com)
Non-Inbox Tools demo
Windows Performance Toolkit • Official kit • Built and used by the Windows organization • Contains Performance Analyzer (WPA) tool suite • Built upon the ETW infrastructure • Allows you to capture and analyze performance traces • Freely available as part of the Windows 7 SDK
Performance Analyzer tool suite • xperf: • Trace capture, processing, and command-line analysis • xperfview: • Visual trace analysis • Xbootmgr (and xbootmgrSleep): • On/Off transition trace capture • hwpower2etw: • TDMS-to-ETL converter • symcachegen: • PDB-to-SymCache generator
The Big Picture XML file XPerfView 5. GUI trace analysis via graphs and summary tables 6. CLI trace analysis via actions 3. Controls logging sessions and enables/disables providers MergedETL file Action System and Symbol Information XPerf Control/Status Control/Status Post Processing 4. Metadata injection Control/Status ETW ETL file 1. Collection of configurable in-memory buffers that is managed by the kernel ETW Session Event Providers 2. Any component that has been instrumented with Event Tracing API Event Providers Control/Status Dataflow
How Performance Analyzer Pull This Off • ETW is the magic behind the curtains • Event Tracing for Windows • Core component since Windows 2000 • High performance, low overhead, highly scalable • ~2.5% CPU usage for sustained rate of 10,000 events/sec on a 2GHz CPU • For details, see “Event Tracing” on MSDN
Disk Usage Case Study #1
Disk Usage Study Summary • Multiple components working well in isolation could impact performance when executed in parallel • Fighting over disk dramatically impacts performance for all involved • Disk seeks can cut throughput by 90% • Schedule all work that can wait as Idle tasks • See Task Scheduler documentation on MSDN
Hardware Device not performing Case Study #2
Hardware Device Case Study Summary • One bad component can disrupt numerous good components • High usage of any single resource can cause performance issues • Spending too much CPU at DPC impacts performance
Summary • Good performance customer satisfaction • WPT = official perf tools from/for Windows • Performance Analyzer • xperf: Trace capture, processing, and command-line analysis • xperfview:Visual trace analysis • xbootmgr:On/Off transition trace capture
Track Resources • Don’t forget to visit the Cloud Power area within the TLC (Blue Section) to see product demos and speak with experts about the Server & Cloud Platform solutions that help drive your business forward. • You can also find the latest information about our products at the following links: • Cloud Power - http://www.microsoft.com/cloud/ • Private Cloud - http://www.microsoft.com/privatecloud/ • Windows Server - http://www.microsoft.com/windowsserver/ • Windows Azure - http://www.microsoft.com/windowsazure/ • Microsoft System Center - http://www.microsoft.com/systemcenter/ • Microsoft Forefront - http://www.microsoft.com/forefront/
Resources • Connect. Share. Discuss. http://northamerica.msteched.com Learning • Sessions On-Demand & Community • Microsoft Certification & Training Resources www.microsoft.com/teched www.microsoft.com/learning • Resources for IT Professionals • Resources for Developers http://microsoft.com/technet http://microsoft.com/msdn