count being equal to the desired block size:
dd if=/dev/zero of=/swapfile bs=1024 count=65536
mkswap /swapfile
swapon /swapfile
/etc/fstab to include the following entry:
/swapfile swap swap defaults 0 0
cat /proc/swaps or free to inspect the swap space.