Tuning Windows Vista's Performance

Total Page:16

File Type:pdf, Size:1020Kb

Tuning Windows Vista's Performance 18_0672328941_ch14.qxd 11/16/06 6:00 PM Page 381 CHAPTER 14 IN THIS CHAPTER . Vista’s Performance Tuning Windows Vista’s Improvements . Monitoring Performance Performance . Optimizing Startup . Optimizing Applications . Optimizing the Hard Disk We often wonder why our workaday computer chores seem to take just as long as they ever did, despite the fact . Optimizing Virtual Memory that hardware is generally more reliable and more powerful than ever. The answer to this apparent riddle relates to Parkinson’s Law of Data, which I mentioned back in Chapter 1, “An Overview of Windows Vista.” On a more general level, a restatement of Parkinson’s Law is as follows: The increase in software system requirements is directly propor- tional to the increase in hardware system capabilities. For example, imagine that a slick new chip is released that promises a 30% speed boost; software designers, seeing the new chip gain wide acceptance, add 30% more features to their already bloated code to take advantage of the higher performance level. Then another new chip is released, followed by another software upgrade—and the cycle continues ad nauseum as these twin engines of computer progress lurch co-dependently into the future. So, how do you break out of the performance deadlock created by the immovable object of software code bloat meeting the irresistible force of hardware advancement? By optimizing your system to minimize the effects of over- grown applications and to maximize the native capabilities of your hardware. Of course, it helps if your operating system gives you a good set of tools to improve and monitor performance, diagnose problems, and keep your data safe. Windows XP came with a decent set of client tools, and Vista improves on them, although not with anything radically new or earth-shattering. Vista’s perfor- mance and maintenance improvements are evolutionary, not revolutionary, but they’re definitely better than anything we’ve seen in a Microsoft client operating system. 18_0672328941_ch14.qxd 11/16/06 6:00 PM Page 382 382 CHAPTER 14 Tuning Windows Vista’s Performance Vista’s Performance Improvements Certain computer pastimes—hardcore gaming, software development, database adminis- tration, and digital video editing, to name just a few—require hardware help to maximize performance. Whether it’s scads of system RAM, a mountain of hard drive storage space, or a state-of-the-art graphics card, these intense computer tasks require the best hardware that users can afford. Those of us who are not into those intense computing pursuits generally don’t need the fastest machine on the market to write memos, build spreadsheet models, or design web pages. What we really need is a system that doesn’t get in our way by making us wait for seemingly routine tasks. For example, in Windows XP, I often right-click a document in Explorer with the intention of clicking a command such as Cut, Copy, or Rename. Along the way, however, my mouse pointer has to pass over the Send To command. XP popu- lates the Send To menu by going to the Registry and searching for items that it can add to this menu. For some reason, that sometimes takes several seconds, so my mouse pointer remains stuck on Send To, even though that’s not the command I want. This kind of interface annoyance must have bugged the Windows programmers one too many times also because they’ve rewritten the interface code from the ground up to make actions such as choosing menu options (including displaying the Send To menu) much faster. Even the in-place All Programs menu (refer to Chapter 2, “Customizing and Troubleshooting the Windows Vista Startup”) is a huge improvement over XP and enables you to launch items much more quickly from deeply nested folders such as System Tools and Ease of Access. Besides these fit-and-finish performance improvements, Vista comes with a host of new features and updated technologies designed to make Vista the fastest Windows ever. The next few sections take you through the most important of these performance enhance- ments. Faster Startup New The first thing you’ll notice about Windows Vista is that it starts up much faster than any previous version of Windows. I don’t mean that it’s a second or two faster, either. My own testing reveals that Vista starts up in approximately half the time of an equivalent XP setup. For example, on an XP machine that takes 60 seconds from power- up to the point that you can actually start working with the interface, the equivalent Vista system would take 25 to 30 seconds. Remember, too, that I was testing with a beta version of Vista, so the release version you’ll use should be even faster. NOTE One Microsoft document claimed that Vista startups would take “typically 2 to 3 seconds.” This seems extremely unlikely, but it sure would be nice if it was true! (But see my discussion of the new sleep mode, later in this chapter.) 18_0672328941_ch14.qxd 11/16/06 6:00 PM Page 383 Vista’s Performance Improvements 383 Where does the startup speed boost come from? Some of it comes from optimizing the startup code. However, most of the improvement comes from Vista’s asynchronous startup script and application launching. Older versions of Windows were hobbled at startup because they had to wait for each startup script, batch file, and program to launch before Windows handed the desktop over to the user. Vista handles startup jobs asynchronously, which means they run in the background, whereas Vista devotes most of its startup energies to getting the desktop onscreen. This means that it’s not unusual to notice startup scripts or programs running well after the desktop has made its appearance. Because all startup items run in the background, theo- retically it shouldn’t matter how many script or programs you run at startup; Vista should start up just as fast as if you had no startup items. CAUTION 14 The Vista team was right to give the user top startup priority because it’s frustrating to wait forever for startup items to execute. However, asynchronous startup could lead to problems if a script or program that you require for your work has not finished its chores before you’re ready. In most cases, this should just mean enduring the usual waiting game, but it’s something to bear in mind whenever you or one of your programs adds a script, program, or service to the startup. Sleep Mode: The Best of Both Worlds New In the last few versions of Windows, you had a number of options at your disposal for turning off your computer. You could use the Shut Down option to turn off the system entirely, which saved power but forced you to close all your documents and applications. You could put the system into Standby mode, which preserved your work and enabled you to restart quickly, but didn’t entirely shut off the machine’s power. Or you could go into Hibernate mode, which preserved your work and completely shut off the machine, but also took a relatively long time to restart (faster than Shut Down, but slower than Standby). I think it’s safe to say that these options confused most users, particularly the (subtle) difference between the Standby and Hibernate modes. By far the most common power- management complaint I’ve heard over the past few years is, “Why can’t Windows be more like a Mac?” That is to say, why can’t we turn off our machines instantly, and have them resume instantly with our windows and work still intact, as Apple has done with OS X? The new answer to these questions is that Vista is heading in that direction with a new Sleep state that combines the best of the old Standby and Hibernate modes: . As in Standby, you enter Sleep mode within just a few seconds. As in both Standby and Hibernate, Sleep mode preserves all your open documents, windows, and programs. 18_0672328941_ch14.qxd 11/16/06 6:00 PM Page 384 384 CHAPTER 14 Tuning Windows Vista’s Performance . As in Hibernate, Sleep mode shuts down your computer (although, as you’ll see, it doesn’t quite shut down everything). As in Standby, you resume from Sleep mode within just a few seconds. How can Vista preserve your work and restart in just a few seconds? The secret is that Vista doesn’t really shut off your computer when you initiate Sleep mode. Instead, it shuts down everything except a few crucial components such as the CPU and RAM. By preserving power to the RAM chips, Vista can keep your work intact and redisplay it instantly on waking. Don’t worry, though: Vista does make a copy of your work to the hard disk, so if your computer completely loses power, your work is still preserved. To use Sleep mode, open the Start menu and click the Sleep button, shown in Figure 14.1. (Notice that Microsoft has designed the Sleep button to look like a power button. This is no coincidence because Microsoft would greatly prefer that we “shut down” using Sleep mode instead of actually powering off.) Vista saves the current state and shuts off the computer in a few seconds. To resume, press your computer’s power button; the Vista Welcome screen appears almost immediately. Sleep button FIGURE 14.1 Click the new Sleep button to quickly shut down your computer and save your work. 18_0672328941_ch14.qxd 11/16/06 6:00 PM Page 385 Vista’s Performance Improvements 385 SuperFetch with ReadyBoost: The Faster Fetcher New Prefetching was a performance feature introduced in Windows XP that monitored your system and anticipated the data that you might use in the near future.
Recommended publications
  • Tzworks Prefetch Parser (Pf) Users Guide
    TZWorks® Prefetch Parser (pf) Users Guide Abstract pf is a standalone, command-line tool that can parse Windows prefetch files. From a forensics perspective, the prefetch file offers the analyst information about the applications that were executed, their location and the frequency. pf runs on Windows, Linux and Mac OS-X. Copyright © TZWorks LLC www.tzworks.com Contact Info: [email protected] Document applies to v1.33 of pf Updated: Aug 5, 2021 Table of Contents 1 Introduction .......................................................................................................................................... 2 2 How to Use pf........................................................................................................................................ 2 2.1 Handling Volume Shadow Copies ................................................................................................. 5 2.2 Other Output Options ................................................................................................................... 6 3 Known Issues ......................................................................................................................................... 7 4 Available Options .................................................................................................................................. 8 5 Authentication and the License File .................................................................................................... 10 5.1 Limited versus Demo versus Full in the tool’s Output
    [Show full text]
  • Windows Internals, Sixth Edition, Part 2
    spine = 1.2” Part 2 About the Authors Mark Russinovich is a Technical Fellow in ® the Windows Azure™ group at Microsoft. Windows Internals He is coauthor of Windows Sysinternals SIXTH EDITION Administrator’s Reference, co-creator of the Sysinternals tools available from Microsoft Windows ® The definitive guide—fully updated for Windows 7 TechNet, and coauthor of the Windows Internals and Windows Server 2008 R2 book series. Delve inside Windows architecture and internals—and see how core David A. Solomon is coauthor of the Windows Internals book series and has taught components work behind the scenes. Led by a team of internationally his Windows internals class to thousands of renowned internals experts, this classic guide has been fully updated Windows developers and IT professionals worldwide, SIXTH for Windows 7 and Windows Server® 2008 R2—and now presents its including Microsoft staff. He is a regular speaker 6EDITION coverage in two volumes. at Microsoft conferences, including TechNet As always, you get critical, insider perspectives on how Windows and PDC. operates. And through hands-on experiments, you’ll experience its Alex Ionescu is a chief software architect and internal behavior firsthand—knowledge you can apply to improve consultant expert in low-level system software, application design, debugging, system performance, and support. kernel development, security training, and Internals reverse engineering. He teaches Windows internals courses with David Solomon, and is ® In Part 2, you will: active in the security research community.
    [Show full text]
  • This Article Is the Second Part of a Three Part Series
    12/31/2020 Windows Administration: Inside the Windows Vista Kernel: Part 2 | Microsoft Docs 09/08/2016 • 23 minutes to read This article is the second part of a three part series. Click here to read Part One. Click here to read Part Three. Windows Administration Inside the Windows Vista Kernel: Part 2 Mark Russinovich At a Glance: Memory management Startup and shutdown Power management Last month, in the first installment of this three-part series, I looked at Windows Vista kernel enhancements in the areas of processes and I/O. This time I'll cover advances in the way Windows Vista manages memory, as well as major improvements to system startup, shutdown, and power management (Part One). Every release of Windows® improves scalability and performance, and Windows Vista™ is no different. The Windows Vista Memory Manager includes numerous enhancements, like more extensive use of lock-free synchronization techniques, finer-grained locking, tighter data-structure packing, larger paging I/Os, support for modern GPU memory architectures, and more efficient use of the hardware Translation Lookaside Buffer. Plus, Windows Vista memory management now offers dynamic address space allocation for the requirements of different workloads. Four performance-enhancing features that use new technologies make their operating system debut on Windows Vista: SuperFetch, ReadyBoost, ReadyBoot, and ReadyDrive. I'll discuss them in detail later in this article. Dynamic Kernel Address Space https://docs.microsoft.com/en-us/previous-versions/technet-magazine/cc162480(v=msdn.10) 1/15 12/31/2020 Windows Administration: Inside the Windows Vista Kernel: Part 2 | Microsoft Docs Windows and the applications that run on it have bumped their heads on the address space limits of 32-bit processors.
    [Show full text]
  • Tuning IBM System X Servers for Performance
    Front cover Tuning IBM System x Servers for Performance Identify and eliminate performance bottlenecks in key subsystems Expert knowledge from inside the IBM performance labs Covers Windows, Linux, and VMware ESX David Watts Alexandre Chabrol Phillip Dundas Dustin Fredrickson Marius Kalmantas Mario Marroquin Rajeev Puri Jose Rodriguez Ruibal David Zheng ibm.com/redbooks International Technical Support Organization Tuning IBM System x Servers for Performance August 2009 SG24-5287-05 Note: Before using this information and the product it supports, read the information in “Notices” on page xvii. Sixth Edition (August 2009) This edition applies to IBM System x servers running Windows Server 2008, Windows Server 2003, Red Hat Enterprise Linux, SUSE Linux Enterprise Server, and VMware ESX. © Copyright International Business Machines Corporation 1998, 2000, 2002, 2004, 2007, 2009. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Contents Notices . xvii Trademarks . xviii Foreword . xxi Preface . xxiii The team who wrote this book . xxiv Become a published author . xxix Comments welcome. xxix Part 1. Introduction . 1 Chapter 1. Introduction to this book . 3 1.1 Operating an efficient server - four phases . 4 1.2 Performance tuning guidelines . 5 1.3 The System x Performance Lab . 5 1.4 IBM Center for Microsoft Technologies . 7 1.5 Linux Technology Center . 7 1.6 IBM Client Benchmark Centers . 8 1.7 Understanding the organization of this book . 10 Chapter 2. Understanding server types . 13 2.1 Server scalability . 14 2.2 Authentication services . 15 2.2.1 Windows Server 2008 Active Directory domain controllers .
    [Show full text]
  • Forensic Implications of Windows Vista
    Forensic Implications of Windows Vista Barrie Stewart September 2007 Abstract Windows XP was launched in 2001 and has since been involved in many digital investigations. Over the last few years, forensic practitioners have developed a thorough understanding of this operating system and are fully aware of any challenges it may create during an investigation. Its successor, Windows Vista, was launched in January 2007 and is fast on its way to becoming the platform of choice for new PCs. Vista introduces many new technologies and refines a number of features carried over from XP. This report focuses on some of these technologies and, in particular, what effect they have on digital investigations. Acknowledgements Thanks go to Ian Ferguson for arranging the placement at QinetiQ where the majority of this research was conducted. Also, thanks to Phil Turner and the staff at QinetiQ for providing valuable support and insight during the course of the research. i Table of Contents Abstract .......................................................................................................... i Acknowledgements ..................................................................................... i Table of Contents ....................................................................................... ii Chapter 1 - Introduction............................................................................ 1 1.1 - Overview .................................................................................................................. 1 1.2 –
    [Show full text]
  • PC Tuning for Optimum Megascenery and Flight Simulator
    10 Windows XP Performance Tweaks For Optimizing Performance of MegaScenery, Flight Simulator 2004 and Your Overall Computing Experience. A lot of people purchase and install MegaScenery and are disappointed with the results. They ordered this hyped up scenery that when they try it doesn’t give them the results – as advertised. Their MegaScenery doesn’t display properly, the get the “blurries” where the full resolution scenery does not come into view fast enough. Often they blame it on MegaScenery…. but the real culprit is a poorly tuned and far from optimized PC. Flight Simulator 2004’s scenery display engine does have its shortfalls when running scenery as demanding as MegaScenery but when you perform these tweaks below (in combination with tips supplied with MegaScenery) you can overcome these limitations. However, not only do you improve your performance of MegaScenery, but also your overall performance of Flight Simulator 2004 and overall computing experience. A computer does need to be tuned to optimize its performance. Out of the box, Windows XP does not give you a fully tuned operating system and is wrought with settings that bottleneck performance. Follow these Tweaks below and you will have a finely tuned system that gives you blazing performance. The first 8 tweaks do not cost you anything and are just a few changes you can make from within Windows. The final 2 tweaks involve you spending a little bit of money but are well worth the investment. Three Warnings and recommendations Before you perform these steps, please: 1. Ensure that you are familiar with REGEDIT.
    [Show full text]
  • Tuning Windows 7'S Performance
    Microsoft Windows 7 Unleashed, Paul McFedries, Sams Publishing, 0672330695, July, 201 CHAPTER 6 IN THIS CHAPTER . Monitoring Performance Tuning Windows 7’s . Optimizing Startup Performance . Optimizing Applications . Optimizing the Hard Disk . Optimizing Virtual Memory Now, here, you see, it takes all the running you can do, to stay in the same place. If you want to get somewhere else, you must run at least twice as fast as that! —Lewis Carroll, Through the Looking Glass We often wonder why our workaday computer chores seem to take just as long as they ever did, despite the fact that hardware is generally more reliable and more powerful than ever. The answer to this apparent riddle comes in the form of McFedries’ law of computing codependence: The increase in software system requirements is directly proportional to the increase in hardware system capabilities. For example, imagine that a slick new chip is released that promises a 10% speed boost; software designers, seeing the new chip gain wide acceptance, add 10% more features to their already bloated code to take advantage of the higher perfor- mance level. Then another new chip is released, followed by another software upgrade—and the cycle continues ad nauseum as these twin engines of computer progress lurch codependently into the future. So, how do you break out of the performance deadlock created by the immovable object of software code bloat meeting the irresistible force of hardware advancement? By optimizing your system to minimize the effects of over- grown applications and to maximize the native capabilities of your hardware. Of course, it helps if your operating system gives you a good set of tools to improve and monitor performance, diagnose problems, and keep your data safe.
    [Show full text]
  • Sample Chapters from Windows Internals, Sixth Edition, Part 1
    spine = 1.2” Part 1 About the Authors Mark Russinovich is a Technical Fellow in ® the Windows Azure™ group at Microsoft. Windows Internals He is coauthor of Windows Sysinternals SIXTH EDITION Administrator’s Reference, co-creator of the Sysinternals tools available from Microsoft Windows ® The definitive guide—fully updated for Windows 7 TechNet, and coauthor of the Windows Internals and Windows Server 2008 R2 book series. Delve inside Windows architecture and internals—and see how core David A. Solomon is coauthor of the Windows Internals book series and has taught components work behind the scenes. Led by a team of internationally his Windows internals class to thousands of renowned internals experts, this classic guide has been fully updated Windows developers and IT professionals worldwide, SIXTH for Windows 7 and Windows Server® 2008 R2—and now presents its including Microsoft staff. He is a regular speaker 6EDITION coverage in two volumes. at Microsoft conferences, including TechNet As always, you get critical, insider perspectives on how Windows and PDC. operates. And through hands-on experiments, you’ll experience its Alex Ionescu is a chief software architect and internal behavior firsthand—knowledge you can apply to improve consultant expert in low-level system software, application design, debugging, system performance, and support. kernel development, security training, and Internals reverse engineering. He teaches Windows internals courses with David Solomon, and is ® In Part 1, you will: active in the security research community.
    [Show full text]
  • Rapid Prototyping and Evaluation of Intelligence Functions of Active Storage Devices
    2356 IEEE TRANSACTIONS ON COMPUTERS, VOL. 63, NO. 9, SEPTEMBER 2014 Rapid Prototyping and Evaluation of Intelligence Functions of Active Storage Devices Yongsoo Joo, Member, IEEE, Junhee Ryu, Sangsoo Park, Member, IEEE, Heonshik Shin, Member, IEEE, and Kang G. Shin, Fellow, IEEE Abstract—Active storage devices further improve their performance by executing “intelligence functions,” such as prefetching and data deduplication, in addition to handling the usual I/O requests they receive. Significant research has been carried out to develop effective intelligence functions for the active storage devices. However, laborious and time-consuming efforts are usually required to set up a suitable experimental platform to evaluate each new intelligence function. Moreover, it is difficult to make such prototypes available to other researchers and users to gain valuable experience and feedback. To overcome these difficulties, we propose IOLab, a virtual machine (VM)-based platform for evaluating intelligence functions of active storage devices. The VM-based structure of IOLab enables the evaluation of new (and existing) intelligence functions for different types of OSes and active storage devices with little additional effort. IOLab also supports real-time execution of intelligence functions, providing users opportunities to experience latest intelligence functions without waiting for their deployment in commercial products. Using a set of interesting case studies, we demonstrate the utility of IOLab with negligible performance overhead except for the VM’s virtualization overhead. Index Terms—Active storage device, intelligence function, device emulation 1INTRODUCTION TORAGE devices have constantly been upgraded with cut- Although the evolution of active storage devices offers Sting-edge technologies to perform “something” more than more opportunities for researchers and developers, it has just handling the usual I/O requests they receive, in order to been accompanied with increasing difficulties in setting up improve their performance.
    [Show full text]
  • FAST: Quick Application Launch on Solid-State Drives
    FAST: Quick Application Launch on Solid-State Drives Yongsoo Joo†, Junhee Ryu‡, Sangsoo Park†, and Kang G. Shin†∗ †Ewha Womans University, 11-1 Daehyun-dong Seodaemun-gu, Seoul 120-750, Korea ‡Seoul National University, 599 Kwanak-Gu Kwanak Rd., Seoul 151-744, Korea ∗ University of Michigan, 2260 Hayward St., Ann Arbor, MI 48109, USA Abstract release, their launch takes longer even if a new, power- ful machine equipped with high-speed multi-core CPUs Application launch performance is of great importance and several GBs of main memory is used. This undesir- to system platform developers and vendors as it greatly able trend is known to stem from the poor random access affects the degree of users’ satisfaction. The single most performance of hard disk drives (HDDs). When an ap- effective way to improve application launch performance plication stored in a HDD is launched, up to thousands is to replace a hard disk drive (HDD) with a solid state of block requests are sent to the HDD, and a significant drive (SSD), which has recently become affordable and portion of its launch time is spent on moving the disk popular. A natural question is then whether or not to head to proper track and sector positions, i.e., seek and replace the traditional HDD-aware application launchers rotational latencies. Unfortunately, the HDD seek and with a new SSD-aware optimizer. rotational latencies have not been improved much over We address this question by analyzing the inefficiency the last few decades, especially compared to the CPU of the HDD-aware application launchers on SSDs and speed improvement.
    [Show full text]
  • Forensic Examination and Analysis of the Prefetch Files on the Banking Trojan Malware Incidents
    Edith Cowan University Research Online Australian Digital Forensics Conference Conferences, Symposia and Campus Events 2014 Forensic examination and analysis of the Prefetch files on the banking Trojan malware incidents Andri P. Heriyanto Edith Cowan University Follow this and additional works at: https://ro.ecu.edu.au/adf Part of the Computer Engineering Commons, and the Information Security Commons DOI: 10.4225/75/57b40250fb894 12th Australian Digital Forensics Conference. Held on the 1-3 December, 2014 at Edith Cowan University, Joondalup Campus, Perth, Western Australia. This Conference Proceeding is posted at Research Online. https://ro.ecu.edu.au/adf/132 FORENSIC EXAMINATION AND ANALYSIS OF THE PREFETCH FILES ON THE BANKING TROJAN MALWARE INCIDENTS Andri P Heriyanto School of Computer and Security Science, Edith Cowan University, Perth, Australia [email protected] Abstract Whenever a program runs within the operating system, there will be data or artefacts created on the system. This condition applies to the malicious software (malware). Although they intend to obscure their presence on the system with anti-forensic techniques, still they have to run on the victim’s system to acquire their objective. Modern malware creates a significant challenge to the digital forensic community since they are being designed to leave limited traces and misdirect the examiner. Therefore, every examiner should consider performing all the forensics approaches such as memory forensic, live-response and Windows file analysis in the related malware incidents to acquire all the potential evidence on a victim’s system. There is a challenge when an examiner only has an option to perform post-mortem forensic approach.
    [Show full text]