If you are facing issue with multi processing task in your Ubuntu system and system showing your Swap memory full. You can simply increase the Swap memory by running some commands in command terminal
sudo swapoff -a
when you run this command, system asked you to enter password, enter yo system login password. after that you can run these commands.
sudo dd if=/dev/zero of=/swapfile bs=1M count=3000 sudo mkswap /swapfile sudo swapon /swapfile
Now your Swap memory size increase with 3GB