Yes; Running System Maintenance Routines Really Can Help - OS X Odyssey 857

200859 Some folks dismiss running OS X system maintenance routines "routinely," most conveniently executed with a GUI maintenance utility like OnyX, Mac Pilot, Cocktail, MainMenu, IceClean, or a raft of others, as a waste of time. The assertion is that the system is very robust, and configured to take care of itself.

However, I'm a believer. For one thing, the cron maintenance scripts are clean up script intended to be run by the cron Unix utility on in order to maintain activity logs, update databases, and throw away files that need to be cleared out and/or updated from time to time. This works as it should on Unix machines that are left running 24/7, since the cron utility is programmed to run the cleanup scripts at times when the machines are theoretically at least likely to be in use. There are three scripts, designated "daily," "weekly," and "monthly. " In OS X, the daily script is scheduled to run every morning at 3:15 a.m.; the weekly script at 4:30 a.m. on Saturday mornings; and the monthly script at 5:30 a.m. on the first day of each month.

Like most Mac users, I don't leave my computer on 24/7. In fact, other than the very occasional instance of me doing in overnight software download, my computers are never on at the scheduled times, I put them to sleep or shut them off overnight, so the cron scripts never get run; and files don't get deleted; log files grow; and databases are not updated. Happily, you can manually trigger the cron scripts to run at any time you like using one of the freeware/shareware utilities mentioned above or a host of others. If you don't leave your Mac on all night, running the scirpts manually once every week or so is a good idea.

Then there's repairing permissions. While it's hard to imagine anyone arguing that running the cron scripts is useless on the majority of computers that don't stay on all the time, permissions repair is more controversial. John Gruber over at Daring Fireball calls it "voodoo."

Mac OS X incorporates a subsystem based on a UNIX-style operating system that uses permissions in the file system. Every file and folder on your hard disk has an associated set of permissions that determines who can read, write to, or execute it. For a thorough definition and discussion of OS X permissions, see this Apple Knowledge Base article:
http://docs.info.apple.com/article.html?artnum=106712

When you use Apple's Disk Utility or another maintenance utility to verify or repair disk permissions, it reviews each of the .bom files in /Library/Receipts/ and compares its list to the actual permissions on each file listed. If the permissions differ, Disk Utility reports the difference (and corrects them if you use the Repair feature).

The X-Lab notes that "there is considerable debate about performing Repair Permissions as part of regular maintenance. Our advice is that it is a good prophylactic step after installing third-party software that employs its own installer. This is primarily due to the fact that some poorly-written, third-party installers have been known to change permissions on System-related folders, then neglect to set them back, causing problems after the installation.

"Repairing permissions has gained the undeserved status of a 'magic incantation' that can fix anything, and some recommend it as part of regular maintenance. While it can be a useful troubleshooting step, we do not regard it as part of regular maintenance: it will not hurt anything, it merely wastes time when run unnecessarily. However, it is still a good idea to Repair Permissions after installing third-party software....."

Also see X-Labs' "Side effects of System cache cleaning":
http://www.thexlab.com/faqs/syscachecleaneffects.html

Personally, since it's so easy to do with OnyX, which of the dozen or or OS X system maintenance utilities out is the one I use most often, I usually just run Repair Permissions along with the cron scripts and some cache dumps using the configurable do-all Automator pane.

While this maintenance routine routine is most often an act of faith, with no really tangible evidence to indicate that it's doing anything, sometimes it does fix obvious problems.

For example, last weekend I got around to updating the second OS X system on my hard drive (I keep two systems installed on separate partitions, which allows me to, among other things, check out system updates without burning my bridges to the version I know is reliable) to OS 10.4.8. That proceeded without drama, but I was slightly pressed for time and decided to skip doing my usual OnyX maintenance run before running the OS 10.4.8 Combo updater. False economy of time.

The system installed and booted just fine, but I discovered that the Finder's "Find" function was not working (nothing would happen), and the little text search utility SpeedSearch would find document titles but not display contents summaries. Bummer. The same sort of thing once happened on my Pismo PowerBook running OS 10.4.4.

I figured I might have to run the system updater again, but decided to give OnyX a shot first. I ran the cron scripts, Repair Permissions, and some selected cache dumps, but omitted optimizing the system since the update installer had just done that. When I rebooted after OnyX had done its thing, both Find and SpeedSearch had been restored to working normally.

OnyX has a nice interface, is updated frequently, performs well, and is freeware. The latest version of OnyX is 1.7.8, which is OS 10.4.2 and up Tiger-only, but versions are still available for Mac OS X 10.3 Panther (OnyX version 1.5.3) and Mac OS X 10.1.5 Puma and 10.2 Jaguar (OnyX version 1.3.1).

Aside from OS X system maintenance and optimization, including verifying and repairing Permissions, running chron maintenance scripts, optimizing the system, verifying your disk media, and updating databases, OnyX, Like Cocktail, Mac Pilot, MainMenu, and several others, also makes it possible to configure certain hidden parameters of Finder, Dock, Safari. It allows you to customize scroll bar arrows, label lines, toggle appearance between Aqua and Graphite, show hidden system files, put a Quit Menu Item in the Finder menu, activate application and window zooming, delete certain preferences, and force empty the Trash, with or without destruction.

You can customize Dock position, alignment and minimization options, and to activate hidden and system files, transparent icons for hidden applications, animate opening applications put a menu item Quit Finder in the Dock, and relaunch the Dock. to remove a certain number of files and logs, preview the different logs and CrashReporter and more.

OnyX allows you to clean or clear selected or all Internet, user, and System caches. The browsers recognized are: Safari, Internet Explorer, Omniweb, You can enable/disable file journaling, import IE and Mozilla/Netscape bookmarks to Safari, Smooth small fonts in Safari, enable Disk Copy Expert Mode, enable Debug Menu in Safari, Address Book, and DVD Player, delete recent servers, and reset Mac OS Help.

The OnyX interface displays eight tabbed panels:

• Parameters - Shows basic configuration specs; Allows you to customize scroll bar arrows, screen capture format, and many other configuration elements in the Finder, Dock, Dashboard and Exposé, Safari, The Login window ITunes, and more in seven subcategory panes

• Maintenance - Lets you verify and repair Permissions, run chron scripts, optimize the system, and reset several other functions.

• Cleaning - Allows you to clean or clear selected or all Internet, user, and System caches. The browsers recognized are: Safari, Internet Explorer, Omniweb, Camino (formerly Chimera), Netscape, Mozilla, Firebird (formerly Phoenix), Opera and iCab. Safari's URL icons can also be removed. Also can clean Logs, System caches, force empty the Trash, and more.

• Automation - Runs Repair Permissions and all or selected maintenance routines. By default, cron scripts run automatically, but early in the AM, between 3 and 6, and only if the computer is turned on and not sleeping.

• Log Files - Displays and can delete CrashReporter, Archived, and System logs selectively

• Unix Utilities - The Man command allows you to format and display the Unix manual pages. You can also run the plutil, locate, and system_profiler commands from this pane.

• Info - Reads out information about your computer in five sub-panes; Computer, Hardware, Disk, System, and User

image


Preferences - Application preferences, in which, among other things, you can banish the default "Brushed Metal" appearance theme and replace it with Aqua.

image


The OnyX interface is streamlined and intuitive to work with. I don't imagine anyone runs the full slate of functions. For regular tune ups, the key scripts to run are Verify And Repair Permissions, the daily, weekly, and monthly Maintain scripts, and I usually optimize the system as well, all of which can be configured in the "Automate" pane.

image


New in version 1.7.8:

• Enable/disable the indexing of Startup Disk
• You can cancel the operation before choose the Single user Startup Mode
• Verification of the S.M.A.R.T. Status improved and enabled by default
• Verification of the start volume at launch
• Font Cache of Microsoft Office X removed
• Indeterminate Progress bar while running some commands
• Display of alert and error messages improved
• Saving a mini, basic or full profil of your configuration
• The Logic and WaveBurner Caches are not deleted anymore while deleting the applications caches
• Deleting the Recent Items in the Apple menu
• Help improved, corrected and updated
• Korean translation
• New replacement icons
• Uninstaller improved
• Bug corrected while modifying the saving path of screenshots
• Bug corrected: The window's position is correctly saved now
• Bug corrected while modifying the Safari's history parameters (-1708)
• Bug while programing the scripts corrected
• Random Error AppleScript -1728 after optimization and cleaning the Cache corrected
• Misc little bugs corrected

System requirements:
Mac OS X 10.4.2 up

System support
PPC/Intel

OnyX is Freeware, gratis and freely usable; you may copy and distribute it at will.

For more information, visit:
http://www.titanium.free.fr/pgs/english.html

Digg this

del.icio.us


Charles W. Moore



Tags: Blogs ď OSX Odyssey ď Hot Topics ď News ď

Login † or † Register † †

Please note that launchd in Tiger will perform the system maintenance scripts when you turn on your computer if it wasn’t turned on when the scripts were scheduled to run.

So you shouldn’t need to manually run the maintenance scripts when running Mac OS X 4 or later.

Thanks for the info. I wasn’t aware of that change. Do you know whether it works on a reboot, or just on a startup from off? I can’t remember the last time I shut my PowerBook down; it may never have been shut down since I put it into service over a year ago. I just put it to sleep when it’s not in use.

Charles

I’m pretty sure it works both after a reboot and after sleep. I know it works after sleep as I have watched it update the locate-database several times.

Hmm, ok, it looks like it won’t run if the computer was completely turned off, only if it was asleep. Seems silly to me hmmm

From “man launchd.plist”:

StartCalendarInterval <dictionary of integers>

This optional key causes the job to be started every calendar interval as specified. [] Unlike cron which skips job invocations when the computer is asleep, launchd will start the job the next time the computer wakes up.  If multiple intervals transpire before the computer is woken, those events will be coalesced into one event upon wake from sleep.

Hi again;

Thanks for your continued research on this topic.

Since I just sleep and wake up my computer instead of shutting it down, looks like I’m covered.

Charles

So you shouldn’t need to manually run the maintenance scripts when running Mac OS X 4 or later. www.orguleri.com

Hi muratcan

So I hear, but I still do it anyway whenever I repair permissions and dump caches.

Charles

Hi Charles,

Gary Coyne here. Let me add to your comments in that I totally agree with everything you’ve said.

As far as running permissions being voodoo, that’s bull. I have witnessed far too many “strange” symptoms disappear after running Permissions repair. That doesn’t mean that running Permissions will solve everything, of course not. But changing the oil on our car will not fix the timing--and I do not hear anyone saying we shouldn’t change the oil on our car.

I also have two partitions on my computers, one is used mostly just to hold a system and any repair software I have. That way, when I feel I need to run general repair on my computer, I reboot into the 2nd partition, run the repairs on my main partition, and then go on my merry way.

I NEVER run a system update without first running DiskWarrior, and general repair on each partition (DiskWarrior must be run on a system separate from the system being repaired). I have NEVER had any of the strange glitches that are often reported on Versiontracker.com when updates are released. The 10-15 minutes of maintenance are more than worth the hours of trying to resolve some of the strange problems that can occur when an update is expecting to see one code but finds another (and therefore cannot update what it cannot find).

[Note: Diskwarrior and Apple’s Disk Utility both require running repair operations on a separate partition, hard drive, or DVD. Onyx, Leopard Cache Cleaner, and other Cron running applications do not need to be on separate partitions. Some applications, such as Prosoft’s Drive II need to be on a different hard drive or DVD, not just a different partition.]

FWIW, I’m a fan of Leopard Cache Cleaner. I can’t say it’s any better than Onyx (it does have a token shareware fee) and want to mention it as yet one more alternative. Just yesterday an office mate couldn’t save out of Word--just couldn’t be done. We ran the Cache and Cron (and permissions) repairs and when completed, his problems were gone.

Best,

Gary Coyne

The 12” PowerBook G4 is the first PowerBook in years without a PC Card slot. It’s also the only current model without DVI support and an official ceiling of 640 MB of memory. It supports 10 and 100 Mbps ethernet, but not gigabit ethernet.
Certified microsoft 1Y0-A09 exam centre.

NEVER run a system update without first running DiskWarrior, and general repair on each partition (DiskWarrior must be run on a system separate from the system being repaired). I have NEVER had any of the strange glitches that are often reported on Versiontracker.com when updates are released.
its ok
............
hookahs

Any edits you make to your recording (from the few options available) are lossless. A lossless master is saved ccna practice test along with your active file, allowing you to go back in after the fact to make changes without having to rerecord the audio get a quality source file back. cisco braindumps The lossless file can take up quite a bit of disk space, so WireTap Studio provides a simple option 70-561 dumps to delete the lossless file once you’re satisfied with your final product. And, of course, you can always select to not have WireTap Studio bother with a lossless file in the first place.Your output settings are AAC, MP3, AIFF, WAV or lossless .mov, which covers just about everything a Mac user would need. You can also export your files to your computer, or directly to iDisk, FTP, e-mail, Bluetooth, iPod, iTunes and iPhone (where compatible files can be used as ringtones). When saving to MP3 and AAC, you can tag your 70-562 free dumps files with the typical iTunes entries: title, artist, genre, comments, etc.

Follow Us

Twitter Facebook RSS! http://www.joeryan.com Joe Ryan

Most Popular

iPod




iPhone

iLife

Reviews

Software Updates

Games

Hot Topics

Hosted by MacConnect - Macintosh Web Hosting and Mac Mini Colocation                                                    Contact | Advanced Search|