Jump to content

Return to Piriform.com

Photo

Would love feature to defrag and compact MFT


  • Please log in to reply
8 replies to this topic

#1 OFFLINE Crni

Crni

    Member

  • Members
  • PipPip
  • 24 posts
  • Gender:Male

Posted 05 December 2011 - 04:49 PM

Paragon TotalDefrag has this feature and it works pretty fast.
CCleaner has Drive Wiper which does similar job, but it takes too much time as it's actually wiping the whole free space and is forcing MFT to shrink, though when it gets close to 99% it triggers System Restore which then deletes one or more SR snapshots as the disk space gets very low. It's not a bug, but may need some improvement.
Anyway, what I'm proposing is just to include similar feature to Defraggler, but instead of wiping the free space just compact MFT and defrag it.

#2 OFFLINE Super Fast

Super Fast

    Super Hero

  • Members
  • PipPipPipPipPip
  • 2,210 posts
  • Gender:Male

Posted 12 December 2011 - 12:14 AM

+ 1

CCleaner MFT wipe IS pretty slow, if I say so myself.
Could definitely use something faster.

I hate having to spend 15 minutes waiting for it to complete, when, ah, 15 seconds or so would be nice.
If compacting is faster, I would second that.

I would also second the option to ONLY do the MFT wipe.
Currently, I have to STOP the disk wipe operation after MFT because they are integrated. Sigh.

A drop down MFT wipe would be nice!

#3 OFFLINE Augeas

Augeas

    Moderator

  • Moderators
  • 3,087 posts
  • Gender:Not Telling
  • Location:Where Stuff is made, UK

Posted 12 December 2011 - 05:25 AM

Compact and defrag probably describe the same action.

In XP if the MFT is in several fragments within or even out of the MFT Zone (disk full/stressed) then these fragments can be defragged - made contiguous again - back within the Zone. I think that most defraggers do that already.

In Vista onwards the MFT Zone is much smaller (200 mb) and when the MFT fills it another 200 mb zone is created elsewhere. The zones are deliberately fragmented, and M/S says that making these zones contiguous is possible but pointless in performance times.

You can't mess around with any of the insides of the MFT. If you create a million files and then delete them the MFT will contain a million entries forever.

Apart from the first known system records, the only sequential read of the MFT (as far as I can think) is on new file/folder allocation, when the first (lowest numbered) free slot is used. NTFS probably reads the MFT bitmap to find the first free slot, then multiples that -1 by 1024 to find the free slot offset. So no sequential reads at all.

I can't see any practical reason why CC's Wipe MFT shouldn't be separate. It does run before WFS so it is a separate entity. As for taking a long time, it's creating tens or hundreds of thousands of new files, every one with a corresponding transaction record, MFT folder update, bitmap update, etc, then deleting the lot, every one with a corresponding transaction record, MFT folder update, bitmap update, etc. That takes time.

#4 OFFLINE Super Fast

Super Fast

    Super Hero

  • Members
  • PipPipPipPipPip
  • 2,210 posts
  • Gender:Male

Posted 12 December 2011 - 10:43 PM

That makes sense, but I can think of a reason to do the MFT separate.

Sometimes, I just want to clear the MFT for performance reasons & skip a drive wipe.
Not only does this wear out the drive unnecessarily, it is pointless clicks to cancel it.

If I really needed a drive wiped, sure, but sometimes I only just need the MFT cleaned...

#5 OFFLINE Augeas

Augeas

    Moderator

  • Moderators
  • 3,087 posts
  • Gender:Not Telling
  • Location:Where Stuff is made, UK

Posted 13 December 2011 - 07:16 PM

Yes, that's what I said.

(Later edit) I can't see any performance gain from wiping MT entries. It's a way of replacing the existing file name and folder reference in a deleted MFT record with another. The MFT has the same number of entries, in the same order, as before.

#6 OFFLINE kroozer

kroozer

    hi

  • Members
  • PipPipPipPip
  • 1,543 posts
  • Gender:Female

Posted 13 December 2011 - 07:37 PM

Sorry if this is a dumb question, What is MFT guys?


Master File Table http://www.easeus.com/resource/MFT.htm

Your post is obvious spam, but I provided the link for newbies.

#7 OFFLINE Augeas

Augeas

    Moderator

  • Moderators
  • 3,087 posts
  • Gender:Not Telling
  • Location:Where Stuff is made, UK

Posted 13 December 2011 - 07:50 PM

Yes, far too spammy - post deleted.

#8 OFFLINE Winapp2.ini

Winapp2.ini

    Friendly neighborhood addon manager

  • Beta Testers
  • PipPipPipPipPip
  • 5,977 posts
  • Gender:Male
  • Location:Long Island, New York
  • Interests:Sleeping

Posted 13 December 2011 - 07:59 PM

I use a metadata defragmenter to do this, as I am not entirely certain that it can be done in windows anyway.

#9 Guest_Keatah_*

Guest_Keatah_*
  • Guests

Posted 23 February 2013 - 06:00 PM

At risk of necroposting - has any progress been made on MFT compaction and truncating within Defraggler? Keep in mind this needs to be an out-of-windows operation.