Creating a 512 MB file using below command.
Check the swap availability using the below command
To turn off Swap
# dd if=/dev/zero of=/swap1/swap0 bs=1024k count=512 # chmod 600 /swap1/swap0Convert the file in to Swap usingthe belwo command
# mdconfig -a -t -t vnode -f /swap1/swap0 -u
# swapon /dev/md0
Check the swap availability using the below command
# swapinfo OR # topMake the setup persistent across the reboot add the below line to /et/rc.conf
swapfile="/swap1/swap0"
To turn off Swap
#swapoff /dev/md0
No comments:
Post a Comment