Fragmentation, and another question

  • Thread starter Simfish
  • Start date
In summary: You're taking files from one hard drive to another. When you defrag, aren't you using your hard drive's buffer and your RAM to store temporary information that is being rewritten? Wouldn't moving files from one hard drive to another and then back be like using that hard drive as your temporary space? I can't imagine how this would save anyone time. Maybe the defrag would not take as long, but that time + the time it took to move the files to another hard drive and back would be a lot lot longer. And not only that, but you have to wait till the files are moved before you can run the defrag, and then you have to wait till the defrag is done to
  • #1
Simfish
Gold Member
823
2
Does BitTorrent tend to cause a lot of fragmentation on the hard disk? The very nature of BitTorrent tends to distribute files according to fragments, and my defrag doesn't seem to really reduce fragmentation percentage. On the other hand, it's not really a problem since fragmentation really only affects the files that are fragmented, right?

Another has to do with USB microdrives and any medium of data storage: is it possible for a USB microdrive or a CD to also become fragmented? Say, you transfer a fragmented file from hard drive to microdrive? And does this fragmentation then transfer from microdrive to new hard drive?

==

The other question I have relates to RAM and CPU speed. The amount of RAM on my computer is 854 MB, which is less than the 1 GB of ram specified by the packaging [I use a Gateway, Windows Vista]. What happened? The processor speed is also lower than stated on the package.
 
Computer science news on Phys.org
  • #2
Yes, downloading multiple files at the same time leads to extrordinary levels of fragmentation.

Microdrives hold many fewer files and they are smaller, but yes, they can become fragmented too.

No, fragmentation does not transfer between drives.

Your processor speed should be as advertised - your ram is too, but some is being used for video processing (your computer does not have a discrete video card). 854 is an odd number, though - 1024-128=896 is more typical.
 
  • #3
Simfishy said:
On the other hand, it's not really a problem since fragmentation really only affects the files that are fragmented, right?

Not quite right. If the free space on the drive is also fragmented (i.e. lots of small areas of free space where files have been deleted) then new files may be fragmented when they fill up the fragmented free space.

And does this fragmentation then transfer from microdrive to new hard drive?

See the previous comment.

The processor speed is also lower than stated on the package.

Processor speeds can be reported incorrectly - for example if the CPU used variable clock speeds for power saving, you may get the current speed reported, not the maximum speed. That happened to me with an AMD processor. If you really want to check out your system performance, download something like Sisoft's SANDRA program (easy to find with Google, and free).
 
  • #4
A nice way to handle fragmentation is if you have another drive with plenty space, then you can copy stuff across so you aren't left with much on the first drive, the defrag the first drive, then copy the stuff back. Since drives are 500GB+ nowadays, there is no excuse not to have space free.
 
  • #5
One thing I forgot - on laptops, cpu speed is not constant, it varies with load, so if you see it reported "incorrectly", that may just be because you aren't using it.
 
  • #6
Thanks for the responses!
Funny - I found that my processor was running at 798 MhZ under Power Saver - but at 1.60 GhZ when it's under full powerModel : AMD Turion(tm) 64 X2 Mobile Technology TL-50
Speed : 798MHz
 
Last edited:
  • #7
verty said:
A nice way to handle fragmentation is if you have another drive with plenty space, then you can copy stuff across so you aren't left with much on the first drive, the defrag the first drive, then copy the stuff back. Since drives are 500GB+ nowadays, there is no excuse not to have space free.

Why copy files all over the place? Just defrag the drive as it is..

One random preference of mine: Norton's speed-disk is pretty nice, you can choose what files you want to be stored closest to the center of the drive for fastest access speeds.
 
  • #8
BoredNL, you can save a stack of time doing that.
 
  • #9
if you set your pre-allocate your download files, i don't think they'll get fragmented in the sense that each downloaded bit of data is put in a different sector.
 
  • #10
verty said:
BoredNL, you can save a stack of time doing that.

How is that saving time?

You're taking files from one hard drive to another. When you defrag, aren't you using your hard drive's buffer and your RAM to store temporary information that is being rewritten? Wouldn't moving files from one hard drive to another and then back be like using that hard drive as your temporary space? I can't imagine how this would save anyone time. Maybe the defrag would not take as long, but that time + the time it took to move the files to another hard drive and back would be a lot lot longer. And not only that, but you have to wait till the files are moved before you can run the defrag, and then you have to wait till the defrag is done to move the files back. Why not just leave your computer up one night running defrag and be done with it?
 
  • #11
The two relevant factors seem to me to be the efficiency of the defragging algorithm and your priorities. For those who would prefer to leave the computer to sort itself out, that is fine. There is much less seeking when copying files to another drive because the access is sequential so you get an average throughput of half the bandwidth of the drive. If the drive can transfer at 20MB/s then you'll get an average of 10MB/s. So it depends on whether your defrag program can perform at an average of 10MB/s. If it can't, moving the files to another drive will be quicker but will need more input as you say.

I'm just putting the information out there.

Oh, thinking about it, no defragging program could go at 10MB/s in that scenario because it would be reading/seeking/writing, so necessarily less. QED. :)
 
Last edited:
  • #12
verty said:
The two relevant factors seem to me to be the efficiency of the defragging algorithm and your priorities. For those who would prefer to leave the computer to sort itself out, that is fine. There is much less seeking when copying files to another drive because the access is sequential so you get an average throughput of half the bandwidth of the drive. If the drive can transfer at 20MB/s then you'll get an average of 10MB/s. So it depends on whether your defrag program can perform at an average of 10MB/s. If it can't, moving the files to another drive will be quicker but will need more input as you say.

I'm just putting the information out there.

Oh, thinking about it, no defragging program could go at 10MB/s in that scenario because it would be reading/seeking/writing, so necessarily less. QED. :)

This can be tested if you have Raid 1 configuration and some fragmentation on your drive. Just split the hard drives, then use method 1 and then method 2 and time it (then use the raid utility to mirror one of the drives back to the other). That'd be interesting.

I still don't see how it would be faster moving files around though, even if you get a faster speed while moving them. If you keep up with defragging your hard drive, it might only take 20 minutes to perform a defrag. However just moving humongous files from one hard drive to the other might take that long, and then there would be the defrag time + moving the files back time. That makes no sense to me. Seeing as how you are moving ALL data to move large files, when a defrag only moves fragmented data around and only some files that aren't fragmented for optimal defragmentation. I could only see this being possibly faster on an insanely fragmented drive, but I doubt it even then.

Not only that, but if you do this, you will be putting the large files farther from disk index and increasing the seek time. I imagine most people would want these files to have a faster seek times if they are working on them.. Especially because of how large they are.

Just food for thought.

Phil
 
Last edited:
  • #13
BoredNL said:
How is that saving time?

You're taking files from one hard drive to another. When you defrag, aren't you using your hard drive's buffer and your RAM to store temporary information that is being rewritten?
Yes...
Wouldn't moving files from one hard drive to another and then back be like using that hard drive as your temporary space?
Well ram is super-fast, so sure you take a hit when using the hard drive as ram, but the situations aren't analgous.

The relevant issue is that a single drive can't read and write simultaneously. It reads a chunk, then writes it in a different place. If you are defragging, though, you need to read off one spot, then read off another to free-up space, then write both sections.

It could be faster, but it really isn't worth the effort when you could just start a defrag before going to bed - it should be finished by morning.
 
  • #14
russ_watters said:
Yes... Well ram is super-fast, so sure you take a hit when using the hard drive as ram, but the situations aren't analgous.

The relevant issue is that a single drive can't read and write simultaneously. It reads a chunk, then writes it in a different place. If you are defragging, though, you need to read off one spot, then read off another to free-up space, then write both sections.

It could be faster, but it really isn't worth the effort when you could just start a defrag before going to bed - it should be finished by morning.

This is a pretty moot point isn't it? lol
 

1. What is fragmentation?

Fragmentation is the process of breaking apart larger objects or concepts into smaller pieces or components. In science, it can refer to the physical breaking apart of materials or the breaking apart of data or information into smaller pieces.

2. How does fragmentation occur?

Fragmentation can occur naturally through physical forces such as erosion, volcanic activity, or collisions. In technology, fragmentation can occur through processes such as data compression or file fragmentation.

3. What are the effects of fragmentation on the environment?

Fragmentation can have negative effects on the environment, such as disrupting habitats and ecosystems, reducing biodiversity, and contributing to soil erosion and water pollution. It can also have positive effects, such as creating new habitats for certain species.

4. How does fragmentation impact data storage?

In data storage, fragmentation can lead to slower performance and reduced efficiency as the computer has to search for and piece together fragmented data. It can also increase the risk of data loss if the fragmented pieces are not properly organized.

5. Can fragmentation be prevented or reversed?

In some cases, fragmentation can be prevented by implementing proper planning and management techniques. In technology, fragmentation can be reversed through processes such as defragmentation, which reorganizes fragmented files for better performance. However, in natural environments, fragmentation may be difficult to prevent or reverse.

Similar threads

Replies
2
Views
1K
  • Computing and Technology
Replies
3
Views
1K
  • Computing and Technology
Replies
16
Views
4K
  • Computing and Technology
Replies
6
Views
5K
  • Computing and Technology
Replies
2
Views
3K
  • Computing and Technology
Replies
6
Views
3K
  • Computing and Technology
Replies
10
Views
5K
  • DIY Projects
2
Replies
62
Views
7K
  • DIY Projects
Replies
23
Views
4K
Replies
2
Views
5K
Back
Top