Se viene un #debian virtualizado para seguir jugando con cositas del núcleo, memoria, #zram, #zswap, #hardening y #optimización 🙂

#optimizacion_linux #linux #gnu

To tackle the #RAM issue i keep having on #Linux, I'm giving #zram another try :)) except this time, I'm adding that while retaining my existing swapfile, and I'm also disabling #zswap (as I have before). will see how it goes

https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-what.html

Les discussions sur #zswap et #zram reviennent souvent, voici un article intéressant sur la question.

Debunking zswap and zram myths

zswap and zram are fundamentally different approaches with different philosophies. If in doubt, use zswap.

I've been trying to figure out how to address/work around #Linux 's hunger for RAM and non-ideal/insufficient controls around this. I remembered seeing an article by #KDE about them trying to address this themselves on their new distro and stumbled upon this issue they created - pertaining to topics like #Zram, #Zswap, etc.

It's great to see that this issue is acknowledged for once instead of the constant stream of Linux
extremists swearing that it's not an issue, or somehow it being an issue is an attack to them and their beloved OS/distro/DE. Also it's always a suspicion I have but even in this short issue thread, it's clear that Linux people (hence, devs) are often only familiar with #Windows (and #Android), so the benchmark is always them - which isn't a problem 'cept they both suck ass (in a lot of aspects but esp this topic on RAM usage/OOM handling).

I'm glad to see at least one comment mentioning how
#Apple does it on #macOS (maybe also #iOS) - which offers a far superior experience and is exactly why 8 freaking GB RAM on a #Mac or 4GB RAM on an #iPhone is no big deal at all (plenty, even), unlike on other systems/platforms. It's high time for Windows to die so our beloved Linux devs look at Apple instead for benchmark/inspirations. It doesn't help ofc that macOS can easily be insufferable to use when ure already on Linux land, but I promise it won't even be close to half as shitty as Windows, and there def are alot of things we could learn/benefit from and replicate.

🔗 https://invent.kde.org/kde-linux/kde-linux/-/issues/552

🔗 https://mastodon.social/@verdre/116182376380456569

Perbandingan ZRAM dan ZSWAP pada Linux: cara kerja, kelebihan, kekurangan, dan rekomendasi mana yang sesuai dengan kebutuhan RAM dan workload Anda.

#fediverse #ZSWAP #Linux #Lebih

https://dalam.web.id/sistem-terbuka/zram-vs-zswap-linux-optimasi-memory

ZRAM vs ZSWAP di Linux: Mana yang Lebih Cocok untuk Manajemen Memori?

ZRAM dan ZSWAP adalah dua cara Linux menangani swap dengan kompresi. Pelajari perbedaan, kecepatan, dan kapan menggunakan masing-masing untuk sistem yang lebih responsif.

Layar Kosong

I've been slowly moving to #zswap. Though now, quite quickly thanks to this article. 😅 Especially when using #NVMe, the advantage is quite apparent. 😉

https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-what.html

Debunking zswap and zram myths

zswap and zram are fundamentally different approaches with different philosophies. If in doubt, use zswap.

預設把 zswap 打開

前幾天 Lobsters 上看到「Debunking zswap and zram myths」這篇,想到預設其實可以開 zswap。 用 GRUB 的話可以這樣開: echo 'GRUB_CMDLINE_LINUX_DEFAULT=$GRUB_CMDLINE_LINUX_DEFAULT zswap.enabled=1' | sudo tee /etc/default/grub.d/99-zswap.

Gea-Suan Lin's BLOG
預設把 zswap 打開

前幾天 Lobsters 上看到「Debunking zswap and zram myths」這篇,想到預設其實可以開 zswap。 用 GRUB 的話可以這樣開: echo 'GRUB_CMDLINE_LINUX_DEFAULT=$GRUB_CMDLINE_LINUX_DEFAULT zswap.enabled=1' | sudo tee /etc/default/grub.d/99-zswap.

Gea-Suan Lin's BLOG
Years living in error about using #zram on all my #linux machines, but now the best explanation that I've never read on RAM usage by Chris Down in https://chrisdown.name/2018/01/02/in-defence-of-swap.html makes me migrate all my host to native kernel #zswap and file swap.
#CachyOS, #Nixos and others: upgrade your mind !
In defence of swap: common misconceptions

tl;dr: Having swap is a reasonably important part of a well functioning system. Without it, sane memory management becomes harder to achieve.