logoalt Hacker News

mixmastamyktoday at 4:18 PM2 repliesview on HN

You have a buggy program. Zswap has been available for quite a while.


Replies

cromkatoday at 7:31 PM

>You have a buggy program.

As in memory leak? No.

> Zswap has been available for quite a while.

Zsawp is not Zram, which is a distant relative of the macOS on-the-fly compression I was talking about. Zram is buggy and still advised against regular use (https://www.reddit.com/r/AsahiLinux/comments/1i3mdrw/comment..., https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-...). Zsawp itself is enabled by default in Asahi.

Zram and Zsawp are mutually exclusive on Linux. On macOS, both concepts coexist – except macOS is able to compress individual memory pages (https://news.ycombinator.com/item?id=38300432) on the fly. Zram is a compressed RAM block device with a hard capacity limit.

There is really no comparison here at this point. macOS is vastly superior in that regard.

baqtoday at 6:19 PM

I'm yet to see a linux distro with memory configured correctly out of the box. (I haven't looked too hard, but the defaults are abysmal.)

show 1 reply