A Windows Vista forum. Vista Banter

Welcome to Vista Banter.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Performance and Maintainance of Windows Vista
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Performance and Maintainance of Windows Vista A forum for performance and maintenance tasks in Windows Vista. (microsoft.public.windows.vista.performance_maintainance)

No clue as to Disk Defragmenter status



 
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old October 31st 08, 08:39 PM posted to microsoft.public.windows.vista.performance_maintenance
DevilsPGD
external usenet poster
 
Posts: 1,015
Default No clue as to Disk Defragmenter status

In message "Brandon
Taylor" was claimed to have wrote:

How in the world Microsoft managed to overcome the need to close all running
processes before you defragment your system is beyond me!


This is actually fairly easy. The physical data on disk, filesystem and
application levels are largely isolated from each other.

Normal applications cannot read/write clusters on the disk directly,
only files, and accessing a file means using an API. The defragment API
and file access APIs were designed to function together.

The way a defragger works is that it first copies a cluster, then
updates the file allocation tables to reflect the file's new location.

(Strictly speaking, defraggers don't do that, they just decide what
clusters to move and use a special defrag API call, Windows then moves
the cluster and updates the file allocation tables)

The Windows file APIs are smart enough to update the location on disk
(if the files are even being read from disk, ideally most file access
will get cached anyway) without the application being aware anything
happened. This is actually not too dissimilar to how disk caching
works, the application doesn't try to read from the disk cache, it
simply tries to read from the file and Windows figures out if the
portion of the file being requested is cached or not.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2012 Vista Banter.
The comments are property of their posters.