Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 20, 2013, 01:02:28 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Puzzle of disk analyze speed  (Read 6887 times)
Aimar
Newbie
*
Posts: 2


View Profile
« on: October 22, 2006, 08:27:07 am »

MR Kelderek:
 I have read the source code of your disk defragmentor,it's very great.
it defrags rapidly..But if i want just only to write a disk analyze function,
according to your method,it seems to slow.
 But i deep into the Diskkeeper and the utility of windows,they both analyze rapidly,is there any APIS undocumented? Or your method isn't fit for the just analyze?
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #1 on: October 22, 2006, 06:09:14 pm »

Well, if there is an undocumented function in windows and anyone can tell me about it then I'd love to hear about it! At the moment I am forced to walk through all the files on disk with FindFirstFile() and then call FSCTL_GET_RETRIEVAL_POINTERS for each and every file to discover where it is physically located and wether it is fragmented. Which is very slow. By the way, most of the time is spent in the FindFirstFile() function.

See the Microsoft website for more information.
Logged
Aimar
Newbie
*
Posts: 2


View Profile
« Reply #2 on: October 23, 2006, 02:30:17 am »

Well,I have test some defragmentors on FAT32 filesystem,i find that no defragmentor can analyze rapidly like on NTFS.So,i doubt that the NTFS filesystem must record some fragment info secretly.what about your opinion?
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #3 on: October 23, 2006, 03:01:11 am »

I suppose it's possible that NTFS records secret information about fragmentation, but I think the Microsoft defragger has faster analyzation because it uses undocumented (read "secret") system calls. It's a well-known fact that there are a lot of undocumented system calls in Windows, perhaps Microsoft keeps them secret to have an edge on the competition.
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #4 on: October 23, 2006, 04:24:10 am »

By the way, my defragger does not have a separate analysis mode. While analyzing it does a lot of things, such as saving information in memory and updating the screen. A specialized analysis would be faster. It could skip all files that are smaller than 1 cluster, for example, because they cannot be fragmented. I don't think it would be as fast as the special analysis function in the Windows defragger, though.
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!