Skip to main content
Version: 7.0

Creating SWAP file on Linux

If you are installing Passwork on Linux and building libraries from source, we recommend enabling a swap file. The build process can use up to 4 GB of RAM: lack of free memory will cause an error.

Enabling swap file:

/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=5120
chmod 600 /var/swap.1
/sbin/mkswap /var/swap.1
/sbin/swapon /var/swap.1

Disabling swap file:

/sbin/swapoff /var/swap.1
rm -rf /var/swap.1