SUMMARY:increasing swap space

From: Sundaram Ramasamy <rsundaram_at_hotmail.com>
Date: Thu Dec 12 2002 - 16:39:27 EST
you can increase swap space as follows:
- create a file, which can be used as swap file (e.g. /usr/swapfile)
with "mkfile -v xm /usr/swapfile" (x ist the size in MB)
- add with "swap -a /usr/swapfile
After that can see it with "swap -l"
The swap space is now only increased until the next reboot.

To make it permanent, create a command file in /etc/rc2.d.
E.g. S99addswapfile (with rwx r-- r--).
Content:
#!/bin/sh
#
# add swap space
swap -a /usr/swapdatei


    1. Create a swap file to increase the current swap size using mkfile
(create the file with the indicated size ) and then add the file to the swap
using the command swap

    2. Add a new disk or partition with type "wu" and mount it like swap in
/etc/vfstab


swap -a to add...
swap -d to delete...

mkfile 100m <filename>
swap -a <filename>

There is 2 ways you can do this.

1) create a file on the filesystem using 'mkfile' and then use 'swap -a
<filename>
2) find an existing unused partition on a disk and use 'swap -a
/dev/dsk/cXtXdXsX'

you can then use 'swap -l' to list the status of the swap areas


create a file using "mkfile" of required size
 ex: mkfile 50m /export/home/swapfile1

and using swap -l it lists what is swap size
use
swap -a to add the swap space
ex: swap -a /export/home/swapfile1


To make it permanent, create a command file in /etc/rc2.d.
E.g. S99addswapfile (with rwx r-- r--).
Content:
#!/bin/sh
#
# add swap space
swap -a /usr/swapdatei


Yes you can. To increase the swap you have to create a file for the
swapspace with a size of 1000MB

# mkfile 1000m /myswapfile

and then you can add this file to the swap space

# swap -a /myswapfile

You can remove this swapspace with

# swap -d /myswapfile

and a list of you current swapspace get you with

# swap -l

If you have a raw disk slice to use, say /dev/dsk/c1t0d0s1, you
would type "swap -a /dev/dsk/c1t0d0s1" as root and then add
/dev/dsk/c1t0d0s1 to the /etc/vfstab file if you want to make it
permanent.

If you want to add swap in an already-in-use partition, use "mkfile" to
make a huge empty file.

mkfile 100m /opt/swapspace

would create a 100meg file, /opt/swapspace.  You would then use the swap
command to activate it: "swap -a /opt/swapspace".

btw, "swap -l" will list what is currently being used, and "swap -d"
will remove a file or partition from being used as swap
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Dec 13 13:18:24 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:00 EST