How can I create or resize the swap memory on a linux device (Amazon Linux AMI). The problem came when I run a program and it gave me that errors:
IOError: [Errno 28] No space left on device INFO (theano.gof.compilelock): Waiting for existing lock by unknown process (I am process '947') INFO (theano.gof.compilelock): To manually release the lock, delete /root/.theano/compiledir_Linux-3.4.43-43.43.amzn1.x86_64-x86_64-with-glibc2.2.5-x86_64-2.6.8-64/lock_dir WARNING (theano.gof.compilelock): Something wrong happened: <type 'exceptions.IOError'> [Errno 28] No space left on device
When I execute the free to check out the memory of the device, the linux device printed me:
total used free shared buffers cached Mem: 22058544 7581508 14477036 0 144316 7025740 -/+ buffers/cache: 411452 21647092 Swap: 0 0 0
How can I resize the swap to use it or create a new swap file. Thanks!