10 Essential Tasks to Keep Leopard Purring
3. Don't Overfill Your Hard Drive
Today's Macs serve as a hub for all kinds of digital media content, whether you've produced it yourself, purchased it from the iTunes Store, or ripped it from your CD and DVD collection. All of those videos, photos and songs can fill a Mac's hard drive pretty quickly. Which brings us to another way to keep Leopard running smoothly -- don't overfill a Mac's hard drive.
Like other operating systems, Leopard uses the hard drive to store not only your data, but also various temporary and cache files needed to support the data and run applications properly. It also relies on the hard drive for virtual memory, in which data not in active use gets swapped out of RAM to the hard drive to accommodate active applications. Leopard invisibly performs these functions without any intervention from the user.
However, in order for this to happen, there has to be free space on the hard drive for Leopard to use. If the hard drive is too full, Leopard has to rely on the start-up drive for these purposes, which means the Mac's performance will seriously degrade. In some cases, you may even notice some erratic behavior and application crashes if the hard drive is almost completely full.
That's why being aware of the free space on your hard drive is important in keeping your Mac functioning at its best. A good rule of thumb is to make sure that you have at least 10% of your drive free at any given time. You can see a drive's free space at the bottom of any Finder window for a folder that resides on the drive (or for the drive itself).
If your drive begins to get too full, you have a few options. The simplest solution is to buy an external hard drive. With a laptop, you'll want to move larger or infrequently used files to the external drive; with a desktop system you can simply make it a second hard drive for regular use. You can also replace the internal hard drive of either a desktop or portable Mac with a larger drive.
Finally, you could try to trim the amount of data on your current drive. Disk Inventory X (free) and id-design's WhatSize (shareware, $13) are two helpful tools for discovering just what files are eating up hard drive space and which can be easily moved to a secondary drive or potentially deleted altogether. Prosoft's $99 Drive Genius, which offers several hard drive tools in a single application, now includes a DriveSlim feature that can search for large files, files that have not been accessed recently and duplicate files.
Note: This same rule applies to the embedded version of Mac OS X that powers both the iPhone and the iPod Touch. If you notice erratic behavior on those devices and they are filled to bursting, removing some content may help (though there could be other causes as well).
4. Delete Cache Files
Many applications rely on cache files to improve performance. The most obvious example is Web browsers, which cache images and other content from Web servers to speed up repeated access to the same files. Leopard itself maintains a series of cache files for improving system performance when using a number of features.
Cache files can present problems if they become corrupted or damaged. The operating system or an application that relies on the cached data may behave erratically or crash because it can't properly read the data in the file -- leading to potentially more corruption if an app crashes while it's writing to the file.
Unlike files in the Unix /tmp directory, cache files aren't cleared when a Mac is rebooted, which means that even when they aren't corrupted, cache files can sit around taking up space on your hard drive long after a given application is deleted. They can also retain settings and private information that you may wish to get rid of. As such, pruning cache files is a prudent choice, particularly if you notice that an application isn't as stable as it used to be.
Cache files exist for both the system (in the /Library/Caches folder at the root level of a start-up drive) and for each user (in the same location inside each user's home folder). Since cache files are not used to store application preferences or general settings, you can safely delete them without losing any data, and they will be regenerated as needed.