SUMMARY: Swap is using the /tmp directory.

From: Lubbers, Louis (Lubbers.Louis@kpmg.nl)
Date: Fri Sep 15 2000 - 09:56:23 CDT


I received many helpful responces, thank you very much.

>I set up a Solaris 7 system without a swap partition. I don't want it to
>swap out, because it will impact the performance too much. However, the
>system is now using the /tmp directory as the swap space. The /tmp
directory
>has a maximum size of 8248 KB, as reported by df -k. This fills up really
>fast so I cannot use it any more to store temporary files. How can I
change
>the the 8284 KB value?

The swap is not actually using the space in the directory /tmp on the root
partition. The swap is made up from the internal memory left over after the
boot + the swap space you set through a swap partition and/or swap file. So
if you were to install an application, the swap the above 8248 KB would
smaller because less internal memory is left over. There are two tmp
directories: /tmp and /var/tmp. Files stored in the first one are deleted
with a reboot and files stored in the second one survive a reboot. The idea
is that users use the second tmp directory for storing temp files.

The swap is controlled in the /etc/vfstab file. To delete the swap all
together delete the entry that begins with swap. However, this is not
advisable, because there are resources that live better in swap space, they
would slow the system down if they were forced to live in the internal
memory.

To add swap space do the following:

mkfile 128m /.swapext.swp
swap -a /.swapext.swp

Of course, you can choose another location then /.

To make this change permanent, add the following line to you/etc/vfstab (use
tabs not spaces):

/.swapext.swp - - swap - no -

Of course, the "official" way to make permanent swap space is to create
swap partition rather then a swap file. The swap partition you make when
you install your Solaris. It is possible to do this later, but this is very
involved and risky.

Useful manpages:
swap, tmpfs

Useful URLs:
http://docs.sun.com/ab2/coll.47.8/SYSADV1/@Ab2PageView/48202?Ab2Lang=C&Ab2En
http://docs.sun.com/ab2/coll.47.8/SYSADV1/@Ab2PageView/idmatch(FSSWAP-76986)

Louis.

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

S
U BEFORE POSTING please READ the FAQ located at
N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
. and the list POLICY statement located at
M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
A To submit questions/summaries to this list send your email message to:
N sun-managers@sunmanagers.ececs.uc.edu
A To unsubscribe from this list please send an email message to:
G majordomo@sunmanagers.ececs.uc.edu
E and in the BODY type:
R unsubscribe sun-managers
S Or
. unsubscribe sun-managers original@subscription.address
L To view an archive of this list please visit:
I http://www.latech.edu/sunman.html
S
T



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:17 CDT