r/AskComputerScience • u/boredguy501 • Nov 05 '11
Does hard drive capacity affect PC speed?
Basically, I've been told that once a hard drive gets filled past about half of its capacity that it slows down. Is this true for all hard drives (or even true at all)?
2
u/bo1024 Nov 05 '11
By the way, you'd be best off posting questions like this to r/hardware.
1
u/boredguy501 Nov 05 '11
Sorry, I didn't realize :(
1
u/bo1024 Nov 05 '11
No problem! It's just better related and so you will probably get good answers there.
5
u/barrow_whits Nov 05 '11
There are a number of things that affect PC performance and hard drive performance overal and yes capacity in use does play a factor.
Other factors that may cause better or poor performance with drives can include:
Raid VS non raid configurations
Location of paging file on the drive and size of paging file
Speed of HDD, 5400, 7200 10000 and 15000 RPM spindle Speed (does not apply to SSD)
Interface of drive PATA, SATA, SAS
Type of Drive - SSD, Hybrid, Normal platter type and if it has native NCQ support
Motherboard bus and interface - SATA I, II, III
Total capacity in use
Fragmentation of files and size of files in general
Sector Sizes and filesystem in use, NTFS, HPFS, EXT2 etc...
I hope that helps a litte.
3
u/Masiosare Nov 05 '11
I think you misread the question.
You are right, total capacity does affect perfomance, the bigger, the slower.
But the question text asks about remaining disk space. In that case, the answer is no, most of the time.
Having a hard disk at 50% doesn't make it slower that having it empty. On the other hand, disk fragmentation (which usually becomes bigger as the disk gets full), does get makes the disk slower because has to jump many times in the plates of the disk to get a file.
I hope this answers the question.
1
-1
u/thebighouse Nov 05 '11
And some systems (Linux) use swap, a hard drive-based super-cache if you will.
1
u/zedoriah Nov 05 '11
From barrow_whits post:
2. Location of paging file on the drive and size of paging file
2
u/superAL1394 Nov 05 '11
This has to do mostly with drive allocation... as you put more data on the drive, the head has to travel farther to find blank spots. This increases latency and the 'feeling' of the machine being slow.
2
u/T_C Nov 07 '11
The correct answer is: it depends on what the PC is doing!
Say it's doing mainly "I/O bound" tasks - ie. tasks that are mainly reliant on moving data back and forth - eg. sorting huge files. For those tasks, the disk is heavily used by the PC, so disk performance is very important. Perhaps those tasks would run faster with (say) a 30% full disk, compared to (say) a 70% full one.
But say the PC is only doing "CPU bound" tasks - ie. tasks that are mainly reliant on CPU speed, and do not touch the disk at all - eg. multiplying two huge numbers in software. Those tasks do not use the disk at all, so disk performance is irrelevant, as long as there's enough free space for the operating system to run normally.
In summary, there's no answer to your question as phrased. A PC might or mightn't run slower with a fuller hard disk. It depends entirely on what that PC is doing.
1
u/shaunol Nov 08 '11
Just a quick note: I don't know how a hard drive aligns its head to be at the right section of the platter. If the head has moved to the very outer edge of the platter and the data it intended to read had just wizzed by right before the head got there, it would technically have to wait for the data it requires to come back around again. If the data is at the inner edge of the platter, the data would come back around more quickly. I'm guessing that hard drives are optimized for this scenario by reading the data that it did find, caching it for the next rotation and piecing the data together but you can't get away from that physical limitation completely. The latency is probably neglible. I wouldn't be surprised if this fact is the reason why denser platters can often-times be faster. When perpendicular recording first became mainstream, you always tried to find the drives with the highest platter density to get the best speeds.
1
u/Supercloaker Aug 19 '24
So long story short, stop being a hoarder for files ya don't need, and then I can play devil may cry 5 and sekiro in 60 fps again? Great to know! Im now only gonna keep the games that I KNOW I'm going to play!
1
u/bigmanfonz May 15 '26
A year later and I'm battling the same issue to raise my frame rate for Sekiro lol
1
u/Traditional_Sir479 Apr 16 '25
Yes but because windows has bad programming
I've often had significant delays in opening task manager or file explorer because my slow hard drive assecory would need to activate
-2
u/flexipad Nov 05 '11
I think it has something to do with, let's call it, "HDD RAM". Of course, it doesn't make sense per se, but allow me to explain what I mean.
Whenever the RAM isn't catching up with the tons of bytes the CPU is loading into it, it caches a portion of it (generally, the part where the oldest data is stored) into the HDD, and so, the HDD acts as a secondary memory if you will.
Now, with HDD (not with SSD as far as I know, please someone clear it up) the overall speed of Read/Write is way slower than that the RAM has. So, whenever the HDD starts filling up, there's a smaller size that can be used as a helper to the RAM, and so, the CPU takes a longer time because it can't use the RAM as much as it'd want to (because, again, the RAM is filled too).
I'm not sure if I made myself clear. If not, be sure to ask. Also, what barrow_whits said is quite true as well.
0
Nov 23 '11
[deleted]
1
u/Inverter Nov 30 '11
SSDs maintain their speed to full capacity.
Just as filesystem-level fragmentation can affect HDD read and write speed, (in particular) the write speed of an SSD can be affected by fragmentation at the disk-sector-vs-erase-block level, i.e. when the SSDs garbage collection has to kick in to free an erase block in order to write new data.
9
u/zxoq Nov 05 '11
It's not true that over 50% full has a significant effect. The change is small until the harddrive is about 80% full. After that the lack of space can make it difficult for the operating system to find areas to put new files and scatters them all over the drive.
Imagine a putting a huge book in a library that's almost full, either you need to move some books out of the way or look through all bookcases until you find a free spot large enough for it. Another solution is to split the book in the middle and put it in two places, this makes it slower to read the book though since you need to find all pieces first.
When there is very little space left, the operating system might not be able to use the harddrive for temporary storage at all. This severely affects performance, and when it happens many programs will crash with out of memory errors and speed will be atrocious.