|
I've had my Dual 1.25Ghz G4 tower for almost 2 years now, and I've never defraged the hard drive. The computer has definetaly slowed down since it was brand new.
In windows, defragmenting the hard drive is built into the operating system. How can I defragment the hard drive on my mac? Thanks |
quote |
Member
|
I thought I heard that the Mac System defrags while in use, without the user knowing. I don't understand how it all works, or if this is correct, but if that is not true, I would also be interested how to do this...
|
quote |
‽
|
Quote:
1) you have at least 30% space free on each partition of every hard drive you're using. 2) you frequently clean out caches. Apps like MainMenu will aid you with this. Quote:
The longer answer can be researched here. Quoting from its conclusion: Quote:
Last edited by chucker : 2006-03-21 at 13:37. |
|||
quote |
|
Quote:
Thanks. That could have been the main issue. |
|
quote |
‽
|
Quote:
Quote:
|
||
quote |
Veteran Member
Join Date: May 2004
|
HFS+, the filesystem under MacOS X, defragments all files under 20MB in size, as they are written, on the fly.
Defragmentation is essentially a non-issue except for a very very small number of users who need absolute speed, such as high-end video editors. For them, specialized disk solutions exist and are commonly used. Bottom line: defragging is the least of your worries. And chucker... 30%?? Are you serious? No way. I have an 80GB drive I frequently run within a gig of full, with no issues. 5GB is the more than comfort zone, in my experience, and then only for serious VM needs. Heck, make it 10GB if you really want, but I think that's overkill. On an 80GB drive, that's only ~12%. I'm going to have to see some evidence other than just anecdotal for this one, before I believe it. Cleaning caches is a good place to start, and also make sure your Mac is on overnight once in a while to do some of its automated maintenance. Many log files get cleaned up and cleaned out at 3am. Remembering to reboot once a month or so isn't a bad idea either. |
quote |
‽
|
Quote:
Quote:
I'll reevaluate when I have my MBP. Quote:
Specifically, /System/Library/Caches, /Library/Caches, ~/Library/Caches, and if you're a heavy Safari user, ~/Library/Safari/Icons. Stuff like that. Quote:
|
||||
quote |
Veteran Member
Join Date: May 2004
|
Quote:
Ahhhh, I just thought of a potential reason why. VM swap files. They can get fragmented, just like anything else, and if you don't have a nice tidy big chunk o' disk for them, it'll cause a slowdown. Since they're way over 20MB, they'll never be defragged. That's got to be it. So... if you're running into several gigs of VM that is being actively swapped out a lot, and you are on a drive with little space, it is possible that your swap files will be fragmented, leading to some significant slowdowns. Of course, a reboot will solve that... Quote:
I suppose if you're really concerned about high performance, then keeping more open for the hot file system to do its mojo at the same time as the autodefrag, as well as smooth high datarate streaming... but still. Quote:
Quote:
Quote:
That just blows most people's minds... especially since I'm on a laptop that goes everywhere, bounces from network to network, and generally never skips a beat. |
|||||
quote |
‽
|
Quote:
Quote:
As for Windows: for some reason I fail to comprehend, its pagefile (which I assume is identical to OS X's swapfiles) does not get purged upon reboots. Instead, there's a defragment utility for that, PageDefrag, which I've found to be very helpful for performance. It can be run automatically upon each boot, and defragments parts of the registry as well while it's at it. Still, I'm confused as to why it wouldn't be easier to just delete pagefile.sys and have it recreated automatically. Quote:
Quote:
Quote:
Quote:
Quote:
*) I realized upon submitting that post that this was the very expression you used as well. |
|||||||
quote |
Veteran Member
Join Date: May 2004
|
Quote:
Quote:
Quote:
Swap files aren't compacted, but they are purged, and generally within a couple minutes. Usually, if a user has needed X amt of RAM in the near past, they're going to need X amt again real soon now. So there's no point in doing a dealloc/realloc tango if you can just hang onto that space for a little bit, and see if it's going to be used again. Think about when an app crashes - the user almost always wants to get back up and running again ASAP. The problem is, that the swapfiles are strictly FILO - so assume you launch, oh I dunno, Mathematica, and it gobbles up 3GB of VM. Then you launch TextEdit, which uses up maybe 100MB. You quit Mathematica. Unfortunately, the memory space used by TextEdit is up in swap file 12 or so, and active... so all those swap files are kept. Quit TextEdit, and then they start getting chopped away. You're right, it's not perfect, and I really wish there was a compaction utility, but that's a really costly effort for regular use. Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
|||||||||
quote |
‽
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
||||||
quote |
Veteran Member
Join Date: May 2004
|
Quote:
Quote:
Unless you trigger a process that gets put in the latest swap file, of course... which is very likely... Quote:
|
|||
quote |
I was knighted
|
Man guys.. get a ROOM
|
quote |
‽
|
Quote:
|
|
quote |
A for effort.
Join Date: Nov 2004
Location: New Jersey
|
Yeah, only 2GB of swap strikes me as odd. I can run up to 5 pretty quickly, and I'm not dealing with all that leet hax0r stuff Kick does. I'm just running 12 apps with lots of tabs in Shiira. I also have about 50% (~25GB) free on my iMac. I only keep my system and apps on the internal disk, though. The external disk has backups and my home directory.
|
quote |
monkey with a tiny cymbal
Join Date: Nov 2004
Location: Lost
|
Man, the search engine at AI stinks. Google, however, is amazing
Aquatic is quoting it from (oh dear god) a Slashdot Comment. |
quote |
‽
|
Quote:
|
|
quote |
Senior Member
Join Date: Nov 2004
|
<pokes head - ready to bitch-slap someone over defrag of HFS+>
</pokes head> <updates database - there is intelligent life on this planet!> |
quote |
Veteran Member
Join Date: May 2005
Location: Paris, France
|
Quote:
Regarding macsforever's question, I was blown away by Panther's on-the-fly defraging. It works incredibly well. Basically all files under 20 MB are guaranteed to have no more than eight extents. Large files are not defragmented on the fly, but who cares if a 500 MB file is scattered into even 100 parts? The difference in read speed between a 500 MB file with no fragmentation and one with 100 extents is unnoticeable without a stopwatch (and even then you'd have to be quick). If you're curious, the demo version of iDefrag will give you fragmentation statistics for any drive, although it will only defragment drives smaller than 100 MB. (The iDefrag demo is non-invasive to install by the way.) I did a check on my iBook (1-year-old OS installation, pretty heavy daily use with the poor 30 GB hard disk often battered to within an inch of its life by video work - I often run to within a gigabyte of free space) with the following results: - files with more than 10 extents: about 30, all of which are pretty big - files with more than 50 extents: 12 (11 of which are more than 100 MB in size) - files with more than 200 extents: 2 (both more than 300 MB in size) - one file with 2282 extents (temporary 1.7 GB video file which was written to disk with about 700 MB free space left at the end) So for me, defragmenting the disk would cause no noticeable speed increase but would waste a lot of time, entail a completely unnecessary risk of data loss, and cause a lot of extra wear on my 2.5-inch disk (not to mention heat) thus increasing the chance of disk failure in the future. So would I defrag even if I had an app to do so sitting in my Applications folder? Hell no! It just wouldn't be worth it. |
|
quote |
Veteran Member
Join Date: May 2004
|
Quote:
On a 512MB machine, with CPU pegged at 100% for several hours straight. And able to still surf, check mail, IM... god I love a good solid VM system. Quote:
* A fresh reinstall of NT4, on a brand spanking newly formatted drive, would have 40-50% fragmentation after a *WEEK*. With the drive only 40% full. There is simply no reason for that other than laziness at MS. |
||
quote |
BANNED
I am worthless beyond hope. Join Date: Jul 2004
Location: Washington, DC
|
I recently defragged my iBook's 60 gig hard drive using a friend's copy of Drive Genius. While the process showed an improvement through its graphical representation, I still don't notice any performance difference.
I think it was a waste of time, really. |
quote |
Veteran Member
Join Date: May 2004
|
Not only that, but a number of drives now have the smarts to do a layout scheme for file access that looks fragmented from the outside, but actually takes advantage of things like rotational speed vs. cache coherence checks and other factors to provide an optimized constant data rate.
A defrag tool just screws that up, and can cause a degradation of access. |
quote |
Ninja Editor
Join Date: May 2004
Location: Bay Area, CA
|
Quote:
To answer your question, macsforever, I'd use the built-in defrag tools in Tech Tool Pro, but any decent disk utility package should have one. BTW, you do know Norton is spawned of Satan's own excrement, right? Don't use it. Ever. When I was a kid, people who did wrong were punished, restricted, and forbidden. Now, when someone does wrong, all of the rest of us are punished, restricted, and forbidden... and the one who did the wrong is counselled and "understood" and fed ice cream. |
|
quote |
Veteran Member
Join Date: May 2004
|
Quote:
Quote:
|
||
quote |
Posting Rules | Navigation |
|
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"update" process & hard drive ticking -- Calling *nix gurus! | Brad | Genius Bar | 77 | 2006-05-19 19:50 |
PowerBook Hard Drive Failure - Some questions. | scratt | Genius Bar | 12 | 2005-10-11 04:14 |
Clicking hard drive of (almost-)death | chucker | Genius Bar | 0 | 2005-09-30 01:18 |
can't find hard drive to install osx! | Veej007 | Genius Bar | 23 | 2005-05-23 15:17 |
Which hard drive should I buy? | bholtzman | Purchasing Advice | 24 | 2005-04-25 20:59 |