Francis Lam Hong Kong Understand more on performance Feature enhancement when using with Win2k8 R2 Application Compability Windows 7 Deployment

Everyone wants performance – what’s new?

The rise of small notebook PCs (netbooks)

1GB RAM, modest CPU and Disk

Both enterprise and consumer usage Domain-joined machines require additional resources, which can be challenging for small notebooks

Increasing percentage of PC sales about 20M expected this year

Commonly available PCs now cover a broader spectrum of capabilities Over 400 footprint reductions across all components

1400 Vista SP1 1200 Windows 7 Beta 1000

800

600

400

200

0 LaptopA LaptopB ShipA ShipB ShipG ShipH ShipI ShipJ LaptopA LaptopB ShipB ShipJ (x86) (x86) (x86) (x86) (x86) (x86) (x86) (x86) (x64) (x64) (x64) (x64) DWM re-architecture reduces memory footprint per window by 50% Registry read into paged pool Was memory mapped before Improves performance because views into registry file don’t need to be mapped and unmapped Working set management improvements: Working set is amount of RAM memory manager assigns to process or kernel memory type Memory manager tuned to reduce impact of run-away processes Processes that grow quickly reuse their own pages more aggressively Uses 8 aging levels instead of 4 System , paged pool, and pageable system code now each have own working set Now, each tuned according to specific usage, which improves memory usage Reduces impact of file copies on system code PerfTrack: 300 user-visible scenarios identified Examples: open start menu, open control panel, booting Performance goals set for each feature Instrumented with begin/end events Data sampled from Customer Experience Program and fed back to feature teams Performance Enhanced end-user Improved • System memory experience Reliability savings for • Better viewing • Standardization of running Aero experience on TVs and High-definition • High-performance widescreen composition Direct3D10 Aero Glass • Improved video • GPU content Windows desktop overlay presentation protection through • Performant standardized solutions Direct2D API • Improved • Performance gains in diagnosability gaming scenarios Memory savings - GDI Application windows

Memory Consumption Comparison (Lower bars are better)

350

MB) 300 Windows 7 Pre Beta 250

200 Preliminary data gathered on Windows 7 pre-release builds 150 100 50

Memory Memory Consumption( 0 1 2 5 7 10 15 20 25 30 35 40 45 50 Number of Windows Open

# of Windows 5 windows 15 windows 30 windows ------Screen Resolution 1024 x 768 15 MBytes 45 MBytes 90 MBytes 1280 x 1024 25 MBytes 75 MBytes 150 MBytes 1600 x 1200 36.5 MBytes 109.5 MBytes 219 MBytes Flash is cheaper Bigger flash storage devices Wider range of options Thumb drives, SD cards, Compact Flash SSDs of all sizes and price ranges Multiple vendors Small notebooks can incorporate flash in several forms (SSDs, external flash)

Challenges : • Enabling Windows performance features to scale across the spectrum (small notebooks to high end machines) • Helping customers evaluate small notebooks PC Accelerators: Make the computer more consistently responsive SuperFetch ™ Works with kernel memory manager to optimize memory usage ReadyBoost™ optional flash supplement to memory

System Assessment: Evaluate performance of system components Windows Experience Index Performance Control Panel with summary scores Windows System Assessment Tests Detailed metrics underneath the summary score Handle wider range of CPUs, new DX10 graphics, plus new Disk storage (both SSD and HDD) SuperFetch What it does : Memory manager service Pays attention to user usage patterns Prioritizes pages so most important aren’t paged out of memory Pre-loads the most relevant pages into memory Make the computer more responsive by decreasing paging from disk Where SuperFetch helps Optimizing pages to user’s actual usage patterns Speeds up resume after standby/hibernate Compensating for slower disk, limited RAM Random reads Where SuperFetch does not make a big impact Day 1 scenarios (SuperFetch learns over time) Unpredictable usage patterns Systems with very fast disks Systems with very low memory Since it takes memory to manage memory, SuperFetch will throttle back if the system is very memory-constrained. (ReadyBoost still available)

When workloads cannot fit into DRAM, SuperFetch can utilize supplemental ReadyBoost caches Keep more relevant pages in memory, pull fewer from disk System is more consistently responsive Benefits are workload dependent – if the workload is large relative to available memory, ReadyBoost can help Low-RAM, slow-disk systems, like small notebooks Help resume from standby and hibernate Not boot ReadyBoost options: Internal and external ReadyBoost devices As in Vista , external devices can be : USB keys, SD or SDHC cards, Compact Flash cards

Choosing a ReadyBoost device: Size before speed RB cache should be 2-4x DRAM size (recommend 4x) More ReadyBoost caches Vista supported only 1 per machine, W7 supports 8/machine

Larger ReadyBoost caches Vista supported max 4gb per cache, W7 supports 32GB/cache FAT32 limited to 4GB per cache (filesize) exFAT and NTFS cache files can be large exFAT recommended, more suitable for removable devices Higher encryption Vista only supported 128 AES W7 supports AES 256 as an option default still 128

OEM options to configure internal ReadyBoost Can turn off compression or encryption for internal ReadyBoost devices to minimize CPU load and increase performance SuperFetch Let SuperFetch handle the tuning ; do not turn the service off Adapts based on Disk speed and available memory Turning off SuperFetch disables ReadyBoot and ReadyBoost Boot times would be much slower without ReadyBoot ReadyBoost If your machines have limited RAM (compared to their workloads) or slow disks, consider adding ReadyBoost devices. Small notebooks : limited RAM, modest CPU and disks Older machines Easy to add external devices post-purchase If customer is ordering machines, they can request internal or external ReadyBoost devices

Policy Servers Health policy validation and remediation such as: Patch, AV Helps keep mobile, desktop and server devices in compliance Reduces risk from unauthorized systems on the network Remediation Servers Restricted Example: Patch Network Not policy compliant

Corporate Network Policy Windows DHCP, VPN NPS compliant Client Switch/Router Technical Details

Internet Compliant Compliant NAP / Client Client NPS Servers Tunnel over IPv4 UDP, TLS, etc.

DirectAccess Server Intranet User Assume the underlying network is always insecure Data Center and Business Critical Resources Intranet Redefine enterprise network edge to insulate the User Enterprise datacenter and business critical resources Network Get ready step by step Determine your strategy Be ready to monitor IPv6 traffic Choose an Access Model: Full Intranet Access vs. Selected Server Access? Assess deployment scale Get your infrastructure ready Windows 7 clients R2 DirectAccess Server DC, DNS Server, Active Directory, PKI, Application Servers, etc. During deployment Use DirectAccess configuration wizard to setup DirectAccess Server and generate policies for clients, application servers, and DC/DNS Customize policies as needed IT Pro Benefits Improved manageability of remote users IT simplification and cost reduction Consistent security for all access scenarios

End User Benefits Seamless & secure access to corporate resources Consistent connectivity experience in / out office Combined with other Windows 7 features enhances the end to end IW experience Situation Today Application and data access over WAN is slow in branch offices Slow connections hurt user productivity Improving network performance is expensive and difficult to implement

Windows 7 Solution

BranchCache™ SMB Enhancements 1. Transparent Caching 2. Improved Office Experience 3. Offline Files Enhancements Improve user productivity Reduce network bandwidth utilization Windows 7 Solution

Caches content downloaded from file and Web servers Users in the branch can quickly open files stored in the cache Frees up network bandwidth for other uses

Technical Details

Authenticates current state of data and access rights of the user against the server Supports commonly used protocols: HTTP(S), SMB Support network security protocols (SSL, IPsec) Requires Windows Server 2008 R2 in the data center and hosted cache DataIDID

Data DataID

ID

Search ID Data

ID

ID Data Enterprise

Distributed Cache Hosted Cache Data cached in cache pool Data cached at the host server

Recommended for branches Cache stored centrally: existing without a branch server Windows Server 2008 R2 in the Easy to deploy: Enabled on clients branch through Group Policy Cache availability is high Cache availability decreases with Enables branch-wide caching laptops that go offline Increased reliability Use Group Policy to enable Windows BranchCache on Windows 7 clients

Install the optional “Windows BranchCache” component on a Windows 2008 R2 web or file server

Hosted Cache IIS File Server Optionally, install a hosted cache in your branch. Configure clients to use it Group Policy with Management Group Policy IT Pro Benefits Optimize network utilization: HTTP and HTTPS-based intranet traffic SMB (and signed SMB) shares on the read path Support network security protocols (SSL, IPsec) Reduce the cost of managing WAN End User Benefits Improve application responsiveness and reduce file transfer wait time Combined with other SMB offerings enhance the user experience on remote shares Eddie Chua Microsoft HK Ltd. Which applications do I HAVE?

Which applications do I WANT?

Which applications WORK? New technologies introduced

35 Top areas of concern with Windows 7 application compatibility: User Account Control (UAC) Windows Resource Protection (WRP) Internet Explorer® Protected Mode 64-bit Operating Systems Windows Filtering Platform Version Changes Deprecations/GINA/Session 0 (High Impact/Low Frequency)

36 Windows Vista to Windows 7 compatibility is very high, but some changes were made: Operating System Versioning Security Class Applications Removal of Windows Gallery applications (Windows Mail, Movie Maker, Messenger, Address Book, Photo Gallery) National Language Support (NLS) Sorting Changes Internet Explorer 8 File Libraries High DPI Awareness Removal of Windows Registry Reflection Removal of msagent and milcore.dll, revamped CDROM driver stack and biometrics support 37 Code rewrite Painful, least preferred Virtualization (XP Mode, Med-V) Costly : Requires specialized hardware support. Less preferred. Apply Shim (ACT 5.5) Application fixes to emulate / remediate changed features Most preferred. NO additional investment required Using Compatibility Administrator in ACT 5.5 39 Collection of tools to: • Inventory for software, hardware, and device assets • Compatibility evaluation for all of the above • Get Vendor Support Statements, Logo data from Compatibility Exchange • Recommendations for fixing applications and Websites (Internet Explorer 8) • Tools to apply compatibility fixes or “shims” to applications

40 Collect Data Analyze Test and Mitigate

Inventory Prioritize and In-depth testing Applications and Categorize with dev/test Devices tools Synchronize data Gather with Microsoft Log test data high-level Compatibility compatibility Exchange Build and test evaluator mitigations data Identify high- level issues

41 4 Compatibility Exchange

Desktop Topology

HR Finance 2 Europe North America Log Processing Service and DB Internet

1 Data Collection Package/Compatibility Evaluators 3 Application Compatibility Manager Inventory Windows 7 Windows Vista Update

Ichiro Greg

42 43 Windows components change to support: New technology Bug fixes Strategy changes OS changes may fix some, break others Simulate previous Windows ONLY for an app Application

Shim 46 Pre-configured Windows XP VHD image USB Support New Windows 7 style UI Seamless Applications Needs hardware support Enterprise management tools for Software Assurance customers

New

48 Centrally manage Virtual Accelerate OS PCs migrations Simplify Virtual PC Reduce application image delivery and compatibility concerns update Drive Business Seamless presentation continuity of windows in a Virtual Intuitive user PC experience

49 Provisions Enable device applications to users roaming at log on Accelerated desktop Centralizes deployment permissions Minimize app-to-app Isolates applications compatibility testing Provide real-time usage reports

50 Francis Lam Deployment Windows User State Microsoft Image Servicing Deployment Services Migration Tool Deployment Toolkit and Management Multicast Hardlink Migration Application Add/Remove Drivers Compatibility Toolkit and Packages Multiple Stream Transfer Offline File Gather Microsoft WIM and VHD Image Dynamic Driver Improved user file Assessment and Management Provisioning detection Planning Enable and disable, enumerate, add, remove packages and updates Add, remove, enumerate drivers WIM and VHD support OEMs can select OS editions offline Package Commands DISM Manager Add Package /add-package /ip Add update /add-package /iu Remove Package /remove- /up Remove Update package /uu Enumerate Packages /remove- Add Drivers package Remove Drivers /get-packages ImageX Enumerate Drivers /add-drivers Mount WIM /remove-drivers /mount Unmount WIM /get-drivers /unmount Commit Changes (WIM) /mount-wim /commit /unmount-wim /commit-wim +Intlconfig Multiple Stream Transfer Multiple bands to broadcast images to clients Optimized rates per client connection Fast Client Auto Removal Slower clients can be dropped to unicast or entirely (only in standard multicast) Medium Boot Image Multicast Windows PE boot images can use multicast (clients with EFI) Slow WDS Server

Multicast Transmission

First client joins “transmission”

Clients WDS Server

Multicast Transmission

Waiting for other clients to join…

Clients WDS Server

Multicast Transmission

Transmission begins…

Fastest Medium

Clients with multiple transfer speeds WDS Server

Multicast Transmission

Additional clients join stream

Fastest Medium Slowest Medium

Clients with multiple transfer speeds WDS Server

Multicast Transmission

More clients to join

Medium Slowest Medium Fastest Medium Fastest Medium

Clients with multiple transfer speeds WDS Server

Multicast

First clients complete. Second broad- cast begins. One client removed.

Medium Slowest Medium Medium Medium

Clients with multiple transfer speeds WDS Server

Multicast

Last clients complete…

Slowest Medium Medium

Clients with multiple transfer speeds WDS Server

Multicast

All clients complete. Transmission ends.

Clients WDS Server

Images Drivers

Driver targeting to match drivers to hardware Reduces image size and centralizes deployment Client driver management User State Migration Tool

Hardlink Migration Enables local file migration without copying or moving files Processes migration jobs in third of the time or less

Offline User State Capture Capture during Windows PE phase to improve speed

Volume Shadow Copy Capture files even while they are in use

Improved File Discovery Reduces XML customization need

Microsoft Confidential – NDA Only – Microsoft Preliminary Information Commands Win7 USMT USMT 3 Hard Link Migration /hardlink Offline Windows /offlinewindir Directory (PE or Volume Shadow Copy windows.old) Auto Gather /vsc /migdocs /miguser /auto Windows 7 USMT Supported OS Windows XP Windows Vista Windows 7 Scanstate.exe Scanstate.exe Scanstate.exe Loadstate.exe Loadstate.exe Microsoft Assessment Application Microsoft and Planning Compatibility Toolkit Deployment Toolkit Deployment Windows User State Microsoft Image Servicing Deployment Services Migration Tool Deployment Toolkit and Management Multicast Hardlink Migration Application Add/Remove Drivers Compatibility Toolkit and Packages Multiple Stream Transfer Offline File Gather Microsoft WIM and VHD Image Dynamic Driver Improved user file Assessment and Management Provisioning detection Planning © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Internet Explorer and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.