Swap Space on Linux
To find out how much swap space has been allocated and is currently being used, use either the swapon or top commands on Linux:
You can use the mkswap(8) command to create swap space. The swapon(8) command tells Linux that it should use this space.