Unit OS11: Performance Evaluation 11.4. Lab Manual.

Slides:



Advertisements
Similar presentations
Windows Basics: The Mouse. The Mouse Before you can explore the Desktop and Taskbar, you must know how to use your mouse. Your mouse is a pointing device.
Advertisements

Copyright © 2005 Rockwell Automation, Inc. All rights reserved. 1 Micro Logix 1100 RSLogix 500 LAB#2 Timing, Counting & Comparing.
Using Microsoft ® Excel Formulas and Functions Start Microsoft ® Excel. Type data into cells as shown.
CS4540 Operating System Local/Remote Windows Kernel Debugging Davion Teh | Kelvin Yeap Dillon Burton | Rodney Dulin.
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS1: Overview of Operating Systems 1.1. Windows.
1 Recording & Viewing Archives. 2 Objectives: Identify the steps for starting, pausing and stopping the session recorder Identify the visual and auditory.
GROUP 2 WINDOWS INTERNALS TOOLS & WINDOWS SDK DEBUGGING TOOLS David Denhollander Kevin Finkler Corey Sarnia Ailun Shen.
MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 10 Performance Tuning.
© 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
© 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
Chapter 14 Chapter 14: Server Monitoring and Optimization.
Chapter 11 - Monitoring Server Performance1 Ch. 11 – Monitoring Server Performance MIS 431 – created Spring 2006.
How to Debug VB .NET Code.
MCITP Guide to Microsoft Windows Server 2008 Server Administration (Exam #70-646) Chapter 14 Server and Network Monitoring.
Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ (Course 3060) Section 2 Use the Linux Desktop.
Budapesti Műszaki és Gazdaságtudományi Egyetem Méréstechnika és Információs Rendszerek Tanszék Scheduling in Windows Zoltan Micskei
1 Chapter Overview Monitoring Server Performance Monitoring Shared Resources Microsoft Windows 2000 Auditing.
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS4: Scheduling and Dispatch 4.6. Demos.
W INDOWS BLUE SCREEN OF DEATH AFTER CRASH DEBUGGING Alex Mclean Amy Valley Derek Visch.
MCTS Guide to Microsoft Windows 7
Windows OS Internals - Copyright © 2005 David A. Solomon, Mark E. Russinovich, and Andreas Polze Unit OS4: Scheduling and Dispatch 4.4. Windows Thread.
Office 2013 and Windows 8: Essential Concepts and Skills
7.3. Windows Security Descriptors
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS3: Concurrency 3.5. Lab Slides & Lab Manual.
Microsoft PowerPoint Getting Started Guide Prepared for Towson University Dr. Jeff M. Kenton Amy Chase Martin 2007.
Chapter 2 Creating a Research Paper with References and Sources Microsoft Word 2013.
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS6: Device Management 6.1. Principles of I/O.
Microsoft Windows 7 Part 1 Fundamentals of Using Windows 7.
SUSE Linux Enterprise Desktop Administration Chapter 2 Use the Linux Desktop.
Understanding Perfmon The Performance Testing Tool >>>>>>>>>>>>>>>>>>>>>>
Basic Computer and Word Functions, part 1 Read the information and use to answer the questions in the Basic Computer and Word Functions Study Guide.
Basic User Training for PACS
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 5 Enhancing Forms with OLE Fields, Hyperlinks, and Subforms.
®® Microsoft Windows 7 for Power Users Tutorial 9 Evaluating System Performance.
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS5: Memory Management 5.5. Lab Manual.
Configuring System Settings Lesson 3. Skills Matrix Technology SkillObjective DomainObjective # Introducing Windows AeroConfigure and troubleshoot Windows.
XP New Perspectives on Microsoft Windows 2000 Professional Windows 2000 Tutorial 1 1 Microsoft Windows 2000 Professional Tutorial 1 – Exploring the Basics.
SQL Server Crash Dump Analysis A brief tour with WinDbg and other ugly tools Pablo Álvarez Doval Debugging & Optimization Team Lead
Windows Crash Dump Analysis Daniel Pearson David Solomon Expert Seminars.
How to Run a Scenario In HP LoadRunner >>>>>>>>>>>>>>>>>>>>>>
Unit OS8: File System 8.6. Lab Manual. 2 Copyright Notice © David A. Solomon and Mark Russinovich These materials are part of the Windows Operating.
Unit OS A: Windows Networking A.4. Lab Manual. 2 Copyright Notice © David A. Solomon and Mark Russinovich These materials are part of the Windows.
Unit OS6: Device Management 6.4. Lab Manual. 2 Copyright Notice © David A. Solomon and Mark Russinovich These materials are part of the Windows.
Unit OS12: Scripting Lab Manual. 2 Copyright Notice © David A. Solomon and Mark Russinovich These materials are part of the Windows Operating.
Microsoft Word Tutorial By Diana Rengifo Sean Choi Robert Olson.
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS7: Security 7.1. The Security Problem.
PREZI PRESENTATION The Prezi Interface. In this tutorial you will learn:  About the different parts of a Prezi interface: 1. The Prezi space/canvas 2.
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS7: Security 7.4. Lab Manual.
Using Microsoft® Excel This presentation is designed for Chapter 1, Section 1.2.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This course explains how to use Mapview, a utility program for the.
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS3: Concurrency 3.3. Advanced Windows Synchronization.
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS1: Overview of Operating Systems 1.1. Windows.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
Guide to Parallel Operating Systems with Windows 7 and Linux Chapter 10 Operating System Management.
Crash Dump Analysis - Santosh Kumar Singh.
Unit OS7: Security 7.4. Quiz Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze.
Configuring System Settings
Unit OSC: Interoperability
Unit OS9: Real-Time and Embedded Systems
Unit OS4: Scheduling and Dispatch
Unit OS11: Performance Evaluation
Unit OS A: Windows Networking
Unit OS8: File System 8.6. Quiz
Unit OS2: Operating System Principles
Unit OS10: Fault Tolerance
Unit OSB: Comparing the Linux and Windows Kernels
Unit OS5: Memory Management
3.3. Advanced Windows Synchronization
Presentation transcript:

Unit OS11: Performance Evaluation Lab Manual

2 Copyright Notice © David A. Solomon and Mark Russinovich These materials are part of the Windows Operating System Internals Curriculum Development Kit, developed by David A. Solomon and Mark E. Russinovich with Andreas Polze Microsoft has licensed these materials from David Solomon Expert Seminars, Inc. for distribution to academic organizations solely for use in academic environments (and not for commercial use)

3 Roadmap for Section 11.4 Lab experiments investigating: CPU consumption Low memory conditions

4 Lab: Observing Kernel Mode vs User Mode Processor Time 1. Run Performance Tool (perfmon.msc) 2. Click the Add button (+) on the toolbar. 3. With the Processor performance object selected, click the % Privileged Time counter and, while holding down the Ctrl key, click the % User Time counter. 4. Click Add, and then click Close. 5. Move the mouse rapidly back and forth and notice % Privileged Time line going up when you move the mouse around.

5 Lab Objective: Observe Performance Tool’s CPU Usage 1. Run the Performance Tool (perfmon.msc) 2. Click the Add button (+) on the toolbar 3. Change the Performance Object to Process 4. Select the % Privileged Time and % User Time counters 5. Select all processes in the Instance box (except the _Total process). 6. Click Add, and then click Close 7. Move the mouse rapidly back and forth 8. Press Ctrl+H to turn on highlighting mode 9. Scroll through the counters at the bottom of the display to identify the processes whose threads were running when you moved the mouse, and note whether they were running in user mode or kernel mode

6 Lab: Examining CPU Load with Process Explorer Run Process Explorer Click View->System Information If a multiprocessor system, click the “Show one graph per CPU” in the lower left hand corner Run CPUStres (part of CRK tool set) and set thread activity to Maximum Notice 100% CPU utilization on one CPU If a multiprocessor system, run one copy of CPUStres per processor

7 Example Screen Snapshot from previous lab

8 Lab: Examining CPU Load with Performance Monitor Run CPUStres (part of CRK tool set) and set priority to “Below Normal” and activity to “Maximum” Run the Performance Tool (perfmon.msc) Open the add counter dialog and select the process object Select the CPUStres process and add two counters: % User Time and % Privileged Time % User Time should be near 100%,while % Privileged Time should be small or zero Drag the CPUStres window around rapidly and notice % Privileged Time increase due to windowing system call activity

9 Lab: Low Memory Conditions Run Performance Monitor (perfmon.msc) and add two counters to the graph: Memory / Available Bytes Paging File / % Usage To cause a low memory condition, run RamOptimize.exe (part of CRK tool set – source included) and click “Optimize” Notice Available Bytes goes down and Paging File usage goes up as RamOptimize process consumes virtual memory When complete, Available Bytes will be much higher since the RamOptimize process releases all the memory it allocated, causing it to be returned to the system

10 Lab: Tracing TCP/IP Activity Performance tool can enable logging tracerpt.exe and tracedmp.exe generate dumpfile.csv and summary.txt (see notes)

11 Lab: Generating an Easy Crash Run NotMyFault (from Sysinternals) and select “High IRQL fault (kernel mode)” Press “Do Bug” This causes the driver to: Allocate a paged pool buffer Free the buffer Raise IRQL ≥ DISPATCH_LEVEL Touch the buffer,which causes a crash

12 Lab: Analyzing an Easy Crash After generating the crash from the “Generating an Easy Crash” lab, when the system reboots, analyze the crash as follows: Run Windbg (Debugging Tools for Windows) Set symbol path to use Microsoft symbol server Open crash dump (in \Windows\Minidump\xxx.dmp) The debugger should show the probable cause of the crash as Myfault.sys

13 Lab: Buffer Overflow Crash Run NotMyFault (from Sysinternals) and select “Buffer Overflow” Press “Do Bug” This causes the Myfault driver to allocate a buffer and then overwrite the 40 bytes following The system may not crash immediately since the corrupted buffer may not be referenced right away If the system does not crash, keep clicking “Do Bug” until it does After the reboot, open the crash with WinDbg to see the probable cause

14 Lab: Using Verifier to Catch a Buffer Overflow Run Verifier.exe (in \Windows\System32) and enable Special Pool on Myfault.sys Reboot Run NotMyFault (from Sysinternals) and select “Buffer Overflow” Press “Do Bug” – the system will crash instantly Reboot and analyze the crash