Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Defragmenting...

Defragmenting...
Thread Tools
Fresh-Faced Recruit
Join Date: Nov 2006
Status: Offline
Reply With Quote
Nov 26, 2006, 02:37 PM
 
Hi All
Still waiting for my Mac Pro to turn up and getting everything sorted before it arrives.

I have read a lot of things about the fact that you don't need to defragment Mac HD. In theory this sounds great but I wanted to double check that this is the case. I'm currently PC based using NTFS formatted HDs on Win XP. I defrag my two main drives every 72 hours and in an average 72 hours there are usually 1500-5000 fragments in files.

So will I just not get the same amount of fragments when working on my Mac Pro? Or is the 'you don't need to defrag' advice aimed at general home users?

Thanks in advance
     
Addicted to MacNN
Join Date: Aug 2004
Location: FFM
Status: Offline
Reply With Quote
Nov 26, 2006, 03:05 PM
 
Mac OS X automatically defragments files smaller than 20 MB. For larger files it is practically irrelevant. Your hard disk can read a movie file fast enough to play the movie without problems whether it fragmented or not.
     
Mac Elite
Join Date: Sep 2005
Location: Vancouver, BC
Status: Offline
Reply With Quote
Nov 26, 2006, 03:25 PM
 
Originally Posted by TETENAL View Post
Mac OS X automatically defragments files smaller than 20 MB. For larger files it is practically irrelevant. Your hard disk can read a movie file fast enough to play the movie without problems whether it fragmented or not.
Mmm ...

I can think of a million reasons why that's not a good thing to say, but I'll leave it with this: Just because something works one way, doesn't mean it couldn't work better.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Nov 26, 2006, 03:40 PM
 
In most cases, defragging on the Mac is a waste of time. More importantly, most defragging software seems to be unnecessarily dangerous — if it gets interrupted in the middle of operating, your disk can be totally hosed. There are a few cases where defragmenting can be useful, but I don't know many Mac users who have been harmed by not defragging.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Mac Elite
Join Date: Jun 2006
Status: Offline
Reply With Quote
Nov 26, 2006, 03:42 PM
 
Originally Posted by Tomchu View Post
Mmm ...

I can think of a million reasons why that's not a good thing to say, but I'll leave it with this: Just because something works one way, doesn't mean it couldn't work better.
Well here's apple's stance on it KB Article and you'll see that in most cases it could actually degrade performance.
Michael
     
Addicted to MacNN
Join Date: Jun 1999
Location: Las Vegas, NV, USA
Status: Offline
Reply With Quote
Nov 26, 2006, 04:42 PM
 
Originally Posted by Tomchu View Post
Just because something works one way, doesn't mean it couldn't work better.
Media streams need data a certain bitrate. If the drive can provide the data at the required rate, then it can't work better--no matter how the data is physically arranged on the platters.
     
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Nov 26, 2006, 05:06 PM
 
Originally Posted by chabig View Post
Media streams need data a certain bitrate. If the drive can provide the data at the required rate, then it can't work better--no matter how the data is physically arranged on the platters.
Unless other applications are also touching the disk, in which case it could degrade their performance (spending more time seeking, less time free for other apps).
     
Mac Enthusiast
Join Date: May 2005
Location: Philadelphia
Status: Offline
Reply With Quote
Nov 26, 2006, 05:15 PM
 
I have never defragged since I OSXed. I do however rebuild my directory with DiskWarrior after a system update. I don't know if it helps at all, but it does make me feel better.
     
Addicted to MacNN
Join Date: Aug 2004
Location: FFM
Status: Offline
Reply With Quote
Nov 26, 2006, 07:07 PM
 
Originally Posted by Catfish_Man View Post
Unless other applications are also touching the disk, in which case it could degrade their performance (spending more time seeking, less time free for other apps).
If other apps are accessing other files, then you have head movement anyway. Whether the different files are defragged or not.

If it makes you "feel better" then by all means do it. Life's too short to feel bad. But be aware that defragging is a cargo cult.
     
Mac Elite
Join Date: Sep 2005
Location: Vancouver, BC
Status: Offline
Reply With Quote
Nov 26, 2006, 08:02 PM
 
Recording raw video. Fragmented free space. 'Nuff said.

And comments like this: "If other apps are accessing other files, then you have head movement anyway. Whether the different files are defragged or not" demonstrate a lack of knowledge about things like buffers and read-ahead.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Nov 26, 2006, 08:22 PM
 
Originally Posted by Tomchu View Post
Recording raw video. Fragmented free space. 'Nuff said.
You just named the one case that I'm aware of where defragging can have any benefit, and you don't need any special tools for defragging in that case — just erase and restore. (I mean, assuming you weren't trying to record to your boot drive and expecting peak performance.)
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Admin Emeritus
Join Date: Oct 1999
Location: Zurich, Switzerland
Status: Offline
Reply With Quote
Nov 26, 2006, 09:45 PM
 
     
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Nov 26, 2006, 11:41 PM
 
Originally Posted by TETENAL View Post
If other apps are accessing other files, then you have head movement anyway. Whether the different files are defragged or not.

If it makes you "feel better" then by all means do it. Life's too short to feel bad. But be aware that defragging is a cargo cult.
I agree with you overall (haven't even seen a defragging tool in over a year). However, seeking twice is slower than seeking once. In a timeslicing system, if more time is used for one thing, less is available for others. It's not a big deal at all unless there's very severe fragmentation (unlikely) or extremely high sequential bandwidth requirements, but it is the case.
     
Mac Enthusiast
Join Date: Sep 2005
Location: Canada... be nice, eh?
Status: Offline
Reply With Quote
Nov 26, 2006, 11:58 PM
 
Another good reason to switch to the Mac. No need to defrag...
My Blog-pakos.me
     
Fresh-Faced Recruit
Join Date: Nov 2006
Status: Offline
Reply With Quote
Nov 27, 2006, 01:44 AM
 
Thanks all for your replies.

I guess i'm going to have to just run the system for a week or two and see what happens. 70% of my work is done in large photoshop files (50-400MBs).

Is there a way of checking how fragmented a drive is on a Mac so that I can see how it copes and then act accordingly?
     
Mac Elite
Join Date: Nov 2001
Location: Dark Side of the Moon
Status: Offline
Reply With Quote
Nov 27, 2006, 01:46 AM
 
I've never defragged any of my Macs. However, last week I tried to install Boot camp on my Macbook, and because I had only about 10 GB left on the disk (now up to 17 GB) the boot camp installer would not work. It seems the problem is not exactly the space, but where that space is because boot camp is creating a second partition, thus you need a large, empty, and continuous chunk of space. The only way for me to install boot camp now is to defrag or wipe clean and reinstall.

With boot camp becoming part of Leopard, and the ability to change partition size on the fly like that, I can foresee it becoming a more common issue.

This app: Coriolis Systems :: Products :: iDefrag will defrag your drive, and you don't need to buy it just to look at the fragmentation (seems I have some files from OS 9 days, must be over 5 years old, that are badly fragmented).
     
Mac Elite
Join Date: Mar 2000
Location: Allston, MA, USA
Status: Offline
Reply With Quote
Nov 27, 2006, 07:38 AM
 
Yeah, and if those files are under 20MB, you simply have to open them and OS X will automatically defragment them.

How's this for proof you don't need to defrag OS X, defragment isn't in the built-in OS X dictionary ;-)
-- Jason
     
Posting Junkie
Join Date: Oct 2005
Location: Houston, TX
Status: Offline
Reply With Quote
Nov 27, 2006, 07:10 PM
 
Originally Posted by chabig View Post
Media streams need data a certain bitrate. If the drive can provide the data at the required rate, then it can't work better--no matter how the data is physically arranged on the platters.
Assume a hard drive has a read rate of 100MBps and a seek time of 10ms (numbers to make the math easy, on the same order of magnitude as reality).

Playing a contiguous 10MBps media file is trivial since there is (almost) no seeking and plenty of bandwidth.
Now consider a 10MBps media file that has 64KB per fragment; in 11ms you get 64KB, or 5.7MBps, falling well short of the 10MBps requirement for smooth playback.

As you can see in this example, the drive can provide data at the required rate, but due to the physical arrangement of data on the platters it is unable to.
     
Fresh-Faced Recruit
Join Date: Sep 2006
Location: San Jose, CA
Status: Offline
Reply With Quote
Mar 20, 2007, 12:47 PM
 
Hi All,

I just wanted to post in this old thread to share a recent experience I had with defragging my iMac (24" core 2 duo).

I was experiencing increasing slowness for weeks - spinning beach balls even when all I had open were Mail and Firefox. It was rough and I was frustrated. I tried everything else to fix this - I used onyx to clear my system and application caches, repaired my disk permissions, nothing helped.

Then, I downloaded a defrag tool and found that my drive was really fragmented. Not my files, mind you. But the free space on my drive. While OS X does have built in file defragmenting, it does not automatically defragment the free space on your drive.

After I ran the defrag program and consolidated the free space on my drive, this solved my problems. No more spinning beach balls and my iMac runs FAST.

I suspect all of this fragmented free space is a result of my using my iMac as a personal DVR with my eyeTV. I record a lot of TV shows and edit them - I suspect this contributes greatly to the free space on my drive getting fragmented all over the place.

Anyway, if your iMac is painfully slow and nothing else helps, give this a try. It worked for me.

Cheers.
24" iMac Core 2 Duo 2.33GHz 500GB HD 2GB RAM
15" G4 PowerBook 1.5GHz 1GB RAM
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Mar 20, 2007, 03:45 PM
 
I still do not recommend using a defrag tool. If you want to defragment a drive, back up and restore. Because defragging can hose the drive, so you need to back up anyway.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:52 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2