Can anyone advise on how to configure the system to run Firefox,
Evolution + MS Teams on the system when there is little RAM(4G ram)?
With the simultaneous loading of these applications and working with heavy sites,
the system begins to go into swap.
And does not respond to anything for 15 … 50 minutes
as a temporary solution: I disabled swap and configured earlyoom
Perhaps there are other options to achieve stable system operation
under such a load (without adding RAM and without using earlyoom)?
Use SSD for swap.
Make swap big enough, 8-16 GiB or more.
It is better to use NVME or Intel Optane for swap.
You may get 16-32 GiB Intel Optane M.2 modules on a second market. You may use adapters to install M.2 disks (modules, really) in a PCI-E slots.
Of course, adding RAM is much better. Or upgrade system - change motherboard.
You are only talking about the applications, but not which D yo use. Can I assume you already have a slim one?
And in the end, when your hardware can’t cope with the load you ask from it, then it can’t. I am not sure, but I thought that 8 GB RAM is recommended as the minimum for desktop usage of openSUSE. Thus when you have only half of it, what do you expect?
I still have a test install of Gnome Leap on 2GB RAM and swap on rotating rust and while not blazing fast it is still usable with FF and Evolution (well, not with 50 tabs open…).
It is true that Gnome became a memory hog over the years though and XFCE or LXQT or even Plasma might be better choices with 4GB RAM.
Possibly you are using some indexing software - stop it.
Change HDD to a fast SSD (256 GiB or more with 256 MiB or more DRAM buffer on it).
Use swap big enough.
Try to update BIOS.
Try to use KDE (without indexing files) and other DEs. XFCE maybe not so slim in our days.
You may change CPU to Core 2 Duo T7800: https://en.wikipedia.org/wiki/List_of_Intel_processors .
Systems with 4 GiB RAM works Ok after tuning. Of course, 8 GiB is much better.
Leap may work good enough with 2-3 GiB RAM when using NVME SSD for swap.
systemd-run --unit=my-firefox --user --scope -p MemoryHigh=600M -p MemoryMax=700M -p MemorySwapMax=0 firefox
Job for my-firefox3.scope failed.
See "systemctl status my-firefox.scope" and "journalctl -xe" for details.
in the log file i see:
2021-02-18T15:51:48.203262+03:00 localhost polkitd[1040]: Registered Authentication Agent for unix-process:3742:17605 (system bus name :1.72 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.utf8)
2021-02-18T15:51:48.207002+03:00 localhost systemd[2640]: -.slice: Failed to enable controllers on cgroup /user.slice/user-1000.slice/user@1000.service, ignoring: Permission denied
2021-02-18T15:51:48.207436+03:00 localhost systemd[2640]: my-firefox.scope: Failed to add PIDs to scope's control group: Permission denied
2021-02-18T15:51:48.211632+03:00 localhost systemd[2640]: Failed to start /usr/bin/firefox.
2021-02-18T15:51:48.212044+03:00 localhost systemd[2640]: my-firefox.scope: Unit entered failed state.
2021-02-18T15:51:48.218813+03:00 localhost polkitd[1040]: Unregistered Authentication Agent for unix-process:3742:17605 (system bus name :1.72, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.utf8) (disconnected from bus)
I understand that the process launched from the current user does not have enough rights.
but what rights are missing - what to add … it is not clear
any ideas ?