How ever if a script needs to read swap you can add it in OpenVZ
Most hosts don't like to offer swap because of the load it generates on the SANs, I/O from alot of random reads and writes.

If swap is something you really need you can create a swap file, adjust to following to suit your needs:

1) Create a file to use as swap:
-this command will create 1GB file
dd if=/dev/zero of=/swapper bs=1M count=1024

2) Create a swap are in the file:
mkswap /swapper

3) Turn the swap on:
swapon /swapper

4) To make the swap area persistent on reboot add the following line to /etc/fstab:

/swapper swap swap defaults 0 0

5) Run:

free -m

You should now see your available swap space.