Windows Vista: System Performance Enhancements Simon Martyn Infrastructure Specialist The IQ Business Group Technology Services Division.

Slides:



Advertisements
Similar presentations
Computer-System Structures Er.Harsimran Singh
Advertisements

File Systems.
1 Magnetic Disks 1956: IBM (RAMAC) first disk drive 5 Mb – Mb/in $/year 9 Kb/sec 1980: SEAGATE first 5.25’’ disk drive 5 Mb – 1.96 Mb/in2 625.
MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 10 Performance Tuning.
Optimizing Windows Vista Performance Lesson 10. Skills Matrix Technology SkillObjective DomainObjective # Introducing ReadyBoostTroubleshoot performance.
© 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
CLI312: Windows Vista System Performance Enhancements Dan Li Program Manager Lead Microsoft Corporation.
Chapter 3: Configuring the Windows Vista Environment.
OS2-1 Chapter 2 Computer System Structures. OS2-2 Outlines Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection.
Capriccio: Scalable Threads for Internet Services Rob von Behren, Jeremy Condit, Feng Zhou, Geroge Necula and Eric Brewer University of California at Berkeley.
Hybrid Hard Drive William Sullivan HTM /09/2007.
1 CS222: Principles of Database Management Fall 2010 Professor Chen Li Department of Computer Science University of California, Irvine Notes 01.
CIT  In this chapter you will learn how to:  Explain how hard drives store data  Describe the differences between traditional hard drives and.
Ruston Panabaker Architect Windows Hardware Innovation Group
Hybrid Hard Drives with Non-Volatile Flash and Longhorn Jack Creasey Program Manager Hardware Innovation Group Microsoft Corporation.
Solid-State Drive Ding Ruogu Kong Liang. A solid-state drive (SSD) is a data storage device that uses solid-state memory to store persistent data.
Introduction to Database Systems 1 The Storage Hierarchy and Magnetic Disks Storage Technology: Topic 1.
Secondary Storage Unit 013: Systems Architecture Workbook: Secondary Storage 1G.
Case study 2 Android – Mobile OS.
Layers of a DBMS Query optimization Execution engine Files and access methods Buffer management Disk space management Query Processor Query execution plan.
General System Architecture and I/O.  I/O devices and the CPU can execute concurrently.  Each device controller is in charge of a particular device.
Slide 1 Windows PC Accelerators Reporter :吳柏良. Slide 2 Outline l Introduction l Windows SuperFetch l Windows ReadyBoost l Windows ReadyDrive l Conclusion.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Lecture 11: DMBS Internals
Computing Hardware Starter.
MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.
MCTS Guide to Microsoft Windows 7
Physical Storage and File Organization COMSATS INSTITUTE OF INFORMATION TECHNOLOGY, VEHARI.
Introduction to Database Systems 1 Storing Data: Disks and Files Chapter 3 “Yea, from the table of my memory I’ll wipe away all trivial fond records.”
11 SYSTEM PERFORMANCE IN WINDOWS XP Chapter 12. Chapter 12: System Performance in Windows XP2 SYSTEM PERFORMANCE IN WINDOWS XP  Optimize Microsoft Windows.
Rensselaer Polytechnic Institute CSCI-4210 – Operating Systems CSCI-6140 – Computer Operating Systems David Goldschmidt, Ph.D.
SOLID STATE DRIVES By: Vaibhav Talwar UE84071 EEE(5th Sem)
®® Microsoft Windows 7 for Power Users Tutorial 9 Evaluating System Performance.
Lecture 16: Storage and I/O EEN 312: Processors: Hardware, Software, and Interfacing Department of Electrical and Computer Engineering Spring 2014, Dr.
3 Computing System Fundamentals
Week #3 Objectives Partition Disks in Windows® 7 Manage Disk Volumes Maintain Disks in Windows 7 Install and Configure Device Drivers.
File Processing : Storage Media 2015, Spring Pusan National University Ki-Joune Li.
I/O Computer Organization II 1 Introduction I/O devices can be characterized by – Behavior: input, output, storage – Partner: human or machine – Data rate:
© Paradigm Publishing Inc. 4-1 OPERATING SYSTEMS.
Physical Storage Organization. Advanced DatabasesPhysical Storage Organization2 Outline Where and How data are stored? –physical level –logical level.
Lecture 3 Page 1 CS 111 Online Disk Drives An especially important and complex form of I/O device Still the primary method of providing stable storage.
DMBS Internals I. What Should a DBMS Do? Store large amounts of data Process queries efficiently Allow multiple users to access the database concurrently.
Windows XP & Vista Memory Management
© GCSE Computing Computing Hardware Starter. Creating a spreadsheet to demonstrate the size of memory. 1 byte = 1 character or about 1 pixel of information.
12/18/20151 Operating Systems Design (CS 423) Elsa L Gunter 2112 SC, UIUC Based on slides by Roy Campbell, Sam.
Disk Basics CS Introduction to Operating Systems.
Review of Computer System Organization. Computer Startup For a computer to start running when it is first powered up, it needs to execute an initial program.
Processor Memory Processor-memory bus I/O Device Bus Adapter I/O Device I/O Device Bus Adapter I/O Device I/O Device Expansion bus I/O Bus.
DMBS Internals I February 24 th, What Should a DBMS Do? Store large amounts of data Process queries efficiently Allow multiple users to access the.
DMBS Internals I. What Should a DBMS Do? Store large amounts of data Process queries efficiently Allow multiple users to access the database concurrently.
DMBS Architecture May 15 th, Generic Architecture Query compiler/optimizer Execution engine Index/record mgr. Buffer manager Storage manager storage.
What Should a DBMS Do? Store large amounts of data Process queries efficiently Allow multiple users to access the database concurrently and safely. Provide.
1 Lecture 16: Data Storage Wednesday, November 6, 2006.
ITMT 1371 – Window 7 Configuration 1 ITMT Windows 7 Configuration Chapter 8 – Managing and Monitoring Windows 7 Performance.
Data Storage and Querying in Various Storage Devices.
Windows Vista Configuration MCTS : Maintenance and Optimization.
Chapter 10: Mass-Storage Systems
Chapter 2: Computer-System Structures
Lecture 16: Data Storage Wednesday, November 6, 2006.
Database Management Systems (CS 564)
Using non-volatile memory (NVDIMM-N) as block storage in Windows Server 2016 Tobias Klima Program Manager.
MCTS Guide to Microsoft Windows 7
Lecture 11: DMBS Internals
Introduction I/O devices can be characterized by I/O bus connections
Lecture 9: Data Storage and IO Models
Nathan Obr, Jack Creasey Microsoft Corporation
2.C Memory GCSE Computing Langley Park School for Boys.
Chapter 1: Introduction CSS503 Systems Programming
Presentation transcript:

Windows Vista: System Performance Enhancements Simon Martyn Infrastructure Specialist The IQ Business Group Technology Services Division

Agenda Current performance limitations Optimizing Memory Use – SuperFetch™ Avoiding the Disk Bottleneck – ReadyBoost™ – ReadyDrive™ Supporting infrastructure – Low-priority I/O – Diagnostic tools

What Causes Inconsistent Responsiveness? Poor memory content – Performance erodes over time The application has not run recently Background applications have swept through memory – Transitions affect memory After boot or hibernate After Fast User Switch After lunch or big application Random/blocking disk operations – Page faults – Program loads – Disk spin up time – Disk seeks

The Seek Problem Drive industry continues to deliver impressive data rate, rotation and interface speed improvements – ATA/33  ATA/66  ATA/100  SATA – 4200RPM  5400RPM  7200RPM  10000RPM – 2 MB  8 MB  16 MB – Result: Sequential IO rates of 80 MB/s+ At that rate, 1 GB of RAM fully populated in ~12.8sec Seek times improving, but not as significantly – 3.5” Desktop drive avg seek ~10 mSec – 2.5” Mobile drives ~12.5 mSec – Much better when hitting the track buffer – Result: Random IO rate limited to an effective 1MB/sec At that rate, populating 1GB of RAM takes ~1024sec!

.data pages MFT Entry Directory Entry PE Header.text pages DramCache DLLs On Disk

The Seek Problem 50% of MobileMark 2005 I/Os are 4 KB and random Files and structured files – A single DLL is generally 5 to 6 Disk Locations (min) Directory, MFT Entry, and other File System Metadata PE Hdr page,.text pages,.data pages,.rsrc pages, etc. – Programs like Internet Explorer, Adobe Reader, or Outlook use over 100 DLLs Reliability and durability – Logging, Transactions, Application Temp Files A simple Registry Write can require 5 to 6 Random and Ordered Disk Writes Synchronous blocking nature of page faults – Code pages, Stack pages, and Heap pages can all be faulted upon – Hard to develop Asynchronous Client applications

What Do Users See? Slow state transitions Decreased application responsiveness under memory pressure Slower program launch

How Does Microsoft Windows Vista Help? Provides new innovations in memory management Avoids hitting the disk where possible Prioritizes I/O when you do hit the disk Contains new diagnostic tools

Smart Memory Management

Internet Explorer Memory OS Startup Apps Microsoft Word Outlook Photo Editor Disk free memory memory cache Current Memory Management

SuperFetch SuperFetch is a breakthrough in memory management – Optimizes based on usage patterns over time – Takes into account frequency of page usage, usage of page in context of other pages in memory – Adapts to memory usage patterns, including complex usage scenarios – Can differentiate based on user, time and day of week

Internet Explorer Memory OS Startup Apps Microsoft Word Outlook Photo Editor Disk memory cache Photo Editor SuperFetch

SuperFetch is proactive and resilient – Smart about getting the right content into memory early – Keeps correct content in memory

Internet Explorer Idle Tasks Microsoft Word Outlook Idle Tasks Internet Explorer Idle Tasks Outlook Idle Tasks MS Word Idle Tasks OS Startup Apps Photoshop Traditional OS Startup Apps Photoshop memory cache OS Startup Apps Photoshop Superfetch OS Startup Apps Photoshop Keeping The Right Data In Memory

SuperFetch SuperFetch is efficient – Uses low priority I/O for pre-fetching and pre-population SuperFetch manages RAM and cache memory

Avoid The Disk Bottleneck

ReadyBoost Flash memory serves as a cache for SuperFetch – External USB keys, SD cards, Compact Flash, internal PCIe cards Allows fast reads to satisfy page faults when page is not in main memory – Up to 10x faster than random HDD reads Caches data proactively based on user activity

ReadyBoost Properties Reliable – Write-through cache allows user to remove device at any time – Device wear is not an issue Unique write gathering algorithm optimizes performance and wear patterns Projected life of 19.4 – 1823 years depending on device size and variant (10K or 100K write-erase cycles) Secure – Data is encrypted using AES-128 Efficient – Data is compressed by a factor of 1.8X to 2.3X

ReadyDrive Hybrid Hard Disk A Nonvolatile cache (NV Cache) is added to the hard disk drive – Allows data to be read and written while platter is spun down – Data in cache persisted when powered down – SuperFetch provides efficient cache utilization Dram Cache NV Cache Up to 90% Power Saving over conventional HDD SATA or PATA Interface Read and Write while spindle is stopped

MFT Entry Directory Entry DramCache.data pages PE Header.text pages DLLs On Disk

MFT Entry Directory Entry PE Header.text pages Dram Cache NV Cache.data pages DLLs On ReadyDrive H-HDD

NV Cache contents Cached writes Boot/resume sectors Sectors pinned by OEMs Read cache

ReadyDrive Benefits Performance – Faster Boot – Faster Hibernate/Resume – Performance improvement from minimizing disk seeks and enabling more IOs per second Power Savings/Battery Life – Windows Vista can reduce HDD power consumption of typical 2.5” HDD by 70-90% when operating on battery by keeping magnetic platter spun down most of the time Reliability improvements – Vibration or impact during writes not a problem with NV memory Reduced noise

ReadyDrive ATA Command Set A new ATA command set has been specified by Microsoft, HDD manufacturers, and industry partners which enables rich management of the NV Cache Single ATA command with sub-commands – Identify hybrid hard disk functionality – Add/Remove LBAs from NV Cache “pinned set” – Query NV Cache pinned set – Enter/Leave power saving mode – Etc. Accepted by T13 for standardization in the ATA 8 specification Opportunity for innovation by device and host moving forward

ReadyBoost And ReadyDrive System Memory HDD Platter Read Cache ReadyBoost Write Cache OEM Pinning Boot Data Read Cache ReadyDrive NVRAM RAM Magnetic

ReadyBoost And ReadyDrive ReadyBoost and ReadyDrive are complementary technologies Both powered by SuperFetch ReadyDrive – Helps state transitions – Can pin and accelerate some data – Improves reliability – Saves power ReadyBoost – Large read cache – Relieves memory pressure

Prioritized I/O

Low-priority I/O Why low-priority I/O? – Developers have long been able to throttle CPU usage by setting thread priorities – Low CPU usage can still slow down the system – With Windows Vista, developers can set I/O priorities Low-priority I/O applications – SuperFetch – Search indexing – Windows Defender – Disk defrag software – Startup applications

Using Low-priority I/O Call SetThreadPriority with THREAD_BACKGROUND_MODE_BEGIN Call SetProcessPriorityClass with PROCESS_BACKGROUND_MODE_BEGIN

Diagnostic Tools

Current Tool Limitations Repeatability – Often times, issues are non-deterministic Proactivity – Event logs are a good start but not end-user friendly

Performance Analyzer Windows Diagnostic Infrastructure System Event Log CKCL - ETW Kernel Events Performance Diagnostics Architecture Performance Tuning And Diagnostics Lower the cost for diagnosing performance problems – Easier diagnosis and resolution of performance problems Leverages data within the Circular Kernel Context Logger (CKCL) – Provides a record of recent system activity – Automated analysis applied for defined scenarios – Analysis results written to System Event Log

Vista Performance Benefits Windows Vista Delivers Consistent Performance – Improved power transitions – Consistent responsiveness, even in adverse conditions Windows Vista uses innovative technology to address the biggest user issues – SuperFetch is a breakthrough in memory management – ReadyDrive Hybrid Hard Disks provide reliability, battery, and performance benefits – ReadyBoost enabled flash improves responsiveness without needing to add more RAM – Low priority I/O prevents background applications from affecting user actions Windows Vista has improved diagnostic infrastructure – Circular Kernel Context Logger (CKCL)

Thank you to our Partners for their support of TechDays 2007