Hacker News new | past | comments | ask | show | jobs | submit
As others have said, macOS does this by default and it's quite impressive. I have a long running daemon with a memory leak. By its nature, the leaking memory is very repetitive and easily compressed. Right now this daemon has tried to claim 2.5GB of memory, but it's been compressed to a mere 450MB of actual memory! And because it's a memory leak, it never accesses this old stuff, so it never gets decompressed. Only 20MB of RAM is held that isn't compressed.

Of course, it would be far better to just not have the memory leak...but in the mean time, macOS memory compression is making the leak nearly a none issue.

loading story #50566967
loading story #50563792
loading story #50563111
loading story #50575963
loading story #50575246
loading story #50566131
loading story #50563504
loading story #50569500
loading story #50562441