Windows Performance Analysis Field Guide
eBook - ePub

Windows Performance Analysis Field Guide

  1. 380 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Windows Performance Analysis Field Guide

About this book

Microsoft Windows 8.1 and Windows Server 2012 R2 are designed to be the best performing operating systems to date, but even the best systems can be overwhelmed with load and/or plagued with poorly performing code. Windows Performance Analysis Field Guide gives you a practical field guide approach to performance monitoring and analysis from experts who do this work every day. Think of this book as your own guide to "What would Microsoft support do?" when you have a Windows performance issue.Author Clint Huffman, a Microsoft veteran of over fifteen years, shows you how to identify and alleviate problems with the computer resources of disk, memory, processor, and network. You will learn to use performance counters as the initial indicators, then use various tools to "dig in" to the problem, as well as how to capture and analyze boot performance problems.- This field guide gives you the tools and answers you need to improve Microsoft Windows performance- Save money on optimizing Windows performance with deep technical troubleshooting that tells you "What would Microsoft do to solve this?"- Includes performance counter templates so you can collect the right data the first time.- Learn how to solve performance problems using free tools from Microsoft such as the Windows Sysinternals tools and more.- In a rush? Chapter 1 Start Here gets you on the quick path to solving the problem.- Also covers earlier versions such as Windows 7 and Windows Server 2008 R2.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Windows Performance Analysis Field Guide by Clint Huffman in PDF and/or ePUB format, as well as other popular books in Computer Science & Cyber Security. We have over one million books available in our catalogue for you to explore.

Information

Chapter 1

Start here

Abstract

This chapter directs readers to various portions of the book depending on the symptoms.
Keywords
Performance Monitor
Perfmon
Sysmon
Performance counter
Counter path
Data collector
Counter log
BLG
Windows
Windows Server
Performance Analysis of Logs
PAL

Introduction

This book is intended to be a guide through the self-help process of troubleshooting performance issues with Microsoft Windows and Windows Server. As always, if you are in an emergency situation with your computer system, then immediately call Microsoft Support. Otherwise, start at this point in the book for guidance on where to start. The rest of this book covers more detailed concepts and procedures.

Is it a problem with boot or shutdown performance?

A healthy computer running Microsoft Windows 7 or later should be usable after powering it on in about 60 seconds—this includes the time after logging (postboot). A healthy Windows Server computer might take a bit longer due to specialized hardware. If your system is taking longer than the expected amount of time to be usable, then it is worthy of more investigation. Go to Chapter 11 ā€œBoot Performanceā€ to learn more about how to troubleshoot boot and shutdown performance.

Is it a hardware or software system hang?

A ā€œcomplete hangā€ by this definition is where the system does not respond to any input from the keyboard or mouse for more than 1 minute after the system has already booted. If the system responses every few seconds, then it is not a complete hang. If the system is slow during boot, then go to Chapter 11 ā€œBoot Performanceā€ to learn how to do a boot trace and other tips and tricks for improving boot performance. Otherwise, continue reading. Troubleshooting boot failures is not covered by this book.
There can be many causes of a complete hang and an important troubleshooting step is to determine if it is a hardware or software hang. A trick that Kevin Anderson showed me was to simply press the Num Lock key or the Caps Lock key on the keyboard. If the respective lights on the keyboard do not toggle on and off when the key is pressed, then it is likely a hardware hang. Go to section ā€œCommon environmental and hardware-induced performance problemsā€ later in this chapter. Otherwise, it is more likely a software-related hang. Go to section ā€œGeneral slow system performanceā€ later in this chapter.

Troubleshooting hardware system hangs

As mentioned earlier, it is beyond the scope of this book to troubleshoot hardware conditions, but I'll focus on some common conditions.

Review the system event logs

Whether it is a hardware or software system hang condition, if the system is ever in at a point where you can get to the Windows desktop, then try to go to the system event logs and search for possible hardware failure messages.
Tip
The system event logs can provide vital clues to system hangs and delays.
Potential cause: Busy or malfunctioning hardware
Malfunctioning hardware such as physical memory modules, hard drives, optical drives, and USB devices can cause the system to hang and/or respond slowly. Hardware devices that have been dropped, broken, misrepaired, or simply had coffee spilt into them are obvious (a friend of mine's wife had this happen several times by accident), so I'll focus on the not so obvious hardware problems. By the way, if a system or device ever does get water in it, then DO NOT POWER IT ON! Take the battery out and place the device or components into a bag of rice and let it sit in there until completely dry, which might take several days.
Tip
If a computer or device gets wet, DO NOT POWER IT ON. Remove the battery and place everything in a bag of rice for a few days to allow it to dry out.
My friend, Don, once had a system that hung for 3 seconds every 30 seconds. We had a difficult time figuring out why the system was hanging like that. Once we started removing USB devices, it became clear that it was a malfunctioning sound device for recording live music. This is one of the many reasons to consider Microsoft logo'd devices when possible since they are less likely to cause problems.

Hardware diagnostics

Hardware manufacturers typically provide diagnostic tools in the BIOS or downloadable tools from their Web site to help find problems with their respective hardware. Consider running these tools if you suspect a hardware problem.
Potential cause: Virtual machine host
If the system is a virtual machine (a computer running on top of another computer) and hangs, then the host system might have exhausted its resources or throttled the virtual machine's resource usage. Go to section ā€œVirtual machine considerationsā€ in Chapter 10 ā€œProcessorā€.
Potential cause: Power and/or excessive temperatures
Excessive heating and cooling can cause device to perform poorly or malfunction.
Go to section ā€œCommon environmental and hardware-induced performance problemsā€ later in this chapter for troubleshooting power and heat problems.

Complete or partial system hangs

This section assumes the system eventually hangs after the system boots up normally. If the system hangs during boot, go to Chapter 11 ā€œBoot Performanceā€; otherwise, continue.
During a complete system hang after the system has been running for a while, if the keyboard lights are working fine, then it is likely a software condition causing the system to hang or to appear to hang. Very busy or poorly written drivers are the common causes of this condition.

Potential cause: high processor or disk usage

If the system is responsive every few seconds, then that is more likely a high resource usage condition such as processor or disk.
Go to Chapter 10 ā€œProcessorā€ for processor monitoring and troubleshooting.
Go to Chapter 3 ā€œStorageā€ for disk monitoring and troubleshooting.

Potential cause: lack of kernel pool memory

If there is no evidence of high processor or disk usage (detailed in Chapters 3 and 10) during the system hang, then the system might be out of memory in one or more various ways. A complete system hang that lasts indefinitely—meaning no update to the user interface in several minutes—might indicate a lack of kernel nonpaged pool memory.
Go to Chapter 5 ā€œKernel Memoryā€ for kernel pool memory monitoring and troubleshooting.

Potential cause: high processor interrupts or DPCs

This symptom is commonly associated with either high kernel-mode processor usage or frequent processor interrupts.
I was playing a PC game once and it played fine for many hours until the game and the system suddenly began to stutter and pause frequently. This had happened a few times already and this time I was prepared with a Windows Performance Recorder (WPR) trace in the background. Microsoft Support assisted me with the analysis of the ETL trace and discovered that the device driver for my USB headphones was issuing a high number of deferred procedure calls (DPCs). Once I updated the USB driver on my Windows 7 laptop, the problem never occurred again.
Go to Chapter 10 ā€œProcessorā€ for both user-mode and kernel-mode processor monitoring and troubleshooting.

Process terminated unexpectedly

If a process/application is crashing regularly, then it is often due to poorly written code or unexpected environmental conditions. A process crash dump can be captured that can provide evidence of what led to the crash by using debugging tools such as ADPlus.exe (part of the Debugging Tools for Windows) or ProcDump.exe (part of Windows Sysinternals). Collecting a process crash dump is discussed in Appendix B Collecting Process Memory Dumps.
If the process is crashing due to an out of memory condition such as a System.OutOfMemoryException, then it is most likely runni...

Table of contents

  1. Cover image
  2. Title page
  3. Table of Contents
  4. Copyright
  5. Dedication
  6. Acknowledgments
  7. Biography
  8. Foreword
  9. Introduction
  10. Chapter 1: Start here
  11. Chapter 2: Performance monitor
  12. Chapter 3: Storage
  13. Chapter 4: Process memory
  14. Chapter 5: Kernel memory
  15. Chapter 6: System committed memory
  16. Chapter 7: Page files
  17. Chapter 8: Physical memory
  18. Chapter 9: Network
  19. Chapter 10: Processor
  20. Chapter 11: Boot performance
  21. Chapter 12: Performance Analysis of Logs (PAL) Tool
  22. Appendix A: Tools
  23. Appendix B: Collecting Process Memory Dumps
  24. Appendix C: Debug symbols
  25. Index