It is important that your system swap is setup.
Particularly in low memory installations the database operations will quickly consume the available memory and then will halt your server due to out of memory issues.
Setting up swap will help mitigate any out of memory issues due to low memory.
Please ensure that the swap is not setup on the same disk as the database disk. If this is not possible in your installation, it is still ok, but it is not recommended as there may be some performance issues.