Some Speed-Up Tests: Defragging a MacBook Pro (Graphs)

Joined
Aug 31, 2009
Messages
304
Reaction score
6
Points
18
I defragmented my mid 2009 Macbook Pro using a utility. 2.53/4gb/250gb. It's about 1/2 full. Nice improvement. You can get the same result from a clean install on a fresh disc, which is what Apple tends to recommend. It took about an hour and a half to defrag. Blue is "before" and green is "after". Below each graph at the lower left is the test variation.

Defrag-MBP.png
 
Joined
Oct 22, 2007
Messages
8,967
Reaction score
287
Points
83
Location
London
Your Mac's Specs
Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver
I think they would be better as a line chart, just saying
 

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,248
Reaction score
1,833
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
An hour and 30 minutes is fast for a full defrag if that's what you did. I use the iDefrag utility and for a full defrag on a hard drive that's about half full, it will run for about 4 hours during which you lose use of the machine.
 
Joined
Apr 26, 2008
Messages
2,963
Reaction score
120
Points
63
Location
Belgium
Your Mac's Specs
iPad Pro 12.9 latest iOS
Stanley,

Can you explain what I am looking at ?
I understand the " before " and " after " thing , but what I don't understand is WHAT " before " and WHAT " after "

Cheers ... McBie
 
OP
S
Joined
Aug 31, 2009
Messages
304
Reaction score
6
Points
18
An hour and 30 minutes is fast for a full defrag if that's what you did. I use the iDefrag utility and for a full defrag on a hard drive that's about half full, it will run for about 4 hours during which you lose use of the machine.

Yeah it was really not so bad. It was around 69% fragmented with the worst files in hundreds of pieces. Somewhere over a million files in total.

But..2-4 hours…I wish I could do that on some of the win-doze boxes I've had…they'd be down for a lot longer.

Do you know if the more modern 4k sectors would help compare to the now-old-school 512b style? I may load in a more modern drive into that 'puter.

Thanks.
 
OP
S
Joined
Aug 31, 2009
Messages
304
Reaction score
6
Points
18
Stanley,

Can you explain what I am looking at ?
I understand the " before " and " after " thing , but what I don't understand is WHAT " before " and WHAT " after "

Cheers ... McBie

An unfragmented drive runs faster and quieter than one which has split up many files. New computers come to you in good shape fragmentation-wise. After awhile some computers slow down a bit. This is often unnoticeable on Macs. It is not a big problem.

A bit hard to go over it all in a scrolling message board…you might want to track down some hard drive test comparisons if my effort in this post falls short.

The 1st graph shows sustained reading speed. This is getting data from the hard drive, large files like video, starting up the Mac etc. The 2nd graph shows the same idea, but for writing files to the hard drive. These files are pretty much all in one spot on the drive and it is just pushing out or accepting data.

The next two graphs show reading and writing of files in a random manner..spread out across the drive, fragmented files etc.

Green is after the hard drive was defragmented. This means that, say, a movie file that was once in 500 pieces spread out all over a drive is put back together. A book is all in one place…what if one page was in the kitchen…another on the bed, another in the garage, more blowing around outside in the wind. By having things in one place, the hard drive is faster and works less hard. Blue is before the drive was defrayed.

The file sizes across the x axis show that the rate of data transfer (in or out depending on which graph) varies according to size.

In general, you can see that green is higher in many zones and this means files open faster and can be saved faster.

I'm sure I did not do the best possible job here…corrections are welcome, or you can do some research if you'd like.

I did this test since so many folks repeat that Mac don't need defragmenting etc. Well they do benefit. This particular computer was never serviced or defragged since Summer 2009 and is a workhorse. A windows computer would not be in such decent shape, nor take so little time to tune back up.

When you do a fresh install of OSX onto a just formatted drive it will be unfragmented for the most part. If you then install your Apps and data from backup drive(s), then they should be more or less in one place too when the transfer is done. Apple has certain zones on a drive that are hot spots or preferred areas, many of the files can benefit from this. This is part of why many on this board like fresh installs. So does Apple (= their way of defragging to an extent). But if you upgrade to Lion as I did, (just let it rip, right over the old OS) you will have some fragmenting. It was pretty easy to get done in this manner. Out of a million something files, 700,000+ were in pieces on my drive. HDs are very peppy so this is not as bad as you think. It's like you had a super helped at home finding each separate page of a book as you read it.

One thing I noted is that for the software I used, it liked being on a separate drive. Onto that drive I installed Snow Leopard so that I could boot from that drive. And the drive software too. This also allows me to go to other Macs and spritz them up by just plugging into the FW800 port. The external drive needed to be Mac formatted and also have the ~EUID option chosen when I partitioned it. Without EUID you cannot boot from an external drive. That one had me stymied for awhile as I could not boot at first until I redid it. I noticed in the customer comments for the drive in the store's review section that some had said the drive was no good for Macs since he could not get it to boot properly. I suspect that the EUID thing was the issue there. It was all in the tech material I didn't read! ;-)
 

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,248
Reaction score
1,833
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
Do you know if the more modern 4k sectors would help compare to the now-old-school 512b style? I may load in a more modern drive into that 'puter.

Using NTFS, 4K sectors are ideal since Windows pages in 4K increments. Sectors of 512 Bytes might sound good for saving space but are actually less efficient since it slows everything down.

In Unix, the opposite is true. :) You want the sectors to be 512 Bytes for maximum efficiency.
 
OP
S
Joined
Aug 31, 2009
Messages
304
Reaction score
6
Points
18
Using NTFS, 4K sectors are ideal since Windows pages in 4K increments. Sectors of 512 Bytes might sound good for saving space but are actually less efficient since it slows everything down.

In Unix, the opposite is true. :) You want the sectors to be 512 Bytes for maximum efficiency.

Interesting, and thanks. So if/when I buy a larger contemporary drive that comes 4K I guess I need to make sure (maybe it is automatic?) that I get it to 512. That way I'll get the speed I thought I was buying but would not get without this tip!
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top