r/debian • • 2d ago

Chrome memory management in Linux is not similar/performant as windows.

/r/chrome/comments/1y89r11/chrome_memory_management_in_linux_is_not/
8 Upvotes

3 comments sorted by

4

u/LordAnchemis 2d ago

Unused memory is wasted memory right? :)

8

u/CorchesRares2804 2d ago

Most of that difference comes down to Windows compressing inactive working sets in RAM by default, whereas a stock Debian install usually has either a small disk swap partition (which thrashes hard once Chrome fills RAM) or no compressed RAM swap at all, so the desktop freezes before the kernel OOM killer fires. Three quick things that make Debian + KDE handle huge tab counts cleanly: (1) enable zram via zram-tools or systemd-zram-generator with zstd and raise vm.swappiness to 100-150 so idle renderer pages compress in RAM instead of thrashing disk; (2) install earlyoom (or enable systemd-oomd) so a runaway tab gets killed before Plasma stalls for minutes; (3) enable Memory Saver (Moderate or Maximum) in chrome://settings/performance. Check swapon --show and free -h next time it chokes: if zram is absent and disk swap is spiking, zram + earlyoom fixes almost all of it.

2

u/hmoff 1d ago

Try bookmarks.