{"id":45344,"date":"2024-10-11T15:54:03","date_gmt":"2024-10-11T19:54:03","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=45344"},"modified":"2024-10-11T15:54:03","modified_gmt":"2024-10-11T19:54:03","slug":"a-brief-history-of-defragging","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2024\/10\/11\/a-brief-history-of-defragging\/","title":{"rendered":"A Brief History of Defragging"},"content":{"rendered":"<p><a href=\"https:\/\/eclecticlight.co\/2024\/10\/05\/a-brief-history-of-defragging\/\">Howard Oakley<\/a>:<\/p>\n<blockquote cite=\"https:\/\/eclecticlight.co\/2024\/10\/05\/a-brief-history-of-defragging\/\">\n<p>All storage media, including memory, SSDs and rotating hard disks, can develop fragmentation, but most serious attention has been paid to the problem on hard disks. This is because of their electro-mechanical mechanism for seeking to locations on the spinning platter they use for storage. To read a fragmented file sequentially, the read-write head has to keep physically moving to new positions, which takes time and contributes to ageing of the mechanism and eventual failure. Although solid-state media can have slight overhead accessing disparate storage blocks sequentially, this isn&rsquo;t thought significant and attempts to address that invariably have greater disadvantages.<\/p>\n<p>Fragmentation on hard disks comes in three quite distinct forms: file data across most of the storage, file system metadata, and free space. Different strategies and products have been used to tackle each of those, with varying degrees of success.<\/p>\n<p>[&#8230;]<\/p>\n<p>Manually defragging HFS+ hard disks was always a questionable activity, as Apple added background defragmentation to Mac OS X 10.2, released two years before Coriolis was even founded. By El Capitan and Sierra that built-in defragging was highly effective, and the need for manual defragging had almost certainly become a popular myth.<\/p>\n<\/blockquote>\n<p>I would agree that defragging became much less useful since the days when I was using the Speed Disk component of Norton Utilities on System 7. But my recollection is that HFS+&rsquo;s automatic defragmentation didn&rsquo;t fully solve the problem because it wasn&rsquo;t able to work on all files (notably skipping large ones, which could have hundreds or even thousands of fragments for a single file) and didn&rsquo;t consolidate the free space. iDefrag remained useful for spinning disks until the advent of APFS.<\/p>\n<p>APFS also has built-in defragmentation, which in some cases I enabled myself and in other cases seemed to have been automatically enabled. I haven&rsquo;t noticed any improvement from enabling it, which is unsurprising since Oakley and Mike Bombich say that it doesn&rsquo;t defragment the file system metadata. APFS performance remains really bad on spinning disks, in my opinion.<\/p>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2019\/10\/28\/enabling-defragmentation-on-apfs-hard-drives\/\">Enabling Defragmentation on APFS Hard Drives<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2019\/09\/19\/apfs-enumeration-performance-on-rotational-hard-drives\/\">APFS Enumeration Performance on Rotational Hard Drives<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2018\/02\/22\/idefrag-and-ipartition-discontinued\/\">iDefrag and iPartition Discontinued<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Howard Oakley: All storage media, including memory, SSDs and rotating hard disks, can develop fragmentation, but most serious attention has been paid to the problem on hard disks. This is because of their electro-mechanical mechanism for seeking to locations on the spinning platter they use for storage. To read a fragmented file sequentially, the read-write [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2024-10-11T19:54:06Z","apple_news_api_id":"6707523d-ee27-40fa-980d-ddeeb5ee7be8","apple_news_api_modified_at":"2024-10-11T19:54:06Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AZwdSPe4nQPqYDd3ute576A","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[1395,366,367,2670,295,368,30,2598,174,2671],"class_list":["post-45344","post","type-post","status-publish","format-standard","hentry","category-technology","tag-apple-file-system-apfs","tag-diskwarrior","tag-drivegenius","tag-hfs-plus","tag-history","tag-idefrag","tag-mac","tag-macos-15-sequoia","tag-storage","tag-techtool-pro"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/45344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=45344"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/45344\/revisions"}],"predecessor-version":[{"id":45345,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/45344\/revisions\/45345"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=45344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=45344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=45344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}