Top Banner
MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning
60
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista

Chapter 11Performance Tuning

Page 2: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 2

Objectives

• Identify several key performance enhancements

• Describe performance tuning concepts

• Use Reliability and Performance Monitor

Page 3: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 3

Objectives (continued)

• Use Task Manager

• Understand performance ranking

• Optimize system performance

Page 4: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 4

Performance Enhancements

• Performance enhancements in Windows Vista– Windows SuperFetch– Low-priority I/O– Windows ReadyBoost– Windows ReadyDrive– Automatic defragmentation– Self-healing

Page 5: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 5

Performance Tuning Overview

• Performance tuning – A process rather than an event

• Performance tuning process consists of:– Establishing a baseline– Recognizing bottlenecks– Tuning performance

Page 6: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 6

Establishing a Baseline

• To recognize system bottlenecks, you must first establish a baseline

• Baseline– Set of performance indicators captured when system

performance is acceptable

• Performance indicators are often called counters – Display values for system characteristics

• Establishing a baseline– Verify unusual activity is happening on the workstation– Measure performance indicators over time

Page 7: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 7

Recognizing Bottlenecks• A bottleneck occurs when

– A limitation in a single computer system component slows down the entire system

• Disk bottlenecks– Occur when applications want to read and write information

to the physical disk • Faster than the disk can manage

– Increasing disk performance• Upgrade the drive controller• Upgrade the disks• Implement RAID0 or RAID5• Move the paging file to a nonsystem disk

Page 8: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 8

Recognizing Bottlenecks (continued)

• Memory bottlenecks– Applications require more memory than is physically

available– Reducing the use of virtual memory

• Increase the amount of physical memory

• Run fewer applications at once

• Processor bottlenecks– Too much work for a processor– Resolving processor bottlenecks

• Change to a faster processor

Page 9: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 9

Recognizing Bottlenecks (continued)

• Processor bottlenecks (continued)– Resolving processor bottlenecks (continued)

• Add additional processors

• Change to a multicore processor

• Network bottlenecks– More common for servers than computers running

Windows Vista– Multiple computers accessing a single server may

overwhelm the network connection to the server

Page 10: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 10

Tuning Performance

• Steps1. Create a baseline for the computer

2. Compare the baseline to current indicators

3. Identify possible causes for variations

4. Identify possible fixes for variations from the baseline

5. Select a fix to implement

6. Implement the fix and monitor for changes

7. If not resolved, undo the fix and repeat step 5

8. If resolved, document solution for future reference

Page 11: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 11

Reliability and Performance Monitor

• Reliability and Performance Monitor– MMC snap-in that is used to monitor system

performance indicators and software reliability

• Areas– Resource Overview– Performance Monitor– Reliability Monitor– Data Collector Sets– Reports

Page 12: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 12

Resource Overview

• Resource Overview– Provides real-time monitoring of the most common

system performance indicators

• CPU– Indicators

• CPU utilization

• CPU Maximum Frequency

– Characteristics about running processes• Image, PID, Description, Threads, CPU, Average CPU

Page 13: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 13

Resource Overview (continued)

Page 14: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 14

Resource Overview (continued)

Page 15: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 15

Resource Overview (continued)

• Disk– Performance indicators

• Current disk input/output in KB/sec• Highest Active Time

– Characteristics about processes performing disk activity• Image, PID, File, Read, Write, IO Priority, Response time

• Network– Performance indicators

• Total current network traffic• Network Utilization

Page 16: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 16

Resource Overview (continued)

Page 17: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 17

Resource Overview (continued)

Page 18: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 18

Resource Overview (continued)

• Network (continued)– Characteristics about processes performing network

activity• Image, PID, Address, Send, Receive, Total

• Memory– Performance indicators

• Hard Faults

• Used Physical Memory

– Characteristics about process memory usage• Image, PID, Hard Faults, Commit, Working set,

Shareable, Private

Page 19: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 19

Resource Overview (continued)

Page 20: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 20

Performance Monitor

• Performance Monitor– Tool within Reliability and Performance Monitor – Visually displays the data generated by counters– View last, average, minimum, and maximum values– Can view logged data

• Counters– Can select counters to view

Page 21: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 21

Performance Monitor (continued)

Page 22: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 22

Performance Monitor (continued)

Page 23: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 23

Performance Monitor (continued)

• Counters (continued)– Categories

• Cache

• IPv4

• LogicalDisk

• Memory

• Network Interface

• PhysicalDisk

• Processor

• System

Page 24: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 24

Performance Monitor (continued)

• Chart types– Line– Histogram bar– Report– Area– Stacked area

Page 25: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 25

Reliability Monitor

• Reliability Monitor– Tool that rates the system stability of Windows Vista – Monitors events that contribute to system stability

• Reliability monitor collects the following data:– Software installs and uninstalls– Application failures– Hardware failures– Windows failures– Miscellaneous failures

Page 26: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 26

Reliability Monitor (continued)

Page 27: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 27

Reliability Monitor (continued)

• Stability index– A rating from 1 (least stable) to 10 (most stable)– Calculated each day– Graphed over time to allow you to see when a

decrease or increase in system stability may have occurred

• Troubleshooting– Reliability Monitor graph lets you see the point in time

at which significant reliability changes occurred– Use the graph to drill down and find out what events

occurred in that time frame

Page 28: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 28

Data Collector Sets

• Data Collector Sets– Organize multiple counters into a single unit

• Makes monitoring performance easier to manage

• Type of data– Performance counters– Event trace– Configuration

• Logging– Data Collector Set can log performance information to

disk

Page 29: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 29

Data Collector Sets (continued)

Page 30: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 30

Data Collector Sets (continued)

• Logging (continued)– For each Data Collector Set, you can specify:

• Root directory

• Subdirectory

• Subdirectory name format

• Starting and Stopping– Data Collector Sets are not always running– You can manually start Data Collector Sets– If you are collecting a baseline

• Schedule the Data Collector Set to run at a regular time

Page 31: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 31

Data Collector Sets (continued)

Page 32: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 32

Data Collector Sets (continued)

Page 33: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 33

Data Collector Sets (continued)

• Alerts– For performance counters, you can configure alerts

instead of logging to disk– When an alert triggers, the following can be

performed:• Log an entry in the application event log

• Start a Data Collector Set

• Run a scheduled task

• Data Manager– User can automatically control log files and reports

that can be generated by Data Collector Sets

Page 34: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 34

Data Collector Sets (continued)

Page 35: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 35

Data Collector Sets (continued)

• Data Manager (continued)– You can specify the following (continued)

• Minimum free disk space

• Maximum folders

• Resource policy

• Maximum root path size

• Enable data management and report generation

Page 36: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 36

Reports

• Reports– Process and display log file data

• You specify rules to process log files

• Rule is an XML file that contains instructions specifying how the data is to be processed

• Create your own rules for processing log files

Page 37: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 37

Reports (continued)

Page 38: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 38

Task Manager

• Task Manager– Provides an overview of the current state of a

computer

• You can access Task Manager several ways– Press Ctrl+Alt+Del– Press Ctrl+Shift+Esc– Right-click the taskbar and click Task Manager– Run taskmgr.exe from a command prompt– Use Advanced tools in Control Panel | System and

Maintenance | Performance Information and Tools

Page 39: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 39

Task Manager (continued)

Page 40: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 40

Applications

• Applications tab in Task Manager– Shows all user applications running on the computer

• Status is: Running or Not Responding

• View process that corresponds with an application– Right-click the task and click Go To Process

Page 41: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 41

Processes

• Processes tab– Shows processes running on this computer

• By default, only processes started by the current user are displayed

• Can optimize the view of processes– By adding additional columns and sorting based on

column information

• Can set the priority of a process

• Can end a specific process or process tree

Page 42: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 42

Processes (continued)

Page 43: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 43

Services

• Services tab– List of the services running on Windows Vista

• You can locate a process associated with a particular service and can start and stop services

Page 44: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 44

Services (continued)

Page 45: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 45

Performance

• Performance tab– Overview of system performance for memory and

processor utilization

• Current CPU usage is shown as a bar chart– Recent CPU usage history is shown as a line graph

Page 46: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 46

Performance (continued)

Page 47: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 47

Other Tabs

• Networking tab– Line graph of recent network utilization for each

network connection

• Users tab– List of users currently logged on

Page 48: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 48

Performance Ranking

• Windows Experience Index– Provides an objective measure of system performance

• Windows Vista ranks five elements– Processor– Memory (RAM)– Graphics– Gaming graphics– Primary hard disk

Page 49: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 49

Performance Ranking (continued)

Page 50: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 50

Base Score

• Individual subscores used to create a Base score

• Base score– Overall ranking of your system– Ranking is from 1 to 5 (5 the best)– Not simply an average of the subscores

• General performance guidelines for base scores– Base score of 1 or 2

• Can access Internet and run business applications

Page 51: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 51

Base Score (continued)

• General performance guidelines for base scores– Base score of 3

• Can use most new Windows Vista features

– Base score of 4 or 5• Can use all new Windows Vista features

Page 52: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 52

Logo Programs

• Used by software manufactures– Indicate that specific hardware is verified to work with

their software

• Microsoft has two logo programs– Windows Vista Capable– Windows Vista Premium Ready

Page 53: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 53

Performance Options

• Performance Options dialog box– Optimize visual effects, processor scheduling, and

virtual memory

• Access Performance Options dialog box– Click Adjust visual effects task in the Performance

Information and Tools Control Panel applet

Page 54: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 54

Performance Options (continued)

Page 55: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 55

Virtual Memory

• By default, paging file is managed automatically by Windows

• Minimum size is 16 MB and the maximum size is configured as 300% of RAM

• Can manually configure the paging file

• Most Windows Vista computers have one hard disk– And increasing performance is not possible by

adjusting the virtual memory settings

• Can specify that no paging file is to be used

Page 56: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 56

Virtual Memory (continued)

Page 57: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 57

Data Execution Prevention

• Data Execution Prevention (DEP) – Processor feature that Windows Vista can use– Monitors processes to ensure that they do not access

unauthorized memory spaces

• If processor does not support DEP– Some software-based DEP features that can be

performed by Windows Vista

• By default, DEP is enabled for only essential Windows programs and services

Page 58: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 58

Data Execution Prevention (continued)

Page 59: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 59

Summary

• Windows Vista is a higher performing operating system than previous versions of Windows

• Establishing a baseline for performance tuning allows you to recognize variations from normal system behavior and identify system bottlenecks

• Reliability and Performance Monitor can monitor system performance, monitor system reliability, create alerts, log performance activity, and generate reports

• Data Collector Sets control logging of performance data and create alerts

Page 60: MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.

MCTS Guide to Microsoft Windows Vista 60

Summary (continued)

• Task Manager allows you to quickly view system process information

• Performance rankings generated in Performance Information and Tools ensure that you understand the capabilities of your computer

• Performance Options allow you to configure visual effects, processor performance, virtual memory, and Data Execution Prevention