Stress testing & swap usage

My question is this
In 8GB and 3.7 GB swap system who is on stress testing and uses 0% of swap memory
is realy need swap partition ?
Here is the test i make

https://streamable.com/r1w2u

https://help.ubuntu.com/community/SwapFaq
Hopefully, that link might be helpful.

With this video and at stress test running i see 0% used swap and i wandering
if at that 'hard' condition the swap was 'sleeping' so there is no need to exist.
When is start helping ram? (when start fire ?) That's my opinion.

On the one hand, a system can work without any swap file/partition.
On the other hand, swap is a long standing standard OS feature. IMHO running a system without a swap means to decrease its stability and introduce quite obscure and unexpected errors.

The "stress test" wasn't pushing RAM to the limits, thus, no swap was used.

Swap is a good safety net if you don't want the system to lock up or terminate the largest running application in RAM when the system is extremely low on memory/swap. I have 16 GB of RAM with 4 GB of swap, since I can push my memory to limits if I run many virtual machines and store files in RAM (tmpfs) disks.

If you wish to experiment by exhausting your RAM, try creating a RAM disk and fill it up. This command will create a 7 GB RAM Disk at /tmp:

sudo mount -t tmpfs -o size=7G tmpfs /tmp
cat /dev/zero >> /tmp/dummy

When done:

sudo umount /tmp

You're right, executing the orders you suggested was the first time I saw swap activated. My mistake was when I saw the use of 100%of ram and the rise in temperature I assumed it was the hardest test for the ram.

If swap is never used, then keep swap On in order to avoid unexpected issues.

I havent used a swap partition in MATE for the last 3 years. I used to have 8GB of ram and an 8GB swap partition. It was hardly ever used and about 3 years ago I bought another 8GB ram module so I had 16 GB ram. I figured since I never even touched the swap I didnt really need it. Turns out I was right. 3 years later and 16GB ram was fine, never needed anymore. I sometimes run VM’s and use 6GB for the VM I boot up. Been fine with that also. I imagine I could exhaust all the ram if I really went crazy with running large VM’s but since the system is so fast without using swap I would probably just add more ram before I added swap.

The only downside I have ever had is you cannot use hibernation without a swap file. I solved this problem by simply never turning off my PC. I did wonder if running a PC 24/7 would reduce its life expectancy but it seems this is not the case.

@pallebone
Try the above and watch swap use .

What for. Doing so provides me no benefit.