![]() |
Fine Tuning Windows 98 |
Although Windows 98, when running on an identical setup as Windows 95, outperformes the latter, there are still a few "tweaks" to improve the performance of Windows 98.
Although todays hard disk drives are fast, you might want to limit the use of the Virtual Memory (swap file). One easy way to achieve this is to limit the amount of memory Windows allocates to the Disk cache (replacement for Windows 3.* smartdrive).
You can check on the amount of memory used by Windows for the Disk cache by using System Monitor. If you haven't installed it, go to Control Panel (Start > Settings > Control Panel) and choose Add/Remove Programs. Select the Windows Setup tab, select System Tools from the Components window and press Details. Scroll down to the entry for System Monitor and click OK. This will place an entry for System Monitor in your Programs > Accessories > System Tools.
To view your Disk cache size:
1.Start System Monitor (select Start > Programs > Accessories > System Tools > System Monitor)
2.To add an item to be displayed, select View > Add Item
3.The entries for the Disk Cache size are found under the Memory Manager category (Disk cache size, Maximum disk cache size, Mid disk cache size, Minimum disk cache size)
4.You can also find the items to monitor your Swapfile here
On a typical machine (32Mb RAM installed), with only Windows 98 installed, the Disk cache size (right after a fresh reboot, with nothing else running) was reported at 12Mb, while the Maximum disk cache size could go up to 27Mb. If you realize that many Servers run with 4Mb or 8Mb Disk cache, you can see that this is a waste of resources.
To limit the amount of memory used by Windows for the Disk cache:
1.Open System.ini (select Start > Run and in the Open: box type sysedit)
2.Add the following two lines to the [vcache] section (add the section if it's not there):
MinFileCache=1024
MaxFileCache=8192
NOTE: With 64mg ram I use this setting:
[vcache]
MaxFileCache=12288
Note: Some users only use a maximum setting, others a maximum and minimum
setting. Just experiment and find what's best in your situation.
My System.ini is set at:
[Vcache]
minfilecache=10240
maxfilecache=10240
chunksize=256
With these settings, my resources must come down below 11% before my
system even begins to slow down.
Note: While this setting works for me on my system, you must think
of you system as an individual just like you. This is because your Windows98
system is intuitive, and will learn the way you work and adapt to YOU!
In Conclusion, you must experiment with these settings!
Note on Vcache Basics!
The disk cache system in Windows 98. VCACHE replaces the Smartdrive
system used in older versions of Windows. Whereas SmartDrive is a 16-bit
driver, VCACHE is a 32-bit driver. VCACHE can dynamically change the size
of the disk cache depending on available disk space and application requirements.
See
Windows
95 and the Swap file controversy
and
Adrian Wong's "VCACHE"; The Final Word
and
and James A. Eshelman's
"Dedicated
Swap File Partition"
"Temporary
Files Partition"
The MinFileCache (=Minimum File Cache) setting prevents Windows from shrinking the cache below 1024Kb. As a rule of thumb, use 25% of your RAM for the MaxFileCache. In general, most users say that a MaxFileCache (=Maximum File Cache setting) of up to 9Mb works best for them, even if they have more RAM available. Just experiment with these settings to find what works best for you.
The settings explained above are valid if you use FAT16 on your hard drives. When using FAT32, we advise you to leave the vcache managed by Windows. The reason for this is that with FAT32 in combination with an "aligned" program, Windows 98 can run applications from the disk cache itself. Unfortunately the only "aligned" programs so far are the MS Office programs so until more authors align their programs on 4K page boundaries, the over whelming majority of programs will still be causing two copies of an app to be in RAM until the disk cache is re-used. This would mean that for the time being the Windows 95 guidelines for assigning VCACHE size (as above) are still good guidelines to follow for Windows 98. If you don't use FAT32, then this is a non-issue since with FAT16 the alignment process does not work and Windows 98 can never run an application from the cache.
Optimizing the Swap File
The best way you can ensure high swap file performance is to make sure that the disk containing the swap file has enough free space so that the swap file size can shrink and grow as needed.
We do not suggest setting a minimum/maximum swap file size. Windows 98 does a much better job managing the swap file then Windows 95.
If you have multiple drives, the swap file should be placed on the drive with the fastest performance, unless that disk is overused.
If you put the swap file on a dedicated partition, use the largest possible cluster size (32k).
If you have 24Mb or more RAM, you can optimize performance by selecting Network server as the typical role of your computer:
Change the Typical role of your computer
1.Select Start > Settings > Control Panel
2.Open System, select the Performance tab, click on File System under the Advanced Settings header
3.On the Hard Disk Tab, select Network Server as Typical role of this computer.
The setting you use controls the size of various internal data structures used by the 32-bit file access driver (VFAT).
When you use the Mobile Or Docking System setting, VFAT allocates memory to record the 16 most recently accessed folders and the 337 most recently accessed files. This consumes approximately 4Kb of memory.
When you use the Desktop Computer setting, VFAT allocates memory to record the 32 most recently accessed folders and the 677 most recently accessed files. This consumes approximately 8Kb of memory.
When you use the Network Server setting, VFAT allocates memory to record the 64 most recently accessed folders and the 2729 most recently accessed files. This consumes approximately 16Kb of memory.
Optimizing I/O Transfers by Using Direct Memory Access
The advantage of using direct memory access (DMA) with integrated device electronics (IDE) CD-ROM and disk drives is that it lowers CPU usage during I/O transfers.
To Bus Master your system and determine whether your drive supports DMA:
1.Open System Properties in Control Panel (select Start > Settings > Control Panel)
2.Select the Device Managertab
3.Click the + sign next to the Disk drives entry
4.Select the drive you want to enable for DMA and click Properties
5.On the Settings tab, there should be a DMA check box, if this box is unchecked, place a checkmark. If there is no check box (or it is grayed out), your motherboard chipset does not support the bus master interface. If the check box is not checked after you restart your system, your hard disk probably has been automatically disabled again because the hard disk may not support a multiple-word DMA protocol. For more information see Microsoft's Knowledge Base Article No. Q159560.
You can use the same procedure to Bus Master your CD-ROM Drive.
NOTE: You do not need to install Bus Master drivers, they are already build in the Windows 98 system.
See this page on information how to test your system for DMA capabilities.
Optimizing DVD File System Performance
Digital Video Discs (DVDs) uses the main file system cache (VCACHE), and there are no performance settings for end users to change.
Optimizing Removable Disk Drive Performance
Windows 98 gives you the option to use write-behind caching to improve the performance of removable disk drives, such as the Iomega ZIP or JAZ drive.
To set write-behind caching for removable disk drives:
1.Open System from Control Panel, select the Performance tab, select File System, and then select the Removable Disk tab
2.Select the Enable write-behind caching on all removable disk drives check box and click OK
If this causes a problem with disk operations, clear the Enable write-behind caching on all removable disk drives check box.
Networking
Run only one network client, if possible. For example, configuring a
computer with both the Client for Microsoft Networks and Microsoft Client
for NetWare Networks requires more memory than running a single client.
Run a single network protocol. For example, running Microsoft TCP/IP, NetBEUI,
and the IPX/SPX-compatible protocol requires a larger working set than
running a single protocol. Run the fewest possible network services. Running
File and Printer Sharing services, the Microsoft SNMP agent, and so on,
all require memory and increase the working set of Windows 98.
Network Settings can be changed by accessing Control Panel > Network.
MS Office
If you have MS Office installed, you can increase the performance of your computer by removing Find Fast from your StartUp folder. Normally Find Fast will from time to time index the files on your drive(s), to speed-up opening them in MS-Office. We personally don't care if we have to wait the additional mili-seconds when opening a document in Word, at least we know what we're waiting for!
To reclaim the space used by the find-fast index, go to Control Panel,
select Find Fast, select your hard drive(s) and from the Index menu, choose
Delete Index. When you've deleted your Index, choose Close and Stop.