Unix tutorial Contact as





Adding more SWAP space

This article taken from http://bsdvault.net/sections.php?op=viewarticle&artid=33



Here's the procedure for adding 512 MB of swap space:

# cd /usr
# dd if=/dev/zero of=/usr/swap0 bs=32m count=16 (FYI, 32x16=512)
# chmod 640 swap0
# chgrp operator swap0
# echo "/dev/vn0c /usr/swap0 swap" > /etc/vn0c
# vnconfig -ae


Add:

if [ "X${vnconfig_enable}" = X"YES" ]; then
echo -n ' vnconfig'; vnconfig -ae
fi

to /etc/rc.local (if it doesn't exist, create it!)

You can then check your swap space by running top




Back to main page


Copyright © 2003-2016 The UnixCities.com
All rights reserved