Hacker News new | ask | show | jobs
by jewel 958 days ago
Memory compression (via zswap) has made a big difference for me, on Linux, when on a constrained device. It makes a lot of sense for desktop workloads where most time is spent waiting for user input. For me it was a lot faster than swapping to disk, although with NVME drives that may no longer be the case.

I thought I had read when the M1 came out that they had memory compression turned on by default but I'm not an Apple user.

2 comments

Memory compression has been enabled macOS since Mavericks/2013. Windows, Android/ChromeOS, and a lot of big name Linux Distros (like Fedora/Ubuntu) all default to some form of memory compression support out of the box as well IIRC.
It's enabled on my 2023 MacBook Air, or at least Activity Monitor shows an amount of compressed memory.