this post was submitted on 22 Feb 2025
26 points (96.4% liked)

Linux

50389 readers
878 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

MGLRU.

On my low RAM/CPU netbook it is a game changer; thanks to ZRAM the netbook is perfect for browsing the internet/light work. When running my backups (creates big tarballs) or Ansible though, my desktop/applications would freeze/stutter noticeably. Enabling MGLRU simply solved the problem of freezes/stuttering, it feels like magic and besides ZRAM, I don't know of any other lever with this massive impact on desktop performance.

Just wanted to share this, for other users with low RAM/CPU hardware. I would assume the observed difference is less dramatic, once 8GB of RAM are available, but I would love to hear about other experiences.

I would also love to hear/learn about other levers with high impact to tweak for low RAM/CPU desktop devices. Anything else to tweak under /sys /proc which has impact on performance?

top 4 comments
sorted by: hot top controversial new old
[–] geoff@lemm.ee 6 points 13 hours ago (2 children)

Did you need to compile a kernel to enable it? I’ve just done the project of installing Debian on a 20 year old iMac with 2.5 GB of RAM, and while zram definitely seems to help, I’d love to try this as well.

[–] wolf@lemmy.zip 1 points 5 hours ago* (last edited 5 hours ago)

I am running Debian 12 on all of my devices with Debians vanilla kernel! :-) Just enable MGLRU on Debian like it is described in this blogpost.

One further tip for ZRAM: On my device the LZ4 algorithm was noticeable faster than ZSTD (didn't try ZSTD with the enabled MGLRU, yet) and it was important to disable the RAM page read-ahead on my device.

[–] notanapple@lemm.ee 3 points 9 hours ago (1 children)

Yes, but maybe debian enables it by default? You can check by running cat /sys/kernel/mm/lru_gen/enabled

If the result is 0x0007, it means MGLRU is fully enabled.

[–] wolf@lemmy.zip 1 points 5 hours ago

Debian does not enable it by default, cat /sys/kernel/mm/lru_gen/enabled will be a 0.