Requirement to keep free space on SSD?

krs


Joined
Sep 16, 2008
Messages
3,555
Reaction score
610
Points
113
Location
Canada
With a traditional spinner hard drive, it is suggested that one keeps a certain amount of free space available - maybe 5 or 10% on a large 500GB drive.
Suggestion of the percentage varies depending where one looks.

Is that suggestion to keep free space also valid for an SSD with APFS considering the file structure is totally different?
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,771
Reaction score
2,111
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
The amount of free space required has nothing to do with the type of media involved. It has more to do with the space needed for the swap file and other dynamic things. If you run out of space, you will not be able to swap memory to disk and thus the OS will start misbehaving VERY badly until you free up space.

So keep at least 20% of your drive free.
 
OP
krs

krs


Joined
Sep 16, 2008
Messages
3,555
Reaction score
610
Points
113
Location
Canada
The amount of free space required has nothing to do with the type of media involved. It has more to do with the space needed for the swap file and other dynamic things. If you run out of space, you will not be able to swap memory to disk and thus the OS will start misbehaving VERY badly until you free up space.

So keep at least 20% of your drive free.

Yes, but ..................

The 20%+ number has been around for a while.

I thought it was that high because
a. Typical hard drives used to be much smaller, so 20% of an 80GB drive was only 16GB whereas 20% of the 500GB drive I use now is 100GB. 16GB of disk space for swap seems reasonable, 100GB for that same purpose now, does not
b. There was a lot less RAM in a typical system, 4MB was very common, I now have 16MB, so with much more RAM, memory swap should be less - activity moitor for me shows swap usedas 3.3 MB
c. Why I thought an SSD requires less free space for memory swap is because read/write is much faster than a spinner drive. Thus 20% is recommended on a spinner drive to try to use free disk space that physically is quickly accessible for read/writes whereas on an SSD all free space anywhere would be quickly accessible.
Maybe I'm overthinking the last part.

However,I think 20%+ on a 500GB or 1TB drive seems rather excessive.

PS: Did a bit of googling.

Opinions are all over the map - from a low of 5% to a high of 30%
Few seem to actually attach a hard number. ie something like 15% or 20GB.
The point many make about SSD's is that they need additional free space because of the way data is stored compared to a traditional magnetic media.
The SSD itself includes extra storage not accessible (or reported) to the user, but how much varies from unit to unit.
 
Last edited:
Joined
Oct 16, 2010
Messages
17,542
Reaction score
1,576
Points
113
Location
Brentwood Bay, BC, Canada
Your Mac's Specs
2011 27" iMac, 1TB(partitioned) SSD, 20GB, OS X 10.11.6 El Capitan
Here's a good recent read that might give you a bit more information and some reasoning...

UNDERSTANDING SSDS
WHY SOLID-STATE DRIVE (SSD) PERFORMANCE SLOWS DOWN AS IT BECOMES FULL


Why solid-state drive (SSD) performance slows down as it becomes full • Pureinfotech



EDIT:
But their comment about the amount of free storage space to leave that I missed on my first glance seems rather excessive to me:
The rule of thumb to keep SSDs at top speeds is to never completely fill them up. To avoid performance issues, you should never use more than 70% of its total capacity.

I can recall reading that 20GB± Free Space on a solid-state drive, regardless of total capacity, was quite adequate for the average user. I would think that 30% free is waaaaay overkill, especially on any larger capacity drive of 500GB or more.






- Patrick
======
 
Last edited:
Joined
Feb 1, 2011
Messages
4,436
Reaction score
2,154
Points
113
Location
Sacramento, California
The 20% rule was always a rough rule of thumb, never a hard and fast rule. It's just that empirically, it seemed that was about the level where most folks who were hitting their head with rotating disk hard drives (RDHD's) fell. But not all of them. When good utilities came available that showed RDHD fragmentation, it became clear that if a RDHD was highly fragmented that it could become full as early as 60% full, but if a RDHD was meticulously kept defragmented, it might be able to go beyond 90% full with no adverse effects.

As hard drives became bigger and bigger, one might have expected the 20% rough rule of thumb to have gotten smaller. It didn't. One can only guess that the metadata that fills up a hard drive also becomes larger as the amount of ordinary data also becomes larger. And fragmentation also probably plays a bigger role on bigger RDHD's too.

SSD's are different. They don't suffer from fragmentation. But they still fill up with virtual memory, databases, caches, scratch files, etc. They don't follow the 20% rule though. It turns out that, as you would expect with RDHD's, SSD's do better with higher total capacities. They also do better based on how good the TRIM they have running works. (Not all third party SSD's work with Apple's implementation of TRIM.) I've already started hearing from folks with tiny 256GB SSD's starting to hit their head, and it happens well before their hard drive is full. However, I haven't heard from a single person who has hit their head with a 1TB SSD yet. It's still too soon to estimate a rough rule for how full it's safe to let an SSD get. But I guaranty you that it will be well short of 100%.
 
OP
krs

krs


Joined
Sep 16, 2008
Messages
3,555
Reaction score
610
Points
113
Location
Canada
I read a fair amount of articles on this subject yesterday - some mentioned that the 20% number came about years back specifically for Windows to allow for defragmentation. The Mac still had only a niche market share then.

So perhaps for the Mac the 20% number was always an overkill.
I remember years ago I downloaded some software that generated tons and tons of log files in the background to the point where I got a warning message that my drive was getting full. When I received the warning there were only a few MB of free space left.
I panicked for a short while because I thought my Mac would shut down and I would not be able to boot up again, but I managed to delete the log files, got rid of that problem app and everything was good.
Right now, with a 500GB drive, I try to keep 100GB free, but right now I'm down to 63GB free and so far I have not noticed any problems. But I want to switch to a 500GB SSD to try Mojave and was trying to get some idea if that amount of free space is still OK....or even less is acceptable.
 
Joined
Feb 1, 2011
Messages
4,436
Reaction score
2,154
Points
113
Location
Sacramento, California
So perhaps for the Mac the 20% number was always an overkill.
No, it was never overkill. I arrived at the 20% number independently, from a lot of feedback from users. Others had their own guesses, but I can tell you that mine was based on a solid number of reports.

Right now, with a 500GB drive, I try to keep 100GB free, but right now I'm down to 63GB free and so far I have not noticed any problems. But I want to switch to a 500GB SSD to try Mojave and was trying to get some idea if that amount of free space is still OK....or even less is acceptable.
Like I said, it's too soon to speculate. If you plan to fill up your SSD that much, it would be an excellent idea to have a backup of all of your data.
 
OP
krs

krs


Joined
Sep 16, 2008
Messages
3,555
Reaction score
610
Points
113
Location
Canada
........but I can tell you that mine was based on a solid number of reports.

What actually happens when the free space goes down to the 10...5...2% level?

Like I said, I was down into the MB range of free space when I got a pop up with this warning that I was running out of free space on my drive.
disk-full.png

I tried to find out at what amount of free space Apple brings up this warning - hopefully before there is an issue.
Came across this thread where the warning seems to come up with about 3GB free space left on a 128GB drive.
That is a lot less than 20%
Stop receiving "Your disk is almost f… - Apple Community

PS: I'm planning to run Mojave on an SSD I ordered today.
This will be on a test basis only - I'll keep my main drive with El Capitan, so if Mojave crashes it won't be a problem.
 
Joined
Feb 1, 2011
Messages
4,436
Reaction score
2,154
Points
113
Location
Sacramento, California
What actually happens when the free space goes down to the 10...5...2% level?

It varies. Some users get a low disk space warning, many don't. Often your Mac will start acting really flaky. It may start showing an increasing instance of the rotating beachball, or it might just slow down a lot. In extreme cases you may suffer data loss.

I tried to find out at what amount of free space Apple brings up this warning - hopefully before there is an issue....
That is a lot less than 20%

You didn't read what I wrote above about the 20% rule simply being a rough rule of thumb, and the actual amount depends on how fragmented your hard drive is, and possibly other factors.

I go into this entire topic in a lot of detail here:

OS X Maintenance And Troubleshooting
Item #5 and Note #1

I know that it's hard to believe that Apple's hard drive management is so bad that you can have a huge RDHD and that it could be for all intents and purposes "full" when it has many gigabytes of free space still reported as available. But this happens routinely to users. It's really old news at this point, and I'm not going to debate it. I present my findings for folks who feel that "forewarned is forearmed."
 
Joined
Mar 30, 2008
Messages
159
Reaction score
6
Points
18
Swap files still exist. One way around them is to boost your physical RAM, as it means less space devoted to virtual memory.

I remember when OS X came out and always-on virtual memory became a thing. I wound up removing OS X from my everyday computer at the time, a clamshell iBook, and downgrading it to only OS 9 to avoid the swap file bloat (that computer only has a 6GB drive!) and to keep the hard drive in spin-down mode as much as possible to juice out more from the battery while preserving the drive's life (not to mention working quieter; those old laptop drives were noisy).

It amazes me how little RAM has increased in newer machines, all things considered.
 
Joined
Feb 1, 2011
Messages
4,436
Reaction score
2,154
Points
113
Location
Sacramento, California
It amazes me how little RAM has increased in newer machines, all things considered.

For many years now Apple has been working on more and more advanced memory compression, and memory management, in the Mac OS. Their memory compression got so good that a few years back Apple stopped offering the option on some Mac models to bump the RAM up past 16GB. Users were furious over this, despite the fact that there were no reports of any user running into a situation where lack of RAM caused them huge problems.

More recent Macs offer the option of more RAM, but I'm not sure that there are many folks who actually need it.


 
OP
krs

krs


Joined
Sep 16, 2008
Messages
3,555
Reaction score
610
Points
113
Location
Canada
It amazes me how little RAM has increased in newer machines, all things considered.
Why would you think a lot more RAM is required as time moves on?
I always related the amount of RAM needed to the number of apps running at the same time and their RAM requirements.
For the typical user and the applications they use, that wouldn't have increased a lot over the years.
I bumped up the original 4 GB that came with my 2012 Mini to 16 GB;I was going to go for 8 GB but at the time 16 GB wasn't much more money.
When I look at my memory use today on Activity Monitor, it shows 0 bytes swap and 0 bytes compressed.
Upgrading to 8 GB of RAM would probably have been enough.

I think the other consideration is that with SSD's, memory swap is much, much faster than with the spinner drives, so much less impact on actual performance.
 
Joined
Oct 16, 2010
Messages
17,542
Reaction score
1,576
Points
113
Location
Brentwood Bay, BC, Canada
Your Mac's Specs
2011 27" iMac, 1TB(partitioned) SSD, 20GB, OS X 10.11.6 El Capitan
Why would you think a lot more RAM is required as time moves on?
I always related the amount of RAM needed to the number of apps running at the same time and their RAM requirements.


That used to be almost the standard rule some years ago and before Apple improved their Mac OS Memory Management.

I would still consider it a valid investment providing it can be purchased at a reasonable amount, AND be able to install it!!!



- Patrick
=======
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,771
Reaction score
2,111
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
Depends on the use case. If you are going to use a machine one application, one tab at a time, then you can make do with lesser memory. That isn't how people work these days, browsers with 20 tabs open, half a dozen apps running at the same time, manipulating RAW images that explode into billions of pixels, editing 4K video, etc. etc.

At the rate that storage has ballooned, the leaps in RAM (while getting a lot faster over time), the amount has been slower for sure.

For my normal workflow, 32GB on my Mac Mini is the right amount of memory for me to do everything I want without needing to shut anything down.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top