Healablesoda18 wrote:
When opening an certain application and using it I have 5 Gigs of swap in use and I cannot find a consistent source where it tells me what amount is safe...
It all depends on what you mean by safe.
Generally, any amount is "safe". The concern is what sort of hit you take on performance by using swap and with SSDs, high amounts of swap could mean additional wear and tear on the SSD to the amount of writes.
With the latest Mac, the SSD bandwidth is very high and an in general use one may not even feel any slowness due to it unless you are use some app that is very high performance and needs lots of RAM to achieve its high performance. Even then, performance may still be acceptable. In the days of the old spinning hard disk, when an app required swap, it would literally slow to a crawl. With modern Macs and SSDs, it isn't near as bad.
The real issue is the amount of writes to the SSD that swap generates. An SSD location can only be written to so many times before it will fail. SSD manufacturers will generally use a term called Maximum Terrabytes Written (TBW) which is a measure of lifetime and probability of failure. This number however was derived at in terms of what they will cover under their warranty. Much like a car, the manufacturer may have a warranty 75,000 miles but will generally run 100K, 200K or even more.
With that said, where it is problematic in modern Apple products, is the SSD is soldered to the logic board and if the SSD fails, the logic board needs to be replaced ($$$$$$$).
In conclusion, if you are continuously using large amounts of swap on a daily basis, then you really need to either minimize the number of concurrently running apps or replace the machine with more RAM for the way you use your computer. There are apps available that you can get that will track that total number of writes to the drive to see if there could be a problem in the long run (DriveDX comes to mind and an open source command line app smartctl), Unfortunately, Apple does not publish the TBW for the SSDs in Macs. So, you could get an app like DriveDX and run the demo for a month and see how much wear you are actually creating with the swap. Generally speaking, anything less than 40 GB/day and you will be more likely to get a new computer because it is outdated before you get into the gray area of SSD failure.