Defragmenting (Full Version)

All Forums >> [GENERAL] >> PICTURE TUTORIALS



Message


Gordon -> Defragmenting (4/21/2006 6:43:18 PM)

Defragmenter pdf file available defrag.pdf
Where to find the "Disk Defragmenter"
[image]local://3/1C528795E3F645EEBF8FBE2903B9AE67.jpg[/image]




Gordon -> RE: Defragmenting (4/21/2006 6:44:04 PM)

Disk defragmenter

[image]local://3/1FC45D2535454BF7A133F48A7610959C.jpg[/image]




Gordon -> RE: Defragmenting (4/21/2006 6:45:01 PM)

In this tutorial we are looking at disk defragmentation. First lets understand what a hard drive does, it stores files, program, data, music in fact any kind of file you can think of. Now I want you to have a mental picture of a filing cabinet

[image]local://3/A6BCA4854D2643F3893734A3E6A8BE95.jpg[/image]




Gordon -> RE: Defragmenting (4/21/2006 6:45:51 PM)

 this filing cabinet will represent the hard disk and the drawers in it are known as as "clusters" on the hard disk
What's a 'cluster' I hear, if you like its the size of a draw in other words how much can be stored in it.
The "cluster" size can be from 1, 2, 4, 8, 16, 32kb in size.
If a  filing cabinet has 4 draws and each drawer stores 4kb, this gives our filing cabinet the ability of storing  a total of 4 * 4kb = 16kb
Lets have a example,
We have just written a letter in "Wordpad" and we save the file and the file length is 13kb (red)  how many draws do you think we use, the answer 4, as 4 drawers each with a 4kb size can accomadate  16kb

[image]local://3/1F58C646C62346CBADDDBE5F1BC0685D.jpg[/image]




Gordon -> RE: Defragmenting (4/21/2006 6:46:49 PM)

We now add another file of 3kb (blue), what happens (the total of the 2 files are 16kb) do we use 4 drawers or 5 and the answer is 5. Why?

[image]local://3/18834496E1BA409BAED1134E1E875E54.jpg[/image]




Gordon -> RE: Defragmenting (4/21/2006 6:47:44 PM)

Windows allocates the first file (13kb) to the first 4 drawers but when the next file comes along(3kb) it doesnt look in the draws to see if they are fully occupied but just says the first 4 are full and puts the 3kb file in the fifth drawer.
A brief interlude
Programs like "Partition Magic" and others can alter the "cluster" size. So in our example instead of having 4 *4kb draws we could have 8 * 2kb drawers. Our example would  then use 7 drawers for the first file 7 * 2kb= 14kb (red) and 2 drawers (blue) for the 3kb file a total of 9 * 2kb leaving us with 3 empty draws or 3 * 2kb = 6kb free
Back to the main feature
Hard drives are bigger than that but I hope you have the picture in your head.
So whats all this to do with disk fragmentation
File 1 is 13kb (red)
file 2 is 3kb (blue)
File 3 14kb(green)
file 4 9kb ( purple)

[image]local://3/9665D495FCBF43F185E2D35502139726.jpg[/image]




Gordon -> RE: Defragmenting (4/21/2006 6:48:31 PM)

Now lets delete file 1(red) and 3 (green)

[image]local://3/2F7695EE13CD4C018395D2B621032ED8.jpg[/image]




Gordon -> RE: Defragmenting (4/21/2006 6:49:15 PM)

and now add another 2 files
File 5  21kb (light blue)
File 6  17kb (pinky)
Windows puts the files in the first available space so the file 5 (light blue) has been split up, likewise file 6 (pinky)  also  becomes 'split up'

[image]local://3/6D70A2A549B04CE6A608A44EAE5BC833.jpg[/image]




Gordon -> RE: Defragmenting (4/22/2006 5:33:14 AM)

These files has become "fragmented" , so when windows 'writes' or 'reads' the file it takes longer to do as it has to find all the bits

you can see what is happening the hard drive is becoming more and more fragmented the more we write files and delete others

Lets "defragment" it
the order of the files doesnt matter but now they are all together again, they have been defragmented 

[image]local://3/055A30CACADA4192A52D9301A981C6B5.gif[/image]




Gordon -> RE: Defragmenting (4/22/2006 5:33:48 AM)

How does this help?
overall if "windows" doesnt have to keep looking for all the bits of files, things will "load" quicker, likewise if video is being written to the harddisk and that hard disk has been defragmented then the write will be all in 1 lump saving "write time" (more commonly known as 'seek and write')
You see posts sayimg have 1 hard drive for Windows and program files and 1 hard for video .
Why?
By setting your second hard drive to the maxinum 'cluster' size (32kb) the less 'windows' has to split the avi file to 'save it'. A single 32kb cluster is quicker to write than 8 * 4kb cluster
Video (25fps Pal or 30fps NTSC) writes 1mb per frame or 25/30mb per second (dv/avi) so the easier you can make this process by keeping the hard disk "defragmented" and the cluster size for that video large the quicker it will be and the less chance of dropped frames

All in all cluster size depends on space availability and as hard drives are getting bigger, faster and cheaper cluster size may no longer become a issue unlike it was where storage size and speed had to be a compromize




Page: [1]



Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 Unicode

0.015