Quote:
Originally Posted by Zerix01
I still feel that delayed allocation can help prolong this issue.
|
Delaying allocation does have some very negative consequences, IE: data loss. To the FS data loss is unacceptable. Delaying allocation greatly increases the chances of data loss.
Quote:
|
As well as (not sure if this is a Linux or file system specific thing) Linux tries to keep space after files that are written to allow for future expansion of the file. This should limit how many sectors have multiple unrelated files or parts of files in them.
|
This is definitely a file system specific implementation but with a SSD you cannot think like this because the drive does not actually put data in a specific place. The file system is a basic abstraction of the hardware it will say write to point x and the hdd will take point x and do f(x) to find the physical location it will place the file. For rotating drives this mapping is much more straight forward because, the best place to put data is on the outside of the platter so it will try to do so as best it can but with a SSD your data could be anywhere, this does not hurt performance because access time is almost negligible. You actually gain performance by having your data split across different memory chips because of parallelism (obviously there is a limit to how much splitting here). This is why you see such good read speeds from SSD, you are reading multiple chips at the same time. A Single chip cannot read at 250MB/s probably not even half (or even 1/4) that so you read multiple chips to get that performance. SSD's strength is in parallelism as with multi-core processors, doing multiple things at the same time is a good thing.
The next thing to consider is that HDDs/SSDs are dumb they don't know what data is live or what data is dead. If you delete a file the HDD does not actually physically erase the file. Here is the major reason why SSDs degrade of time: Rotating HDDs don't mind overwriting data they can do it many many times, SSD's on the other hand cannot they try their best to avoid doing it at all costs, so they just put the new data into fresh new space (normal hdds do this as well but don't have any trouble overwriting old data). Once this space is out then it must start deleting old data, hence the slower writes, you must erase a block before you can write to it. Here is where the TRIM command comes into play, with TRIM the SSD isn't so stupid. Instead of just blindly writing to all the free space and waiting until it actually needs to delete to delete it can free space as you modify your file system (ie: delete/update files). So you are making holes for new data to enter and the cool thing is that it doesn't matter that these holes are scattered all over because again the access time is very low. Also your disk is doing all of this in the background so you don't notice it either.
In the end it doesn't matter where the data is because the drive will not delete until it must. So arranging data to eliminate the "wrong place wrong time" extra overhead probably wouldn't really save you that much because it really isn't even that much. I would be curious to see a very low level image of an SSD to see what kind of old files you can find on it.
Hopefully most of this information is accurate, this is at least my idea of how the world works.
P.S. i dislike UPS they messed up my 2 day shipping and turned it into 4 days. 8:44 A.M. INCORRECT ROUTING AT UPS FACILITY. I paid like 2/3 more for 2 day shipping

. So hopefully tomorrow I will have my drive.