PC Hacks 100 Industrial-Strength Tips and Tools Free Open Book

PC Hacks 100 Industrial-Strength Tips and Tools

Previous Section  < Day Day Up >  Next Section

Hack 66 Speed Up Windows with VCACHE

figs/beginner.gif figs/hack66.gif

If you absolutely must stick with Windows 9x or Me the least you can do is give your system this free performance-boosting tweak to your Windows disk cache.

The Windows operating system creates and maintains its own read-ahead disk-caching service to help speed things up, but Windows itself does not give you any direct control over VCACHE. Instead, you have to dig into the C:\WINDOWS\SYSTEM.INI file with a text editor to set the caching service to your liking.

When setting a value for disk caching, you have to balance the amount of RAM to be used for programs and data with the RAM set aside for disk caching. If a lot of RAM is assigned to disk caching, that leaves less for programs and data and Windows will use the swapfile more, which will slow things down. If you assign too little RAM for disk caching, disk operations may be a bit slower but Windows may use the swapfile less, thus keeping performance up a bit.

There is also another balancing act going on here: do you let Windows waste time looking in the cache for data that is not there, which can happen if the cache is too large, or give it less space to look through so it can get directly to the disk drive as quickly as possible? The best approach is to have just enough memory allocated for some caching benefit and not so much that we cheat our programs and Windows.

Fortunately most disk drives have between 256 KB and 8 MB of cache dedicated to data caching to and from the disk drive interface. So, as long as the IDE, SCSI, or SATA interface can keep up, the disk drive will not be a significant data bottleneck (beyond being hundreds of times slower than CPU and I/O bus speeds). With that in mind, you should not have to assign a lot of RAM to Windows disk caching.

Windows 98 has a known problem with VCACHE consuming all or nearly all available memory on systems with more than 512 MB of RAM, causing out-of-memory errors or crashes. Setting the parameters for VCACHE manually is the official fix for this problem.


To keep Windows from stealing too much RAM for VCACHE, you can add two lines to the SYSTEM.INI file to nail the disk caching down, following these steps:

  1. Using Notepad or DOS EDIT, open the C:\WINDOWS\SYSTEM.INI file, locate the section labeled [vcache], and insert two new lines:

    [vcache]
    
    minfilecache=256
    
    maxfilecache=256

  2. Save the file, close the editor, and then restart Windows for the changes to take effect.

I chose to give the cache only 256 KB of RAM because I've found that more is not always better. If you have a lot of RAM in your system, you may certainly use 512 or 1,024 KB, but you may not see a significant performance boost because of all of the overhead of Windows and drivers between the disk and the CPU.

Microsoft recommends that VCACHE not be set over 40 MB (40,000), which is a significantly high amount of RAM to leave for possible disk caching.

At most, matching the amount of cache on your hard drive—256 KB to 8 MB—may be the best balance between RAM consumption and drive performance.


    Previous Section  < Day Day Up >  Next Section
    Index: [SYMBOL][A][B][C][D][E][F][G][H][I][J][L][M][N][O][P][Q][R][S][T][U][V][W][X][Z]


         Main Menu
    PC Hacks
    Table of Contents
    Copyright
    Credits
    Preface
    Chapter 1. Basic System Board Hacks
    Chapter 2. Basic System Board Setup
    Chapter 3. CPU Hacks
    Chapter 4. Memory Hacks
    Chapter 5. Disk Hacks
    Chapter 6. Disk Drive Performance Hacks
    Introduction: Hacks #58-67
    Hack 58 Choose the Fastest Hard Drive
    Hack 59 Use an 80-Wire Cable
    Hack 60 Upgrade Your IDE Interface
    Hack 61 Kick It Up a Notch with Serial ATA
    Hack 62 Get the Fastest IDE Driver for Intel Chipsets
    Hack 63 Get the Fastest IDE Driver for Via Chipsets
    Hack 64 Speed It Up with RAID
    Hack 65 Speed Up DOS with SMARTDRV
    Hack 66 Speed Up Windows with VCACHE
    Hack 67 Linux's Drive Performance Booster
    Chapter 7. Video Hacks
    Chapter 8. I/O Device Hacks
    Chapter 9. Boot-Up Hacks
    Chapter 10. Configuring a New PC
    Colophon
    Index


    More Books
    PHP Hacks
    Processing Xml With Java - A Guide To Sax, Dom, Jdom, Jaxp, And Trax
    The Koran (Holy Qur'an)
    Macromedia Flash 8 Bible
    Search Engine Optimization for Dummies
    YouTube Traffic
    PHP 5 for Dummies
    Harry Potter and The Chamber of Secrets
    Harry Potter and the Sorcerer's Stone
    The Pilgrim's Progress
    Wireless Hacks
    Flash Hacks. 100 Industrial-Strength Tips & Tools
    PayPal Hacks. 100 Industrial-Strength Tips and Tools
    Amazon Hacks
    Pdf Hacks
    The Da Vinci Code
    Google Hacks
    The Holy Bible
    Windows XP For Dummies
    Harry Potter and the Half-Blood Prince
    Seo Book
    Upgrading and Repairing Networks
    Macromedia Dreamweaver 8 UNLEASHED
    Windows XP Annoyances
    Windows XP Hacks
    Microsoft Windows XP Power Toolkit
    Teach Yourself MS Office In 24Hours
    iPod & iTunes Missing Manual
    PC Hacks 100 Industrial-Strength Tips and Tools
    PC Overclocking, Optimization, and Tuning - 2th Edition
    PC Hardware In A Nutshell 3rd Edition
    PC Hardware in a Nutshell, 2nd Edition
    Upgrading and Repairing PCs
    Google for Dummies
    MySQL Cookbook
    Teach Yourself Macromedia Flash 8 In 24 Hours
    PHP CookBook
    Sams Teach Yourself JavaScript in 24 Hours
    PHP5 Manual
    Free Games Paper Airplanes
    500 Juegos Gratis 500 Giochi Gratis 500 Jeux Gratuits 500 Jogos Gratis 500 Kostenlose Spiele