While a system can work fine this way, you might want to (re-)visit/read the “in defence of swap” article by Chris Down given earlier (see Which swap option do you use? - #28 by nam1962).
If you have multiple drives in your main system, you can stripe swap partitions, just create one on each drive and set the same priority for each in fstab.
Yes I am considering an inexpensive NVMe device in a PCIe X1 M.2 adaptor as a temporary upgrade until I can manage to get a new system, that should give me a fast swap device and likely /boot and root whilst I retain home on the existing hard disk.
In the meantime I have enabled zswap with systemd-swap, but it’s too recent to comment on any difference experienced.
I claim no expertise or special knowledge on this but whilst that comment sounds logical it is in contradiction to the zswap Linux Kernel documentation which states that amongst the potential benefits of zswap:
Desktop/laptop users with limited RAM capacities can mitigate the performance impact of swapping
Based on that it seemed a good idea to try zswap, especially as my swap device is a relatively slow spinning hard disk for which potentially reduced swap I/O may be beneficial.
Yes but a system can not create more RAM out of RAM right?
So it depends on the needs of your OS, if you have enough spare RAM to benefit from it.
In your case you mentioned:
Which looks to me like extreme limited, you can try ofcourse, but IMHO it would have same effect as not starting any extra apps besides the OS
Anyhow my advice is a faster HD, and you will only experience the difference when you use a faster HD, because “as-is” you already have a slow system so you don’t notice if it stays slow or not compared to a faster HD…
Tuned disk I/O scheduler (mq-deadline) for the SSD
Tuned kernel parameters in /etc/sysctl.d/99-sysctl_tweaks.conf
16GB DDR3 Ram
In these days I deliberately attempted to put under stress my system: as I stated in the other discussion I opened giantic (in the order of 6/8GB) projects in Gimp while in the meantime I had the browser (Chromium) opened with hundred of tabs, and many other applications; as well while having I/O tasks, like copy backup files of my other machines (eg. Macrium Reflect backup images) from an external disk connected on Virtual Box where there is Win 7 installed: here, from virtualized Win 7, I copyed a 15 GB file on the main SSD where Manjaro is installed and where everything resides (apart VirtualBox OSes files, which are in the second SSD).
I also executed multitasking CPU hungry processes.
Well, the system doesn’t showed any hiccups, was fluyd and smooth as ever, spectacularly rock solid.
So, I’m OK without swap.
Sure, because I have the habit to squeeze my computers
In principle, when I installed Manjaro on February 2019, I setup the swap partition on the SSD: wasn’t a good choice, because during swapping the system showed some slowdowns.
Then as I mentioned, I choosed zram: was better, but during swapping, little slowdowns occurred.
The curious thing is that the swapping has always been minimal: I never seen it go above 50 MB; and also occurred when a plenty of ram was still available.
More informations:
Previously (when I had the swap) I also seen the OOM in action, sure: when triggered, used to cause a momentary flickering on the screen.
…and obviously I got the confirmation (of OOM triggered) from the journal log.
In these days, instead, no signal of OOM in action.
Anyway, I tweaked a lot the memory management using sysctl.
My knowledge was based on the quite older implementation, pre kernel 5.0 to be exact. Now btrfs wiki states they support it, with limitations, which still makes swap partition a better deal.
I am a paranoic so I thinking that any party who would steal my laptop would immediately do “dd” of my drive and start looking for keys and cookies in swap.
Was the same for me; was also used with few ram usage, and I’ve done my tests to see how the system behaves without swap [*].
These should be also controlled by sysctl kernel’s settings: is about the dirty pages.
I updated my post in the other discussion with my current settings which also includes the settings for dirty pages and watermark_scale_factor (which controls the aggressiveness of kswapd).
[*] after days of RAM stressing, differently from when I had the swap, the system have a better reactiveness, is more “fluid”.