Mac Maintenance, Repair and Optimization
Avoid data recovery, stop your mac from freezing and getting the spiny pinwheel. Make your Mac run faster than when you got it! I tested many of the common troubleshooting techniques to find out how much faster they make your computer.
Maintain/Repair
- Update anything/everything.
- Repair your permissions.
- Restart your computer.
- Repair your disk.
- Run DiskWarrior.
- Run TechTool Pro.
- Zap your PRAM/NVRAM.
- Empty suspicious caches.
Optimize
- Optimize with Onyx.
- Run your crontabs.
- Update your prebindings.
- Run DiskWarrior.
- Defragment your hard drive/partition.
- Run Optimization and Maintenance in TechTool Pro.
Repair permissions
When: Repair permissions when things aren't allowed to happen, like opening files, launching programs or saving documents.
What: Permissions dictate who's allowed to do what. Repairing permissions resets these values to what certain applications specify at install. More...
How:
- Open the Disk Utility in /Applications/Utilities/
- Click your hard drive in the panel on the left (Default is Macintosh HD).
- If the "First Aid" tab isn't selected, select it now.
- Click "Repair Disk Permissions."
- Wait until the repair is finished. If errors occur, repeat.
Tested properties | |
---|---|
Time | 1min 2sec |
Roboficiency | + .7% |
Restart
When: It never hurts to restart your computer.
What: OS X attempts basic maintenance during startup.
How:
- Click on the apple in the very top left corner of your screen.
- Go down to "Restart..." which is third from the bottom.
- When the dialogue appears, click "restart" or just wait for the computer to restart automatically.
Tested properties | |
---|---|
Time | 30sec |
Roboficiency | + .19% |
Repair disk
When: Repair your disk when you're having startup issues or if you suspect a problem.
What: The built in Disk Utility can find and fix minor disk problems. More...
How:
- Insert the OS X install disk that came with your computer.
- Restart while holding down the C key.
- If prompted, select a language.
- Choose Disk Utility from the Utilities or Installer menu.
- Click the first aid tab.
- Select your volume from the column on the left.
- Click Repair Disk and wait.
- Restart your computer.
- Boot from a second OS.
- Open the Disk Utility found in /Applications/Utilities.
- Follow steps 5-8 above.
Tested properties | |
---|---|
Time | 54sec |
Roboficiency | + .19% |
Diskwarrior
When: If other repair techniques fail for any reason, give DiskWarrior a try.
What: DiskWarrior is a repair utility made by Alsoft.
How:
- Insert the DiskWarrior DVD.
- Restart while holding down the C key.
- Make sure the Directory tab is selected.
- Choose your volume from the menu.
- Click Rebuild.
- Wait. If it gives you the option, choose Replace.
- Click on the Files tab.
- Click start and wait.
- Restart your computer
- Boot from a second OS.
- Open Diskwarrior.
- Follow steps 3-9 above.
Tested properties | |
---|---|
Time | 52min |
Roboficiency | + 10.36% |
TechTool Pro ~ Maintenance
When: If you suspect a hardware problem, try Techtool Pro.
What: TechTool Pro is a diagnostic and repair utility made by Micromat.
How:
- Insert the TechTool Pro DVD.
- Restart while holding down the C key.
- Make sure the Tests tab at the top left is selected.
- Click Check Computer under Test Selection.
- Click Check Computer in the bottom right corner.
- Boot from a second OS.
- Open TechTool Pro.
- Follow steps 3-5 above.
Tested properties | |
---|---|
Time | ≈2hrs |
Roboficiency | + 8.79% |
PRAM/NVRAM
When: If you're having hardware problems like speaker volume, screen resolution or startup disk selection.
What: PRAM/NVRAM stores hardware information for easy access. More...
How:
- Shut down your computer.
- Turn your computer on.
- Immediately press and hold the Command-Option-R-P keys.
- Continue holding the keys as you hear the computer restart and chime two more times.
- Release the keys and allow the computer to start as normal.
Tested properties | |
---|---|
Time | ≈2min |
Roboficiency | + .85% |
Empty caches
When: If settings are screwed up or applications are behaving funny, try erasing your caches.
What: Caches store settings and other information for easy access; erasing them resets these settings. More...
How:
- Restart your computer.
- Press and hold the Shift key immediately after you enter your login information or before the system automatically logs in.
- Use a utility like Onyx or Leopard Cache Cleaner to erase all your system and user caches.
Tested properties | |
---|---|
Time | 11sec |
Roboficiency | - 3.53% |
Onyx
When: If your system is slow or broken, or every month or so.
What: Onyx can run a number of different troubleshooting and optimizations at once.
How:
- Download Onyx
- Restart your computer.
- Press and hold the Shift key immediately after you enter your login information or before the system automatically logs in.
- Open Onyx
- Hit "Continue" if prompted to check S.M.A.R.T. status.
- Hit "Continue" if prompted to verify hard drive.
- Enter your system administrator password.
- Click on the "Automation" tab.
- Check all the boxes.
- Click "Execute."
Tested properties | |
---|---|
Time | 49sec |
Roboficiency | + 2.24% |
Cron
When: If your system is not on for long periods of time and is starting to get slow.
What: Crontabs run built in maintenance routines in the background on a daily, weekly and monthly basis.More...
How:
- Download Onyx
- Restart your computer.
- Press and hold the Shift key immediately after you enter your login information or before the system automatically logs in.
- Open Onyx
- Hit "Continue" if prompted to check S.M.A.R.T. status.
- Hit "Continue" if prompted to verify hard drive.
- Enter your system administrator password.
- Click on the "Maintenance" tab.
- Click on the "Scripts" sub-tab.
- Check all the boxes.
- Click "Execute."
Tested properties | |
---|---|
Time | 43sec |
Roboficiency | + 2.9% |
Prebindings
When: If your system is slow and you haven't installed any apple software for a while.
What: Prebinding looks up and stores information that is required to run programs ahead of time.More...
How:
- Download Onyx
- Restart your computer.
- Press and hold the Shift key immediately after you enter your login information or before the system automatically logs in.
- Open Onyx
- Hit "Continue" if prompted to check S.M.A.R.T. status.
- Hit "Continue" if prompted to verify hard drive.
- Enter your system administrator password.
- Click on the "Maintenance" tab.
- Click on the "Rebuild" sub-tab.
- Check the "dyld's shared cache" box.
- Click "Execute."
Tested properties | |
---|---|
Time | 55sec |
Roboficiency | + 7.62% |
Defragment
When: After moving lots of files large than 20MB or every couple months.
What: Defragmentation puts files together and arranges them in optimal order.More...
How:
- Buy Drive Genius or iDefrag and follow their instructions.
- Insert the OS X install disk that came with your computer.
- Restart while holding down the C key.
- If prompted, select a language.
- Choose "Disk Utility" from the Utilities or Installer menu.
- Click the "Restore" tab.
- Drag your main hard drive/partition from the left to the "Source" field.
- Drag your second hard drive/partition from the left to the "Destination" field.
- Click "Restore" and wait.
- Choose "Startup Disk" from the Utilities or Installer menu.
- Choose your second hard drive/partition to start from.
- Restart your computer.
Tested properties | |
---|---|
Time | 2.5hrs |
Roboficiency | + 11.52% |
TechTool Pro ~ Optimize
When: After moving lots of files large than 20MB or every couple months.
What: Completely reconstructs critical data structures, optimizing them and improving overall system performance. More...
How:
- Insert the TechTool Pro DVD.
- Restart while holding down the C key.
- Click "Tools" section in the top left corner of the window.
- Click "Volume Optimization" in the bottom left corner of the window.
- Select your hard drive from the menu to the right.
- Click "Run Volume Optimization" and wait.
- Restart your computer and enjoy.
- Boot from a second OS.
- Open TechTool Pro.
- Follow steps 3-6 above.
Tested properties | |
---|---|
Time | 2min 45sec |
Roboficiency | + 13.01% |
How to follow along at home:
If you want to: Defragment your hard drive, Run DiskWarrior, Repair with the disk utility, or run TechTool Pro; you will need to 'unmount' your hard drive in the process.
In order to unmount your hard drive(or partition) you must not be booted from it and you must not be running anything from it.
You have three options.
- Get a second(internal or external) hard drive.
- Partition the hard drive you already have.
- Burn yourself a bootable CD/DVD.
Booting from a hard drive is better than booting from a DVD because it:
- Starts faster.
- Runs quicker.
- Lets you install an OS.
Second Hard Drive or Partition
A second hard drive is better than two partitions because if there is a problem with the hard drive itself it will be easier to diagnose, repair and recover.If your second hard drive is large enough, simply install OS X on it, then install all your maintenance, recovery, repair and optimization tools. If you have any extra space left, check out my partitioning article for ideas on how to use the additional space.
If you want to use a second partition instead of HD you will either need to use an 'on the fly' partitioner like DriveGenius or start out with a hard drive you don't mind erasing.
If your second hard drive or partition is very small--like a flash drive--there is a bootable image which you can copy to any media with the disk utility.
Bootabe CD/DVD
You could burn a bootable CD/DVD for every program you want to run. You would use your OS install disc for the disc utility. You can get the bootable version of DiskWarrior and TechTool Pro. If you want to run iDefrag you will need to download Coriolis CDMaker.You could try to burn all of them to one master bootable CD/DVD. This is great in theory but a little harder in practice.
The easiest way is to just download and use my bootable image.
The third option is to download TechTool ProToGo or DasBoot. These programs will allow you to create a bootable DVD that will work with your platform.
The downside is that a lot of tools don't work with it. DiskWarrior and TechTool Pro do, however iDefrag doesn't last I checked. The other downside is that believe it or not, not everyone has a DVD drive these days.
The final option is to find and download Leopard 911(by the one-byte-wonder).
Results/Discussion
There is really more than one matter at hand here. There are the things that you are supposed to do regularly/things that will speed up your computer, and the things that you should do if you have a problem. I will do my best to take them one at a time. I should also point out that when I looked at the different areas of my computer that were sped up in these roboficiencys, it was all of them except OpenGL. Because everything was improved I think it makes sense to talk about saving you overall computer time as opposed to just time rendering a movie or writing things to disk.
Maintenance/Optimization:
There are plenty of people who swear by doing the things I tried but there are just as many who will tell you that they are a waste of time. After looking at the results I am going to have to agree with the former. If you look at how long it took to do some of these things and how much faster they make your system, you can tell that doing them occasionally is beneficial. The real question is, how beneficial and how often should you do them?That really boils down to how much you use your computer and what you are doing with it. If you are the type of person that is always learning a new programming language, seeing what things can do, has to try every program just to see it work, and does a lot of Video/Audio/CAD stuff, you will probably want to do this on a regular basis. If you are the type of person who writes papers, checks their email, talks to friends and listens to music, you might not need to do this as often. My tests may display much higher results than yours do as I tend to fall into the first category.
Regardless of which group you fall into, how much you use your computer is a big part of it too. Lets look at three examples: TTP Maintenance, iDefrag and Crontabs.
The TTP Maintenance increased the efficiency of my computer by 13.01% and only took three minutes to complete if you take into account a restart. That 13.01% increase saves me 7.81secs for every minute I spend on the computer. That means that after using my computer for about 23min I have already made up for the time it took to run maintenance. It would take me almost 22hrs. of computer use to make up for defragging with iDefrag! It will only take 25mins. to make up for running cron tasks. Does that mean that you should run your crontabs every 25mins? Of course not. These problems build up over time, making the effects of running one of these things greater. The more you do them, the less they will do.
There are also some key differences between the things you do. TTP Maintenance took only 3min, but it was three minutes I couldn't use my computer. Running crontabs on the other hand only took 43sec of which I could be using my computer. These key differences appear in repairing your permissions. Yes, you might not fix your problem but its only 1min that you can even keep using your computer during; so really, what's the harm?
It is also important to realize that these things keep your computer optimized even after you have used your computer to make them worth while. While it will only take you 25min to pay off running crontabs, it wont do as much for you in the future. For instance, lets say that you decide to run your crontabs and defragment your hard drive in succession. After that you start using your computer. After 25mins running the crontabs has paid off but you are regretting ever running the defrag. After 22hrs the defrag has paid off but you are still happy with your decision to run the crontabs because they have saved you 38min now since you have started. However, a little more than 5hrs. after that(29hrs since you started), you decide that defragging was a good after all. At this point both defragging and crontabs have saved you 50mins! The difference between them is that at from now on defragging will save you 4 times as much time. Bare in mind that all those numbers are purely theoretical. The fact is, while you are saving that time you are saving less and less time every hour. After almost 30hrs of computer use your hard drive will be moderately fragmented. If I knew the rate of decline for all the roboficincies I could factor those into the equation although I'm sure that they decline at different rates. Of course, that would also depend on what you do on your computer. If you only listened to music 30hrs. straight, chances are that your hard drive didn't get very fragmented. If you used that time to edit your movie you might have completely refragmented your drive.
I could keep my setup the way it is and every day backup and run the optimization and see how effective it is after x-number of days. That would only really provide information for me, and the amount of time it would take me to do that would by far counteract the benefits of the information it would yield.
Repair:
Unlike optimizing, none of these tricks were meant to speed up your computer. Other than erasing your caches which proved detrimental to speed(no surprise there) all of the benchmarks were within the margin of error, although it's probably not coincidental that they were all slightly faster. The main thing to look at in these tests is not how much faster they made your computer, but how long they took to do. Repairing my permissions only took about a minute of usable computer time. Chances are repairing your permissions isn't going to fix your problem; but it has fixed some of mine in the past. I would say that you should give it a try. You should also restart your computer and verify your disk. If that doesn't work I would turn to DiskWarrior... unless it is a hardware problem, then reset your PRAM/NVRAM or run TTP Hardware tests. You could also empty your caches. Because that decreases your roboficiency I would try to remove only ones that you think might be causing the problem.Summery/Conclusion
In short, if you computer is acting weird or you know there is a problem, here are some things you should try and the order you should try them in:
- Update anything/everything
- Repair your permissions
- Restart your computer
- Repair your disk with the disk utility
- Run DiskWarrior
- Run TechTool Pro
- Zap your PRAM/NVRAM
- Empty suspicious caches
If you want to speed up your computer, here is what you should do and a suggested order:
- Optimize with Onyx
- Run your crontabs
- Update your prebindings
- Run DiskWarrior
- Defragment your hard drive/partition
- Run Optimization and Maintenance in TechTool Pro
Repair Summery
The most important thing when fixing a problem is to think. Think what you may have done to cause it or what might be done to fix it. Having more than one user on your computer is a good idea. If the problem persists on more than one user you know it is a larger system issue. If it is account isolated you know it is a smaller problem. Diskwarrior tends to help the larger system issues. It is also nice to have more than one partition/hard drive. If a problem persists over another OS installation, check your hardware. It is also very helpful to look online. Rarely do problems only happen to you. There is a lot of useful information on the internet; go get it!Optimization Summery
If you use your computer for a wider variety of things or a substantial amount of time, running basic maintenance/optimization will pay off. If you are programming and video editing, run them more frequently than if you just talk online and listen to music. The frequency that you run these things is up to you. If your computer is always off when the crontabs are scheduled to run then maybe you should run them manually once and a while. If you don't restart or update things on your computer often maybe you should update your prebindings every now and then. I could never really tell you not to run diskwarrior as it will fix and optimize your hard drive in ways you might not have even dreamed of. It turned out that while defragging does speed you up it also takes a long time to do and may not be worth while for all people. Maintenance in TechTool Pro was about the best thing you could do and I would recommend doing it every so often because it is nice to have TechTool Pro look at you hardware so you can catch a serious problem before it starts anyway.Method
I began with a blank 250GB internal SATA hard drive. The first thing I did was partition it exactly in half. I installed an operating system and all my software on the first half. I used the first half for a good while until it really started to slow down and get both minor and major problems. After that I booted up from another hard drive and did a full copy with the disk utility from the first partition to the second partition on my new hard drive. From this point on I didn't touch the first partition on that hard drive. I then restarted my computer into the second partition on the new hard drive holding down shift while logging in to prevent login items from starting. I then ran all of my benchmarking tools and recorded the results. I would then try one of the things listed above recording how long it took to run. Finally, I would run all the benchmarks again to see what it did for my computer(allowing a restart before if required). Before you get on my case about that restart effecting the final benchmarks, I did a dry run restart to find its effects.After that I would boot back into my old hard drive and start the process over. Of course I took the difference between the original and the backup into account.
Here is some useful info before I continue:
Benchmarkers
Haxial BenchmarkCinebench
Cocoabench
Disk Speed Bench X
Speed Tools
Xbench
Only some of the utilities provided easy to analyze useful data. Of course I did multiple tests with the ones I used without doing a thing to my system to find their margin of error. Here are the ones I used and their margins of error:
Haxial: .32%
Cinebench: .47%
Cocoabench: 1.17%
Xbench: 3.04%
Finally, here are the specs for my machine in case you want to verify my results:
Xbench Version 1.3
System Version 10.4.8 (8L127)
Physical RAM 2560 MB
Model PowerMac7,2
Processor PowerPC 970x2 @ 2.00 GHz
L1 Cache 64K (instruction), 32K (data)
L2 Cache 512K @ 2.00 GHz
Bus Frequency 1 GHz
Video Card ATY,RV350
Drive Type WDC WD2500KS-00MJB0
It is also important to keep in mind that everything I did that involved unmounting the target disk I did from another hard drive not from a CD/DVD. This greatly reduces the time it takes to do these things and allows me to continue using my computer in the process. Other than that, the reason I did it this was; that is how I would do it in real life. I have found that it makes life SO much easier if you have a repair drive with all your tools installed on it. This makes fixing/optimizing your computer so much quicker and easier. It also helps in diagnosing system wide problems. It is for that reason that I didn't use CD/DVD's and highly recommend that everyone seriously considers getting a second hard drive or making a repair partition on your current one.