You are not logged in.
Hello,
I have a Dell with 4 Giga RAM, i3 processor and 8 giga for swapp, but when I work on my web projects, once I launch webstorm + node js (ng serve) + firefox I can no longer work , I have performance problems so I wondered if it was possible to put firefox and nodejs processes manually on the swapp?
or maybe if you have recommendations for it
thank you in advance
Offline
That's not how swap works. Stuff that currently in use can't be on swap.
Try to increase your swappiness value:
https://www.howtoforge.com/tutorial/linux-swappiness/
Offline
You can run in cgroups and limit their RAM usage (forcing them to use swap - there's only one "p" - space earlier) but from the description of your problem, you're simply running OOM.
Memory swapped (there's two "p" in the perfect) out to a HDD is abysmally slower than RAM (esp. if the swap partition is inside a LVM), so you either need to lower your overall active RAM consumption or add more RAM.
Sidebar: are we sure this is a memory limitation and not eg. the CPU?
Online