I recently moved from Windows to Arch Linux because Windows and Chrome were using too much memory, but my laptop still feels slow and Firefox triggered three out-of-memory events during one session. Swap is enabled. I need to browse the web and occasionally use tools such as VS Code and the Arduino IDE, while also finding a practical replacement for Microsoft Word and PowerPoint. What lightweight desktop environment, browser habits, applications, or memory-management settings would help on a system with only 4GB of RAM?
4 Answers
Consider LibreOffice Writer and Impress instead of the desktop Microsoft Office applications. If you have an Office subscription, the web versions may also be practical, but running Windows and Office in a virtual machine would be especially demanding on a 4GB laptop. Chromium-based browsers can work, but no browser will stay lightweight if many tabs and web applications are open.
The biggest issue is probably running several Electron-based applications together. VS Code and the Arduino IDE are effectively additional browser-style applications, so try not to keep both open alongside Firefox with lots of tabs. A lightweight desktop such as Xfce, or a simple window manager like i3 or Sway, can leave considerably more memory available than GNOME. Zram may also help, although it uses some CPU and is not a replacement for adding physical RAM.
Before changing everything, gather the laptop's CPU, storage type, desktop environment, installed software, and current idle and peak memory usage. Arch itself is not usually the main problem; GNOME, browser tabs, Electron applications, and background services can add up. Disabling unnecessary startup services and animations may help, but upgrading the RAM is the most effective long-term improvement if the hardware allows it.
Four gigabytes is a tight limit for modern software, so usage habits matter more than finding a magic browser. Keep only a few tabs open, close programs when you are finished, and check your actual memory and swap usage with tools such as free or htop. Swap prevents immediate crashes, but it is much slower than RAM, especially on a hard drive, so heavy swapping will still feel sluggish.

A window manager can use very little memory, but it requires more manual setup. Xfce is likely a gentler starting point if you are still learning Linux.