Question:
What is Disk fragmentation and de-fragmentation? Any benefits?
2009-02-07 00:03:57 UTC
My pc is running out of memory and I've heard that disk fragmentation will find a solution for it? I'm confused.

Is disk fragmentation really good for creating space in memory?

If yes, how do we do it?

Please help :)
Nine answers:
birjuthakar
2009-02-07 00:28:21 UTC
Disk Fragmentation can be divided into following Sections:



1) Internal Fragmentation.

2) External Fragmentation.

3) Data Fragmentation.



Disk Defragmantion is always helpful to spare up some diskspace on your hard-drive. And you can do it from



Start -> Programs -> Accessories -> System Tools -> Disk Defragmenter



Internal fragmentation occurs when storage is allocated without ever intending to use it. This space is wasted. While this seems foolish, it is often accepted in return for increased efficiency or simplicity. The term "internal" refers to the fact that the unusable storage is inside the allocated region but is not being used.



For example, in many file systems, each file always starts at the beginning of a cluster, because this simplifies organization and makes it easier to grow files. Any space left over between the last byte of the file and the first byte of the next cluster is a form of internal fragmentation called file slack or slack space.



Similarly, a program which allocates a single byte of data is often allocated many additional bytes for metadata and alignment. This extra space is also internal fragmentation.



Another common example: English text is often stored with one character in each 8-bit byte even though in standard ASCII encoding the most significant bit of each byte is always zero. The unused bits are a form of internal fragmentation.



Similar problems with leaving reserved resources unused appear in many other areas. For example, IP addresses can only be reserved in blocks of certain sizes, resulting in many IPs that are reserved but not actively used. This is contributing to the IPv4 address shortage.



Unlike other types of fragmentation, internal fragmentation is difficult to reclaim; usually the best way to remove it is with a design change. For example, in dynamic memory allocation, memory pools drastically cut internal fragmentation by spreading the space overhead over a larger number of objects.

__________________________________________________________



External fragmentation is the phenomenon in which free storage becomes divided into many small pieces over time.[1] It is a weakness of certain storage allocation algorithms, occurring when an application allocates and deallocates ("frees") regions of storage of varying sizes, and the allocation algorithm responds by leaving the allocated and deallocated regions interspersed. The result is that, although free storage is available, it is effectively unusable because it is divided into pieces that are too small to satisfy the demands of the application. The term "external" refers to the fact that the unusable storage is outside the allocated regions.



For example, in dynamic memory allocation, a block of 1000 bytes might be requested, but the largest contiguous block of free space has only 300 bytes. Even if there are ten blocks of 300 bytes of free space, separated by allocated regions, one still cannot allocate the requested block of 1000 bytes, and the allocation request will fail.



External fragmentation also occurs in file systems as many files of different sizes are created, change size, and are deleted. The effect is even worse if a file which is divided into many small pieces is deleted, because this leaves similarly small regions of free spaces.

__________________________________________________________

Data fragmentation occurs when a piece of data in memory is broken up into many pieces that are not close together. It is typically the result of attempting to insert a large object into storage that has already suffered external fragmentation.



For example, files in a file system are usually managed in units called blocks or clusters. When a file system is created, there is free space to store file blocks together contiguously. This allows for rapid sequential file reads and writes. However, as files are added, removed, and changed in size, the free space becomes externally fragmented, leaving only small holes in which to place new data. When a new file is written, or when an existing file is extended, the new data blocks are necessarily scattered, slowing access due to seek time and rotational delay of the read/write head, and incurring additional overhead to manage additional locations. This is called file system fragmentation.



As another example, if the nodes of a linked list are allocated consecutively in memory, this improves locality of reference and enhances data cache performance during traversal of the list. If the memory pool's free space is fragmented, new nodes will be spread throughout memory, increasing the number of cache misses.



Just as compaction can eliminate external fragmentation, data fragmentation can be eliminated by rearranging data storage so that related pieces are close together. For example, the primary job of a defragmentation tool is to rearrange blocks on disk so that the blocks of each file are contiguous. Most defragmenting utilities also atte
Jim
2009-02-07 00:16:09 UTC
Disk defragging will NOT improve your memory, it will reduce disk seek and fetch times.



When a computer calls for data (a file) from the hard disk, that is called a seek. When it finds the data, that is called a find. When a file is found it is pulled from the hard disk and loaded into memory. The operating system or the software will temporarily save backups of the file to the hard disk just in case (like word processors or spreadsheets can be set to do auto backups to tmp files). When it does this, the computer does not necessarily put the file back on the hard disk in the same order or the same pieces of file that it found originally. It might find a hole of free space somewhere else on the disk and stick part of the file there and then take the rest of the file and put it somewhere else. The result is that the data is scattered all over the hard disk for a single file...just imagine the file being broken into four pieces and then scattered around the hard disk in four different places.



The next time the computer needs this file, it must go and do a fetch and then FOUR finds and put the file back together before it can be retrieved into memory. The fragmentation into parts causes a slow down in the seek on the disk. Now, the file is loaded from four fragments, back into memory and the whole thing is repeated, this time, lets say the file is now broken up into 5 different pieces and so the file becomes more and more fragmented. At some point, if the file is not put back together again in one contiguous piece, you risk data corruption of the file which means a total loss of the data or file. The fragmentation gets to the point where the file cannot be put back together and the data becomes corrupt and is then lost.



Defragmentation does a super seek and find and puts all the pieces back together again. This speeds things up because the hard disk has to do a lot less work to find contiguous data than scattered data. It significantly reduces the possibilty of file or data corruption.



Hope this makes sense to you.
?
2009-02-07 00:14:58 UTC
You're not even close, sorry. Memory is RAM. Are you running low on RAM or hard drive space? Defragging your hard drive will clear up neither but you can run the disk cleanup to make more space. A fragmented file is a file that is spread out throughout the hard drive from being saved a bunch of times. Defragmenting it makes it so that the file is all together in one spot on the hard drive so the head doesn't have to run around looking for the pieces of the file. This will only result in faster performance. Get an external hard drive and start saving stuff to that.
kimmie
2009-02-07 00:17:17 UTC
fragmentation is actually not good. it slows down your computer. fragmentation happens when there are blocks of memory space that are too small to be used(external fragmentation) or when the computer allocates large blocks of memory to small jobs(internal fragmentation). the unused space are also fragments. when there are a lot of fragments in your memory space, the computer would have to search through more locations to be able to, say, run a program.



to solve this problem, you use the disk defragmenter tool in your computer. what this does is it compacts the used memory space together and the free memory space together so that the fragments will disappear and your computer will only have to search through fewer locations to perform a job.



if you go to the properties of the disk that you want to defragment, you will find under the TOOLS tab, i think, the disk defragmenter.



hope i helped!!!
spidy0008
2009-02-07 07:12:48 UTC
I'll tell you in simple words. well its like when you are using Hard Drive for long period of time there is lot of over-writing on clusters of hard disk so some space is bloacked when you perform and data is always stored in random areas of your Hard Disk, so when you run Disk fragmentation it stores your data in proper way this results in good performance of hard disk and also makes the blocked space free. so its good to have Disk fragmentation. Note keep this process run in night coz it takes time depending on your hard disk size and the drive what you kept for fragmentation should be kept idol.



Well Enjoy :) Regards
AMIT
2009-02-07 00:15:48 UTC
Disk Defragmenter analyzes local volumes and consolidates fragmented files and folders so that each occupies a single, contiguous space on the volume. As a result, your system can access files and folders and save new ones more efficiently. By consolidating your files and folders, Disk Defragmenter also consolidates a volume's free space, making it less likely that new files will be fragmented. The process of consolidating fragmented files and folders is called defragmentation.
?
2016-05-29 17:01:08 UTC
When you delete or unistall a program it leaves an open spot on your hard drive. If you then install something else it will right over the open space. If what you're installing is bigger than the open spot it will install the other parts of the prog onto other open parts of the hard drive putting the prog on the hard drive in pieces(fragmented) The hard drive has to work harder moving around to the various spots to run the prog. Defrag will take the progs that are in pieces and move them around so they are each in one part so your hard drive doesn't work as hard, increasing its life and your progs run smoother. Always a good idea to go a defrag after you do a clean up and uninstall old progs and stuff. Anyone who uses hibernation should do a defrag every once-in-a-while because that really frags a drive bad.
sankket d
2009-02-07 00:56:07 UTC
find all the info here http://computer.howstuffworks.com/question548.htm



disk de fragmentation doesn't save space it just keeps the disk neat and tidy

if u want to save space try compressing ur folders or clean out junk files
narayan_mit
2009-02-07 01:37:43 UTC
yes, fragmentation increases use of hard disk space & increase speed of computer


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...