login about faq
Tuesday, June 7: Updated rules and membership roles are posted on their own page.

I have an assignment due tomorrow for part of it I have to in simple terms describe what fragmentation and what de-fragmentation software does.

Here's what I've got, I need to know it's explained clearly enough that someone who doesnt know a lot about computers would still understand.

"The computer’s hard drive must be defragmented regularly in order to keep it running as fast as possible. When a file is deleted it leaves an empty space on the hard drive, this space is filled by the next file saved to the hard drive, but if next file is larger than the empty space the file is split, the first part fills the empty space the second saved to the next available empty space. This is called fragmentation, when the hard drive is defragmented the data is rearranged so there is only one part to every file."

alt text

asked Oct 17 '10 at 18:40

markd12's gravatar image

markd12
3.5k86112150

edited Oct 27 '10 at 09:10

Are you asking for help the day before an assignment is due?

(Oct 17 '10 at 20:19) Seb Seb's gravatar image

Well I already had the assignment complete I was just checking it through and wanted to see would my analogy be simple enough.

(Oct 18 '10 at 03:08) markd12 markd12's gravatar image

I don't think I need to ask you not to plagiarise my answer for your assignment. It'll be available on google quickly and easily in about 2 minutes anyway. Use it as a guide. If there is anything you've missed, adapt your assignment to discuss it. You could always cite an entire paragraph, if you know how. That's the way I used to do my assignments ;). Keep in mind, though, lockergnome may only be considered about as accurate as wikipedia.

The problem of fragmentation can be likened to trying to find a parallel parking space large enough to fit your car. Filling the side of the road full of parked cars is easy enough. Now imagine 2 random cars leave their space and drive off. The total size of these two spaces would otherwise permit a truck to be parked, but the cars weren't parked next to each other, so the spaces aren't joined. Defragmenting is the task of moving the spaces to the very end.

The above analogy gives great justice to one cause of file fragmentation, but there's another cause that can't easily be likened to anything else. Files can grow in size. Imagine that the cars could grow in size, while they're parked in their spaces. A huge problem, yeh? You'd get cars growing into each other! Well, unlike cars, files can be split into fragments. If a file grows and there is no free space immediately following it, the OS will create a new fragment for the growth somewhere else on the drive. Likewise, files can (but rarely do) shrink. This causes a similar problem to the previous topic of cars leaving noncontiguous free spaces (free spaces that aren't next to each other).

So what's the problem with that? Well, hard drives use mechanical motors to jump to locations on the platter, where it reads the data from. If a file is contiguous (all the parts are next to each other), the hard drive doesn't have to work so hard to retrieve the entire file. If parts are scattered all over the drive, you can imagine the drive will have to work a lot harder to reassemble the file. Some people believe solid state drives are unaffected by file fragmentation. Not long ago I was banned from #chris for attempting to educate someone about the effects of file fragmentation on SSDs. Consider a drive that is 90% full with a series of small free-space fragments scattered making up the 10% free space. Now consider what happens when the drive attempts to fill 5% of that free space with a single, large file. Write speed is affected. This is a fairly uninformed and optimistic conclusion compared to reality. Solid state drives write in blocks of 512KB to 1MB, which means every time you write even 1 byte to an SSD, your drive controller has to read the destination block from the flash chips, put the information in and then write the destination block back to the flash chips. Before the information can be rewritten to the flash chips, the block must be erased from the flash chips (unless it's already been erased by TRIM). Most files won't end right on the boundary of these blocks, so each block ends up being a read-erase-write cycle just to write data to the drive. Many will attempt to use TRIM as defense for this, but TRIM can only work optimally when a file being truncated or deleted entirely uses an entire flash block. If the file doesn't use an entire flash block, the problem still exists.

answered Oct 17 '10 at 21:07

Seb's gravatar image

Seb
(suspended)

edited Oct 17 '10 at 21:08

Don't worry I wont plagiarise, our lecturers have told use never to use wikipedia due to the fact anyone can edit it so you can't be sure its accurate. I wouldn't cite a paragraph as I prefer to write everything myself, but you have pointed out I forgot to mention files getting larger so I'll add something to it before handing it in thanks.

(Oct 18 '10 at 03:06) markd12 markd12's gravatar image

You're welcome. The technical programmers term is "append". When you add data to the end, you "append" to it (and you can only ever add data to the end, or replace data in the middle.. you can't add data in the middle). When you take data off the end of it, it's called "truncate" (and you can only ever truncate from the end, again). The shortfall of file systems -- they let you create fragments other ways, but not by inserting or removing data from the middle of files. D:

The same should be said about lockergnome. Anyone with enough karma points can edit or delete any post they wish.

(Oct 18 '10 at 06:59) Seb Seb's gravatar image

I am a Geek and this info was useful! If I was not a geek I would still be able to understand it though.

answered Oct 17 '10 at 19:02

ryebread761's gravatar image

ryebread761
6.1k184210274

I'd like to simplify it so that anyone can understand it.

Imagine you're in a field, and you have 6-10 paper bags. It would take longer to get those paper bags if they are far apart (fragmented). When you defragment your hard drive, all of those bags come together so that you can easily access it when it's needed.

I hope I made a little bit of sense. I tried the best that I could to put it in a language that everyone could understand.

answered Oct 17 '10 at 19:54

catchatyou's gravatar image

catchatyou
18.8k76161359

edited Oct 17 '10 at 21:48

I wouldn't say "idiot terms."

Just because someone takes no real interest in computer/tech, doesn't make them an idiot. What if that person was a doctor, or psychiatrist? ;)

(Oct 17 '10 at 19:59) Justin Justin's gravatar image

That isn't the point he's trying to say make it so anyone can read your paper

(Oct 17 '10 at 20:13) FilipinoPower FilipinoPower's gravatar image

I realize that. But shouldn't it be "Average terms" or something simular?

(Oct 17 '10 at 20:14) Justin Justin's gravatar image

I love coming back to see that I probably didn't choose the right wording. I'm sorry if I offended anyone.

(Oct 17 '10 at 21:49) catchatyou catchatyou's gravatar image

Think of the dumbest person in your school. Would he be able to read it and explain it to someone?

(Oct 17 '10 at 21:56) FilipinoPower FilipinoPower's gravatar image

You simplified it and made it more complicated at the same time.

(Oct 17 '10 at 21:58) ryebread761 ryebread761's gravatar image

Sorry if I sound like a jack@ss but I hate when some dumb@ss tries to tell me about some half-baked concept that they heard. Ex: Someone tried to tell me that any car can be converted into a hybrid.

(Oct 17 '10 at 21:59) FilipinoPower FilipinoPower's gravatar image

Converting cars to hybrid is easy. Just paint it red with a black stripe down the middle and put a little foil turbine on each end of the spoiler and you have hybrid petrol + wind + super awesome!

(Oct 17 '10 at 23:00) Seb Seb's gravatar image

lol That still doesn't help with the performance of the actual car all that would do is charge the battery.

(Oct 28 '10 at 23:03) FilipinoPower FilipinoPower's gravatar image
showing 5 of 9 show all

Nice work Markd12! Couldn't of said it better myself. Thumbs up to you mate!

answered Oct 18 '10 at 07:42

Database's gravatar image

Database
4.2k125155199

thanks :).

(Oct 18 '10 at 09:57) markd12 markd12's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Become a Gnomie!


Join Us in the Chat Room

Tags:

×114
×10
×5

Asked: Oct 17 '10 at 18:40

Seen: 1,199 times

Last updated: Oct 28 '10 at 23:03