Optimizing Windows 7 application performance

Reading these application performance optimization tips will help you launch and install applications efficiently while optimizing Windows 7 to run programs more effectively.

Running applications is the reason we use Windows 7, so it's a rare user who doesn't want his applications to run as fast as possible. The next few sections offer some pointers for improving the performance of applications under Windows 7.

About the book:
This chapter excerpt on Tuning Windows 7's Performance (download PDF) is taken from the book Microsoft Windows 7 Unleashed. This book goes deep into Windows 7 and covers everything from security settings to startup optimization and networking. Author Paul McFedries introduces new styles and techniques to maximize your Windows 7 performance.

Adding More Memory

All applications run in RAM, of course, so the more RAM you have, the less likely it is that Windows 7 will have to store excess program or document data in the page file on the hard disk, which is a real performance killer. Use one of the following Windows 7 monitoring tools to watch the available memory value:

  • Task Manager—Display the Performance tab and watch the Physical Memory: Available value.


  • Resource Monitor—Display the Memory tab and watch the Available to Programs value.

  • Performance Monitor—Start a new counter, open the Memory category, and then select the Available Mbytes counter.

If the amount of available memory starts to get low, you should consider adding RAM to your system.

Installing to the Fastest Hard Drive

If your system has multiple hard drives that have different performance ratings, install your applications on the fastest drive. (See "Examining Hard Drive Performance Specifications" later in this chapter.) This enables Windows 7 to access the application's data and documents faster.

Optimizing Application Launching

As I mentioned earlier in this chapter (see "Configuring the Prefetcher"), Windows 7's fetching components can optimize disk files for booting, application launching, or both. It probably won't make much difference, but experiment with setting the Registry's EnablePrefetcher and EnableSuperfetch values to 1 to optimize application launching.

Getting the Latest Device Drivers

If your application works with a device, check with the manufacturer or Windows Update to see whether a newer version of the device driver is available. In general, the newer the driver, the faster its performance. I show you how to update device drivers in Chapter 22.

  • See "Updating a Device Driver," p. 466.

    Optimizing Windows 7 for Programs

    You can set up Windows 7 so that it's optimized to run programs. This involves adjusting the processor scheduling, which determines how much time the processor allocates to the computer's activities. In particular, processor scheduling differentiates between the foreground program (the program in which you are currently working) and background programs (programs that perform tasks, such as printing or backing up, while you work in another program).

    Optimizing programs means configuring Windows 7 so that it gives more CPU time to your programs. This is the default in Windows 7, but it's worth your time to make sure that this default configuration is still the case on your system. Here are the steps to follow:

    1. Select Start, type advanced system, and then press Enter to select View Advanced System Settings in the search results. This opens the System Properties dialog box with the Advanced tab displayed.


    2. In the Performance group, click Settings to display the Performance Options dialog box.

    3. Display the Advanced tab, shown in Figure 6.7.
    4. FIGURE 6.7 In the Performance Options dialog box, use the Advanced tab to optimize Windows 7 for programs.

    5. In the Processor Scheduling group, activate the Programs option.

    6. Click OK.

    7. When Windows 7 tells you the changes require a restart, click OK to return to the System Properties dialog box.

    8. Click OK. Windows 7 asks whether you want to restart your system.

    9. Click Yes.

    Setting the Program Priority in Task Manager

    You can improve the performance of a program by adjusting the priority given to the program by your computer's processor. The processor enables programs to run by doling out thin slivers of its computing time to each program. These time slivers are called cycles because they are given to programs cyclically. For example, if you have three programs running—A, B, and C—the processor gives a cycle to A, one to B, another to C, and then another to A again. This cycling happens quickly, appearing seamless when you work with each program.

    About the author:
    Paul McFedries is the president of Logophilia Limited, a technical writing company, and has been writing computer books since 1991. McFedries is the author or coauthor of more than 60 books that have sold more than 3 million copies worldwide. He is also the proprietor of Wordspy.com, a website described as "the word lover's guide to new words," which tracks new words that become part of the English language.

    The base priority is the ranking that determines the relative frequency with which a program gets processor cycles. A program given a higher frequency gets more cycles, which improves the program's performance. For example, suppose that you raise the priority of program A. The processor might give a cycle to A, one to B, another to A, one to C, another to A, and so on.

    Follow these steps to change a program's priority:

    1. Launch the program you want to work with.


    2. Open Task Manager, as described earlier in this chapter (refer to "Monitoring Performance with Task Manager").

    3. Display the Processes tab.

    4. Right-click your application's process to display its shortcut menu.

    5. Click Set Priority, and then click (from highest priority to lowest) Realtime, High, or AboveNormal.

    TIP
    After you've changed the priority of one or more programs, you might forget the values that you have assigned to each one. To help, you can view the priority for all the items in the Processes tab. Click View and then click Select Columns to display the Select Columns dialog box. Activate the Base Priority check box and click OK. This adds a Base Priority column to the Processes list.


    Tuning Windows 7's performance
      Windows 7 performance monitoring tools
      Optimizing Windows 7 startup performance for energy efficiency
      Optimizing Windows 7 application performance
      Improving Windows 7 performance by optimizing the hard disk
      Windows 7 virtual memory performance optimization

    Printed with permission from Sams Publishing. Copyright 2009. Microsoft Windows 7 Unleashed by Paul McFedries. For more information about this title and other similar books, please visit www.pearson.com.

  • Dig Deeper on MSP technology services

    MicroScope
    Security
    Storage
    Networking
    Cloud Computing
    Data Management
    Business Analytics
    Close