I have an SSD and 8GB memory, and no swap partition. My normal use never ever needs more than 3-4GB. However from time to time I observed that some memory-leaking programs can still freeze the system that it becomes immediately unusable. I noticed that a process kswapd is then running.
- What is kswapd likely doing without swap space? I don't want the system to swap, neither to a swap partition nor to a swap file.
In my usage habits I would consider any process that causes full RAM as harmful and would prefer the process to be automatically killed rather than that swapping is necessary.
- Is there a way to disable swapping completely (not just reduce swappiness) and force the Kernel to kill processes that take eg. 50% of RAM?