Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
June 18, 2013, 09:42:47 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: MyDefrag really needs a "Force zone" flag.  (Read 2781 times)
Falcon4
JkDefrag Hero
*****
Posts: 141


teh Fighting Falcon™


View Profile
« on: January 19, 2010, 06:00:58 am »

I noticed in one of MyDefrag's changelogs, it was noted that MyDefrag now "knows" when to stop searching for a free gap and skip that file, maybe "come back to it later". That's great for speeding up multi-file defrags, but in my case I have one file I'm trying to move on many PCs - the page file. I already know about the page file being unmovable, which is exactly why I delete the pagefile, reboot, then recreate it in the desired size with "fsutil" as "pagefile.sys", typically a 1gb file. It starts off as an allocated-but-unwritten file that consumes the same filesystem space as a real file but has not been written yet (therefore it finishes moving as soon as MyDefrag tells it to "move").

But a problem I consistently encounter with MyDefrag is that even though I specify a zone for the pagefile, MyDefrag sees the zone, often vacates a perfectly good spot for it, but for some reason or another it can't move it after vacating the zone.

So it moves on. It marks the file as green (processed) even though it only ended up getting moved to the first available spot (usually at the end of the drive). Sometimes I go through the trouble of doing a "for" loop to fill the drive with allocated 1gb files, then go back to analyze in MyDefrag and - shock of all shockers - one of them is where I wanted the page file to be to begin with! I rename that file to pagefile.sys and activate it. *headdesk*

Anyway, MyDefrag simply needs some mechanism in which I can tell MyDefrag to "force" this location (and I don't mean fragment it like ForcedFill), to keep moving files out of the way until it does have enough room. That would solve a lot of my problems. MyDefrag often ends up writing some files to that area (like mydefrag.debuglog... which I really wish was still called "mydefrag.log" Wink) and it doesn't mark that area on the map as "allocated" even after it "trips" over it. If I could just make MyDefrag not give up on that zone, it would be so nice. A "Force zone" flag.
Logged


F*ck Vista. Current system: Acer Extensa 4420/Turion 64 X2 1.9GHz TL-57 (upgrade from TK-57)/2gb HyperX RAM/160 HDD/Windows 7 Pro RTM x86
Kasuha
JkDefrag Hero
*****
Posts: 595


View Profile
« Reply #1 on: January 19, 2010, 07:14:56 am »

My guess is, either there already is some small unmovable in the place (such as MFT::bitmap) or while MyDefrag is vacating space for the file, the system or your other activity creates a small unmovable file in that location and MyDefrag fails to move the file there in one piece.

I'd try the following approach:


IgnoreWrapAroundFragmentation(yes)

VolumeSelect
  Name("C:") <-- the disk letter
VolumeActions
  MakeGap(1 GiB) <- your desired location

  FileSelect
    FileName("pagefile.sys") <-- current name of the file you're going to use as pagefile
  FileActions
    SortByName()
  FileEnd
VolumeEnd
Logged
Kasuha
JkDefrag Hero
*****
Posts: 595


View Profile
« Reply #2 on: January 19, 2010, 11:27:55 pm »

My Layout for C: (Vista SP2 with all updates, Occupied 25 GB, free 71 GB)


You should also point out that in your view settings end of the disk is at the bottom, not on top as in MyDefrag's default.
Logged
BloodySword
JkDefrag Hero
*****
Posts: 1114



View Profile
« Reply #3 on: January 19, 2010, 11:31:08 pm »

Oups, removed the post instead of editing it xDD Sorry:

Yes, at Top, there is the beginning of the partition...

Logged

Greetings from Germany!
Falcon4
JkDefrag Hero
*****
Posts: 141


teh Fighting Falcon™


View Profile
« Reply #4 on: January 19, 2010, 11:46:36 pm »

Unless Jeroen added a function to reverse the drive map (and based on previous discussions, I doubt it!), your drive layout is SO backwards! :lol: Dude, the bottom of the map is the top (fastest) part of the drive!

Ah well... with Kasuha's help, I found that Defragment() + IgnoreWrapAroundFragmentation(no) + SortByName(Ascending) = a forced pagefile.sys zone. And I'm happy. It's worked flawlessly on each computer I've tried it on today, after the previous method (Defragment() + FastFill()) failed miserably...
Logged


F*ck Vista. Current system: Acer Extensa 4420/Turion 64 X2 1.9GHz TL-57 (upgrade from TK-57)/2gb HyperX RAM/160 HDD/Windows 7 Pro RTM x86
BloodySword
JkDefrag Hero
*****
Posts: 1114



View Profile
« Reply #5 on: January 20, 2010, 12:00:53 am »

There where the Layout.ini files are sorted, there is the beginning of my partition, the fastest area. I don't like the flipped map, can't say why, although it would be the right display (because the HDD begins at the outher side, not in the inner side).
Logged

Greetings from Germany!
Falcon4
JkDefrag Hero
*****
Posts: 141


teh Fighting Falcon™


View Profile
« Reply #6 on: January 20, 2010, 12:50:06 am »

Okay, well, what I mean is, if you have files at the top of the map, they're at the slow part of the drive! Unless you flipped that drive map in Paint or something.

I do agree, the flipped (bottom-is-top) way MyDefrag displays the info is rather backwards, but you can't just say "oh, i don't like it like that" and reverse your zones Wink
Logged


F*ck Vista. Current system: Acer Extensa 4420/Turion 64 X2 1.9GHz TL-57 (upgrade from TK-57)/2gb HyperX RAM/160 HDD/Windows 7 Pro RTM x86
BloodySword
JkDefrag Hero
*****
Posts: 1114



View Profile
« Reply #7 on: January 20, 2010, 01:02:47 am »

No not the bitmap is reversed, the map in MyDefrag was reversed with DiskmapFlip(no). The prefetch and boot files are really at the beginning. Smiley
My script would look very werid when I made something you said. I used the standard scripts, lightly modified. I added the Thunderbird and Firefox zone and I changed the SortByName action for Spacehogs in Monthly script to FastFill(WithSuffling) + MoveDownFill().
« Last Edit: January 20, 2010, 01:05:07 am by BloodySword » Logged

Greetings from Germany!
Falcon4
JkDefrag Hero
*****
Posts: 141


teh Fighting Falcon™


View Profile
« Reply #8 on: January 20, 2010, 01:13:51 am »

Ah! That would be the "Unless Jeroen added a function to reverse the drive map..." part! Cheesy

http://www.mydefrag.com/Settings-DiskmapFlip.html

That explains a lot. Didn't even see that get added. Looks like yet another thing to add to my script Cheesy
Logged


F*ck Vista. Current system: Acer Extensa 4420/Turion 64 X2 1.9GHz TL-57 (upgrade from TK-57)/2gb HyperX RAM/160 HDD/Windows 7 Pro RTM x86
BloodySword
JkDefrag Hero
*****
Posts: 1114



View Profile
« Reply #9 on: January 20, 2010, 01:15:54 am »

Sorry for the confused confusing of cunfused drive maps. *lol* xD

Edit: Don't add DiskmapFlip(no) to every of your scripts. Simply add it into the Settings.MyD. Smiley
Logged

Greetings from Germany!
Falcon4
JkDefrag Hero
*****
Posts: 141


teh Fighting Falcon™


View Profile
« Reply #10 on: January 20, 2010, 07:37:39 am »

Nah, I've only got one that I regularly use, FullOptimize.MyD - something I wrote back in 4.0 Beta and have been patching up every time something changes Wink I'll probably still add it to Settings.MyD anyway...

So I guess the solution to this topic is just to use SortByName(Ascending) instead of FastFill, to force a file into its own zone. That works for me Smiley
Logged


F*ck Vista. Current system: Acer Extensa 4420/Turion 64 X2 1.9GHz TL-57 (upgrade from TK-57)/2gb HyperX RAM/160 HDD/Windows 7 Pro RTM x86
BloodySword
JkDefrag Hero
*****
Posts: 1114



View Profile
« Reply #11 on: January 20, 2010, 11:40:35 am »

Since SortByName is very CPU consuming for very small files like directories, you could even try SortByNothing. I Think it should be renamed to "ZoneFill" or "MoveAllIntoThisZone" or "MoveIntoZone".
« Last Edit: January 20, 2010, 11:47:04 am by BloodySword » Logged

Greetings from Germany!
andublin
JkDefrag Hero
*****
Posts: 103


View Profile
« Reply #12 on: January 20, 2010, 02:22:38 pm »

BloodySword, SortByNothing ? I don't see that in the formal script grammar, what is it and where can it be used?
Thanks.
Logged
BloodySword
JkDefrag Hero
*****
Posts: 1114



View Profile
« Reply #13 on: January 20, 2010, 04:02:20 pm »

I read about it, there. Could be that I missunderstood something... I didn't test it yet.

http://www.mydefrag.com/forum/index.php?topic=3275.msg20044#msg20044
Logged

Greetings from Germany!
Darlis
JkDefrag Hero
*****
Posts: 1725


View Profile WWW
« Reply #14 on: January 20, 2010, 05:45:06 pm »

"SortByNothing" does not exist (yet). It is just a feature which Jeroen should add to MyDefrag. (or change the behavior of FastFill)
Logged

Need help creating a script? Try MyDefrag Script Creator.
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!