I checked my Specs and I have 4GB RAM but just 1GB VSwap. Is that the cause?
I then tried to follow the first steps of creating manual swap file Like THIS Guide.
This is my output - saying lastly “Not permitted”:
OUTPUT
[root@erp .bench]# fallocate -l 4G /swapfile
[root@erp .bench]# chmod 600 /swapfile
[root@erp .bench]# mkswap /swapfile
Setting up swapspace version 1, size = 4194300 KiB
no label, UUID=38a8804d-df0c-47b6-ae31-e1135d669099
[root@erp .bench]# 4194300^C
[root@erp .bench]# swapon /swapfile
swapon: /swapfile: swapon failed: Operation not permitted
[root@erp .bench]# sudo swapon /swapfile
swapon: /swapfile: swapon failed: Operation not permitted