Performance Tuning Guidelines for Windows Server 2008 R2 April 12, 2013




Download 0,59 Mb.
bet1/19
Sana03.10.2020
Hajmi0,59 Mb.
#11996
  1   2   3   4   5   6   7   8   9   ...   19



Performance Tuning Guidelines for Windows Server 2008 R2

April 12, 2013



Abstract

This guide describes important tuning parameters and settings that you can adjust to improve the performance and energy efficiency of the Windows Server® 2008 R2 operating system. This guide describes each setting and its potential effect to help you make an informed decision about its relevance to your system, workload, and performance goals.

This paper is for information technology (IT) professionals and system administrators who need to tune the performance of a server that is running Windows Server 2008 R2.

This information applies to the Windows Server 2008 R2 operating system.

References and resources discussed here are listed at the end of this guide.

The current version of this guide is maintained on the Web at:


Performance Tuning Guidelines for Windows Server 2008 R2

Feedback: Please tell us whether this paper was useful to you. Submit comments at:


http://go.microsoft.com/fwlink/?LinkId=102585

Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it.

Some examples depicted herein are provided for illustration only and are fictitious. No real association or connection is intended or should be inferred.
This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes.
© 2013 Microsoft Corporation. All rights reserved.

Document History



Date

Change










April 12, 2013


  • Added note in the “Performance Tuning for TPC-E workload” section that the tunings are specifically for OLTP benchmarking and should not be perceived as general SQL tuning guidance.

October 19, 2012

September 7, 2012

  • Further updates to the Performance Tuning guidance for the TPC-E Workload section

May 13, 2011

  • “Performance Tuning for Web Servers” – Updated guidance to reflect that Http.sys manages connections automatically.

  • “Performance Tuning for File Servers” – Fixed typos in NFS Server tuning parameter registry keys.

  • “Performance Tuning for Virtualization Servers” – Added information about Dynamic Memory tuning.

  • “Performance Tuning for TPC-E Workload” – Clarified tuning guidance.

  • “Resources” – Updated references.

October 15, 2010

  • Throughout the paper – Clarified some explanations; clarified energy consumption vs. power consumption.

  • “Interrupt Affinity” – Added recommendation to use device-specific mechanism for binding interrupts, if supported by the driver model.

  • “Network-Related Performance Counters” – Added IPv6 and TCPv6.

  • “Performance Tuning for the Storage Subsystem” – Various minor updates throughout.

  • “Performance Tuning for File Servers” –Added guidance for NtfsDisableLastAccessUpdate; added “Tuning Parameters for NFS Server”, “File Server Tuning Example”, and “File Client Tuning Example”.

  • “Performance Tuning for Remote Desktop Session Host” – Added references to two new white papers on capacity planning.

  • “Monitoring and Data Collection” (multiple sections) – Updated the list of counters to monitor.

  • “Performance Tuning for File Server Workload (SPECsfs2008)” – New section.

  • “Performance Tuning for SAP Sales and Distribution Two-Tier Workload” – Substantial updates to the whole section.

  • “Performance Tuning for TPC-E Workload” – New section.

  • “Resources” – A few additions and updates.




November 18, 2009

  • Throughout the paper – Updated the references to the Remote Desktop Session Host (previously called Terminal Server); various minor edits.

  • “Choosing a Network Adapter” – Fixed a typo in the RSS registry entries.

  • “Performance Tuning for File Servers” – Added MaxMpxCt parameter information; updated the default maximum payload for the SMB redirector to 64 KB per request; added MaxCmds parameter information.

  • “Performance Tuning for Remote Desktop Session Host” – Added information about the settings used when you choose a connection speed.

  • “Resources” – Provided additional resources.

June 25, 2009

First publication.

Contents


In This Guide 9

Choosing and Tuning Server Hardware 9

Choosing Server Hardware: Performance Considerations 10

Choosing Server Hardware: Power Considerations 13

Power and Performance Tuning 14

Calculating Server Energy Efficiency 14

Measuring System Energy Consumption 15

Diagnosing Energy Efficiency Issues 16

Using Power Plans in Windows Server 17

Tuning Processor Power Management Parameters 17

Interrupt Affinity 20

Performance Tuning for the Networking Subsystem 22

Choosing a Network Adapter 23

Offload Capabilities 23

Receive-Side Scaling (RSS) 23

Message-Signaled Interrupts (MSI/MSI-X) 24

Network Adapter Resources 24

Interrupt Moderation 25

Suggested Network Adapter Features for Server Roles 25

Tuning the Network Adapter 25

Enabling Offload Features 26

Increasing Network Adapter Resources 26

Enabling Interrupt Moderation 26

Enabling RSS for Web Scenarios 26

Binding Each Adapter to a CPU 27

TCP Receive Window Auto-Tuning 27

TCP Parameters 28

Network-Related Performance Counters 28

Performance Tuning for the Storage Subsystem 29

Choosing Storage 30

Estimating the Amount of Data to Be Stored 31

Choosing a Storage Array 32

Hardware RAID Levels 33

Choosing the RAID Level 36

Selecting a Stripe Unit Size 42

Determining the Volume Layout 42

Storage-Related Parameters 43

I/O Priorities 43

Storage-Related Performance Counters 43

Logical Disk and Physical Disk 43

Processor Information 45

Power Protection and Advanced Performance Option 46

Block Alignment (DISKPART) 47

Solid-State and Hybrid Drives 47

Response Times 48

Queue Lengths 50

Performance Tuning for Web Servers 51

Selecting the Proper Hardware for Performance 51

Operating System Practices 51

Tuning IIS 7.5 52

Kernel-Mode Tunings 53

Cache Management Settings 53

Request and Connection Management Settings 54

User-Mode Settings 55

User-Mode Cache Behavior Settings 55

Compression Behavior Settings 56

Tuning the Default Document List 57

Central Binary Logging 58

Application and Site Tunings 59

Managing IIS 7.5 Modules 60

Classic ASP Settings 61

ASP.NET Concurrency Setting 62

Worker Process and Recycling Options 62

Secure Sockets Layer Tuning Parameters 63

ISAPI 64

Managed Code Tuning Guidelines 64

Other Issues that Affect IIS Performance 64

NTFS File System Setting 65

Networking Subsystem Performance Settings for IIS 65

Performance Tuning for File Servers 65

Selecting the Proper Hardware for Performance 65

Server Message Block Model 66

SMB Model Overview 66

SMB Configuration Considerations 67

Tuning Parameters for SMB File Servers 68

SMB Server Tuning Example 70

Services for NFS Model 70

Services for NFS Model Overview 70

Tuning Parameters for NFS Server 71

General Tuning Parameters for Client Computers 74

File Client Tuning Example 76

Performance Tuning for Active Directory Servers 77

Considerations for Read-Heavy Scenarios 78

Considerations for Write-Heavy Scenarios 78

Using Indexing to Improve Query Performance 79

Optimizing Trust Paths 79

Active Directory Performance Counters 79

Performance Tuning for Remote Desktop Session Host (formerly Terminal Server) 81

Selecting the Proper Hardware for Performance 81

CPU Configuration 81

Processor Architecture 82

Memory Configuration 82

Disk 82

Network 83



Tuning Applications for Remote Desktop Session Host 84

Remote Desktop Session Host Tuning Parameters 85

Pagefile 85

Antivirus and Antispyware 85

Task Scheduler 85

Desktop Notification Icons 86

Client Experience Settings 87

Desktop Size 89

Windows System Resource Manager 89

Performance Tuning for Remote Desktop Gateway 90

Monitoring and Data Collection 91

Performance Tuning for Virtualization Servers 91

Terminology 91

Hyper-V Architecture 93

Server Configuration 94

Hardware Selection 94

Server Core Installation Option 95

Dedicated Server Role 95

Guest Operating Systems 96

CPU Statistics 96

Processor Performance 97

VM Integration Services 97

Enlightened Guests 97

Virtual Processors 97

Background Activity 98

Weights and Reserves 98

Tuning NUMA Node Preference 99

Memory Performance 100

Enlightened Guests 100

Correct Memory Sizing for Child Partitions 100

Correct Memory Sizing for Root Partition 101

Storage I/O Performance 101

Synthetic SCSI Controller 101

Virtual Hard Disk Types 102

Passthrough Disks 103

Disabling File Last Access Time Check 103

Physical Disk Topology 103

I/O Balancer Controls 104

Network I/O Performance 105

Synthetic Network Adapter 105

Install Multiple Synthetic Network Adapters on Multiprocessor VMs 105

Offload Hardware 105

Network Switch Topology 106

Interrupt Affinity 106

VLAN Performance 106

VMQ 106


VM Chimney 106

Live Migration 107

Performance Tuning for File Server Workload (NetBench) 108

Registry Tuning Parameters for Servers 108

Registry Tuning Parameters for Client Computers 109

Performance Tuning for File Server Workload (SPECsfs2008) 109

Registry-Tuning Parameters for NFS Server 110

Performance Tuning for Network Workload (NTttcp) 110

Tuning for NTttcp 110

Network Adapter 111

TCP/IP Window Size 111

Receive-Side Scaling (RSS) 112

Tuning for IxChariot 112

Performance Tuning for Remote Desktop Services Knowledge Worker Workload 112

Recommended Tunings on the Server 114

Monitoring and Data Collection 116

Performance Tuning for SAP Sales and Distribution Two-Tier Workload 116

Operating System Tunings on the Server 117

Tunings on the Database Server 118

Tunings on the SAP Application Server 119

Monitoring and Data Collection 120

Performance Tuning for TPC-E Workload 121

Server Under Test (SUT) Tunings 121

SQL Server Tunings for TPC-E Workload 123

Disk Storage Tunings 124

TPC-E Database Size and Layout 124

Client Systems Tunings 125

Monitoring and Data Collection 125

Resources 128


Windows Server® 2008 R2 performs well out of the box while consuming the least energy possible for most customer workloads. However, you might have business needs that are not met by using the default server settings. You might need the lowest possible energy consumption, or the lowest possible latency, or the maximum possible throughput on your server. This guide describes how you can further tune the server settings and obtain incremental performance or energy efficiency gains, especially when the nature of the workload varies little over time.

To have the most impact, your tuning changes should consider the hardware, the workload, the power budgets, and the performance goals of your server. This guide describes important tuning considerations and settings that can result in improved performance or energy efficiency. This guide describes each setting and its potential effect to help you make an informed decision about its relevance to your system, workload, performance, and energy usage goals.

Since the release of Windows Server 2008, customers have become increasingly concerned about energy efficiency in the datacenter. To address this need, Microsoft and its partners invested a large amount of engineering resources in developing and optimizing the features, algorithms, and settings in Windows Server 2008 R2 to maximize energy efficiency with minimal effects on performance. This paper describes energy consumption considerations for servers and provides guidelines for meeting your energy usage goals. Although “power consumption” is a more commonly used term, “energy consumption” is more accurate because power is an instantaneous measurement (Energy = Power *Time). Power companies typically charge datacenters for both the energy consumed (megawatt-hours) and the peak power draw required (megawatts).

Note: Registry settings and tuning parameters changed significantly from Windows Server 2003 and Windows Server 2008 to Windows Server 2008 R2. Be sure to use the latest tuning guidelines to avoid unexpected results.

As always, be careful when you directly manipulate the registry. If you must edit the registry, back it up before you make any changes.



Download 0,59 Mb.
  1   2   3   4   5   6   7   8   9   ...   19




Download 0,59 Mb.

Bosh sahifa
Aloqalar

    Bosh sahifa



Performance Tuning Guidelines for Windows Server 2008 R2 April 12, 2013

Download 0,59 Mb.