Featured Worklog

Price Search



PC Apex Sponsor


PC Apex Sponsors



PC Apex RSS Feeds

RSS Feed for PC Apex Reviews & ArticlesRSS Feed for PC Apex PC Modding WorklogsRSS Feed for the PC Apex Daily DisturbanceRSS Feed for the latest PC Apex Site NewsRSS Feed for PC Apex Affiliate and Web NewsRSS Feed for PC Apex Deals and Steals

Go Back   Apex Community Forums // Other Forums // Designers Corner // Coding / Scripting / Programming

Coding / Scripting / Programming Discussions on all manner of coding and scripting.

Reply
 
LinkBack Thread Tools Display Modes
Old 25-March-06, 04:33 PM   #1 (permalink)
Apex Master Tech
Executioner's Avatar
Default A question for programming guru's

Why is ther not a program that automatically keeps your hd from "fragmenting" in the first place? In my uninformed opinion (Iknow nothing about why a hd files get fragmented in the first place) think it would be more effecient if the way the pc puts struff on the hard drive would be in some kind of order, group similar files together then there would be less need to defragement. It seems there is no ryme or reason behind whear a file gets written onto the hard drive.
would it be more effecient and make more sense for files to be grouped together when there put on the hard drive?
Realize I'm an individual that still can't figure out how to put windows on it's own partition and have no clue as to the difference between a fat file or the other type.
just a thought.
Executioner is offline     Reply With Quote
Old 25-March-06, 04:54 PM   #2 (permalink)
P'Hoe'toshop Fanatic
Jobistober's Avatar
Default

It's not such an easy task to prevent harddisk fragmentation altogether.

When data is initially written to the disk, it is written as one long sector. But over time, files are moved and deleted from the harddisk, which leaves "holes" in the data. When more data is written to the disk, the system attempts to fill in these holes. Hence, fragmentation occurs.

The easiest way to help gain back the speed you loose on your HDD from fragmentation is to defrag... set it so it runs at night when you're not using the computer. That's what I do and it works beautifully.
Jobistober is offline     Reply With Quote
Old 25-March-06, 07:38 PM   #3 (permalink)
Apex Techie II
Default

Fragmentation is a way of life on hard disks, there's really no logical way to avoid it once you understand how data is physically written to the disk. One way would be to resort the data every time a file is modified or deleted, but that would slow things down considerably. Not to mention every time you appended a byte you would need to shuffle stuff around. Then again you could leave a buffer around each file, but if it outgrew the buffer you would still fragment, and not to mention when you fill up the drive with data and buffers data would have to be split up to fit in the buffer space.

A good enough solution is just to defrag nightly
vmspionage is offline     Reply With Quote
Old 25-March-06, 08:18 PM   #4 (permalink)
Apex Master Tech
The Captain's Avatar
Default

If one reads carefully, Windows actually trys to defrag the HDD when not in use all by its self *pets windows* , however, fragmentation occurs anyway because it only does this when the disk is idle, and not in use *kicks Windows*. Well, you disk is always used, whether you to it to or not. So, it becomes the task of the end user to run HDD defragmentation tools to speed things up. The built in Defragmentation tool is the first step when you defrag the drive. This puts everything in in a nice and neat order. Then one needs to run a third party defragmentor that optimizes the HDD by putting the most frequently used files at the begining of the HDD. IE Norton's Speed Disk. and System Mechanic's Disk Optimizor. This task should be perform usually at the end of every month, but no later than once every quarter. Hope that helps
The Captain is offline     Reply With Quote
Old 25-March-06, 10:36 PM   #5 (permalink)
Apex Tech Fanatic Supreme
joecoin's Avatar
Default

Quote:
Originally Posted by vmspionage
Fragmentation is a way of life on hard disks, there's really no logical way to avoid it once you understand how data is physically written to the disk. One way would be to resort the data every time a file is modified or deleted, but that would slow things down considerably. Not to mention every time you appended a byte you would need to shuffle stuff around. Then again you could leave a buffer around each file, but if it outgrew the buffer you would still fragment, and not to mention when you fill up the drive with data and buffers data would have to be split up to fit in the buffer space.

A good enough solution is just to defrag nightly

So, once solid state drives become the norm, will we still get fragmentation?
joecoin is offline     Reply With Quote
Old 25-March-06, 11:33 PM   #6 (permalink)
Apex Master Tech
The Captain's Avatar
Default

yeah, still
The Captain is offline     Reply With Quote
Old 25-March-06, 11:34 PM   #7 (permalink)
Apex Master Tech
The Captain's Avatar
Default

yeah, still have it. it will never go away.
The Captain is offline     Reply With Quote
Old 11-April-06, 03:11 PM   #8 (permalink)
Apex Techie Wannabe
Default

Actually, there are plenty of file systems that don't have a fragmentation problem. Pretty much any *NIX file system. There is only one that I can think of off hand that even has a defrag utility.

Windows however, is plagued with this issue.
http://www.extremetech.com/article2/...1455687,00.asp

The answer from kgwagner14 is right on the money.
Verillion is offline     Reply With Quote
Reply

Bookmarks

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question for Guitar Guru's BigAkita Anything Goes 3 04-September-05 03:19 AM
Question for the Programming Pimps! drougnor Anything Goes 6 13-March-05 04:31 AM
any .avi --> mpeg/svcd guru's?? need help! AMD-playa Anything Goes 1 26-January-05 09:37 PM
For all you Ram guru's?? biohazardpc Anything Goes 5 01-April-04 12:30 AM
Programming question Cheshiredemon Coding / Scripting / Programming 5 25-September-03 07:01 AM


All times are GMT -5. The time now is 04:28 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright PCApex.com, GameApex.com, ForumApex.com 2001 - 2008
Advertisements

Page generated in 0.17717 seconds with 9 queries