Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 20, 2013, 12:47:13 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Moving data from a fixed position  (Read 562 times)
skozzy
JkDefrag Senior
****
Posts: 28


View Profile
« on: May 15, 2011, 02:10:31 am »

I am doing a monthly system defrag on a Win XP Home computer with a 1TB HDD WD Black which has 120GB of data on it which makes up 130,000 files and 6000+ folders. The defrag has been running for 2 days and looks about half way.

What makes up the bulk of the file system is JPGs. Moving files out seems to be the slow part for it, moving defraged file back in to the empty areas looks quick. Is there something I can do to speed this up.

What come to mind was starting from LCN 150,000,000 and moving the data to something like LCN 500,000,000 then starting the monthly defrag again. But not sure if mydefrag can select a block of data in an LCN range and move it.

I also thought about modding the monthly script and changing the start of each zone to see if i could get the data to start in an empty place, but weird things happened like the zones starting positions each run were in a different place and not a fixed place.

Logged
Darlis
JkDefrag Hero
*****
Posts: 1707


View Profile WWW
« Reply #1 on: May 15, 2011, 06:46:24 am »

What makes up the bulk of the file system is JPGs. Moving files out seems to be the slow part for it, moving defraged file back in to the empty areas looks quick. Is there something I can do to speed this up.
No, a fragmented file is always moved slower than a defragmented file. You could, of course, defragment the drive first but if you add up the time it takes to defragment them and the time for the final placement (sorting), you won't see much difference.
You could also use the faster Weekly script instead.

What come to mind was starting from LCN 150,000,000 and moving the data to something like LCN 500,000,000 then starting the monthly defrag again. But not sure if mydefrag can select a block of data in an LCN range and move it.
It can with the FileLocation file boolean. But note that once these files have been moved, MyDefrag considers them as optimized and will therefore never touch them again in the current script. So you need to two separate scripts.

I also thought about modding the monthly script and changing the start of each zone to see if i could get the data to start in an empty place, but weird things happened like the zones starting positions each run were in a different place and not a fixed place.
Without the script, it's hard to tell where the error is. Wink
Basically, you just have to alter the first MakeGap (for MFT and directories) and "MakeGap(0)".
Logged

Need help creating a script? Try MyDefrag Script Creator.
ff_mfg
JkDefrag Hero
*****
Posts: 51


View Profile
« Reply #2 on: May 17, 2011, 02:06:17 pm »

I can't claim 100% certainty, but in my opinion the slowest operation is finding the spot to move out the file. This has something to do with defrag API limitations, as I understand, MyDefrag has to "walk" through every free space pocket beginning from given LCN till it finds a suitable one. It proves _very_ slow if allocated space is full of very small free space blocks.
If you have enough free space in the end, it might be faster to create "manual override" script for this situation. Something like
  MakeGap(<where huge continuous free space starts>G, DoNotVacate)
  FileSelect
   <all those pesky jpegs>
  FileActions
    SortByName(Ascending)
  FileEnd
Run it one time, it should be very fast. Then run regular Monthly, it should also be fast now.
If it still runs very slow, you might have some another kind of problem.
Logged
Pages: [1]
  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!