Memory Tweaks
Not so long ago, having 512MB of Random access memory on your Personal computer was considered a luxurious excess. Today, it’s the bare minimum. Running many programs at once, processing graphics and video, or caching heaps of Web pages–each devours Random access memory.
Insufficient or improperly configured memory can hinder a Pc’s performance and cause intermittent, hard-to-resolve error messages, or even system crashes. The best way to avoid this, of course, is to add more memory to your system.
Random access memory prices fluctuate rapidly, but they have trended down in recent years. I recommend upgrading to at least 1 GB.
But before you add memory, make the most of your existing Random access memory. Windows operating system has several settings for optimizing memory performance, as well as tools for finding and fixing memory-related problems.
When your Personal computer runs out of space in standard memory (its Random access memory chips), it stores overflow data in virtual memory, which is simply a large file–called a swap file–that’s located on your hard disk. Data is accessed from a disk slower than it is accessed from standard Random access memory, so it pays to optimize your swap file’s performance.
To view your swap file settings, right click the System icon on your desktop, select Properties, and choose Virtual Memory under the Performance tab.
Set Your Swap File
By default, Windows automatically adjusts your swap file’s size to meet its needs. A nearly full hard disk squeezes your swap file, and this can lead to sluggish performance or sometimes a system crash. So always have at least 100MB of disk space put aside for your swap file.
To set the size of the swap file manually, choose Let me specify my own virtual memory settings in the Virtual Memory dialog box. Select a minimum size and a maximum size, or enter the same number in both fields to fix the file at a constant size. Freezing the swap file’s size may increase system performance because Windows no longer has to adjust the file size, but it also increases your Pc’s risk of running out of memory.
If you have more than one hard disk, place the swap file on the one with the fastest access time. Do so by changing the value in the ‘Hard disk’ field of the Virtual Memory dialog box and then rebooting.
Defragmenting your hard disk can improve its performance as well. Over time, files get stored on a drive in pieces that may become scattered around the hard disk. A defragmentation utility rearranges the data on the disk to store each file in a single, contiguous block. Applications can access a file that has its pieces stored in close physical proximity on your drive much more quickly than they can access a file with scattered pieces.
To run Windows operating system’ Disk Defragmenter utility, select Start, Accessories, System Tools. Unfortunately, that won’t defragment the swap file because Windows considers it fixed data that can’t be moved. To overcome this hindrance, make the swap file as small as possible before you defragment by restarting your system and closing all apps that launch on start-up.
If you have enough physical Random access memory installed, you may be able to remove the whole swap file temporarily, defragment the disk, and then replace the swap file. Make sure your system has sufficient Random access memory to run Disk Defragmenter, however. If your system runs out of Random access memory and has no swap file, it may impact. See “Mind Your Memory” below for instructions on how to check your available memory.
To remove the file, check Disable virtual memory in the Virtual Memory dialog box and reboot. To reenable it, uncheck Disable virtual memory and reboot.
Mind Your Memory
Worried about running out of memory? To avoid system crashes, keep an eye on how much free memory you have left.
Windows’ System Monitor utility shows the level of unused memory Windows operating system has at any given time, along with several other useful performance statistics. To run the utility, choose Start, Programs, Accessories, System Tools, System Monitor (or install it from your Windows operating system CD via the Add/Remove Programs applet in Control Panel). System Monitor displays such real-time statistics as swap file in use, swap file size, and unused physical memory
Select Edit, Add Item, Memory Manager to choose the memory statistics you want System Monitor to display. Unused physical memory, swap file size, and swap file in use can help you estimate which programs have the biggest appetite for Ram. But there’s a way to get a more accurate measure of how much Ram a given program requires. First, determine the amount of memory all your running programs are using by adding the values for ‘Other memory’ and ‘Swappable memory’ in System Monitor. Then subtract the value of ‘Disk cache’. Now close a program and repeat the same steps. The difference is the amount of Random access memory used by the program you just closed.
Windows operating system’ System Resource Monitor is another excellent diagnostic tool for keeping track of your Pc’s memory usage. ‘System resources’ is a 128KB area of memory that current versions of Windows use for compatibility with older apps; if it runs out, Windows operating system displays an ‘out of memory’ error message, even though you may have plenty of free physical or virtual memory on hand. Resource Monitor places a Resource Meter icon in your system tray. Place your mouse over the icon to see the percentage of Windows’ free resources that are available for use, or double-click it to see the amount of available memory as a larger graphic.
If your resources drop below 25 percent, be wary about opening new files and applications. If they drop below 10 %, you’ll see a low memory warning on your screen. At that point, you’re heading toward a system crash. Save your work immediately and close all unnecessary applications and files.
Check for Memory Leaks
Having too many applications or big files open isn’t the only reason for low memory. Sometimes poorly written software programs don’t release blocks of memory when they’re finished using them. Such ‘memory leaks’ add up quickly and can tie up your Ram and/or your system resources.
You can spot these leaks by monitoring Ram use with the System Monitor and Resource Monitor. Watch for programs that don’t return memory to their original levels when you close them. Also, keep an eye on the ‘Threads’ listing in System Monitor. (To view it, choose Edit, Add Item, Kernel, Threads.) Software operations are broken into threads that your Personal computer’s hardware performs. If the number of threads continually increases–especially over the course of minimal computing activity–you’ve probably sprung a leak.
Unfortunately, leaky software isn’t uncommon. If you suspect that a program is leaking memory, check the vendor’s Web site for a fix.
You can also recover Random access memory lost to leaks and unused DLLs with a handy utility called RAMrocket.
Notebook users are frequently on the go and in a hurry. If you use a Personal computer Card to attach a device to your laptop, don’t remove it too quickly when quitting; Windows may still be downloading e-mail to the device, for example, or it may be otherwise using the card. To remove such devices safely, open the Pc Card’s Socket Status dialog box by clicking the Personal computer Card icon in the system tray. Select the Personal computer Card that you want to remove, and click Stop. In a few seconds, Windows operating system will tell you that it’s safe to proceed.