Summery : Pls Help

From: Zanwar.Prashant@uktransco.com
Date: Fri Sep 13 2002 - 04:52:17 EDT


Hi,

Thanks to all who replied. Answer of Simon Millard, I received very
first and is most appropriate one. Special thanks to Simon who helped
in time.

Others who replied are:
Casper dik
Amit mahajan
Kumar Prem S.
Michael Schulte
Mathew Stier
AWM

Many thanks to you all. My purpose got served by Simons mail.

Hers is his answer:

If I remember correctly, the size of tmpfs is defined by the amount of
swap. If you have no controls on tmpfs, then you could run out of
swap
space - I have actually seen this.

If you want to ensure that you don't run out of swap by filling tmp,
you
can set a limit in /etc/vfstab by using size=150m in the options.
This
sets the max size of tmp to 150mb.

So in a nutshell, tmpfs uses the same storage as swap so it can go up
or
down. By setting a limit in /etc/vfstab, you restrict the maximum
size
of /tmp so that it doesn't grab all of the swap if it fills up.

I hope this helps.

Simon

P.s. tell the client it technical and that it is the correct behaviour
for Solaris.

Cheers
Prashant Zanwar

Hi all,

Here I got the question. Little tough, about swap usage and /tmp file
system. I request all to reply immediate.

I got Sun - Cluster installed on the system. This is having following
configuration,
####################
# swap -l
swapfile dev swaplo blocks free
/dev/vx/dsk/swapvol1 133,8 16 2049824 1278928
#########################
# grep -i swap /etc/vfstab
/dev/vx/dsk/swapvol1 - - swap - no -
swap - /tmp tmpfs - yes -
#NOTE: volume swapvol (swap) encapsulated partition c0t0d0s1
/dev/vx/dsk/rootdg/swapvol /dev/vx/rdsk/rootdg/swapvol
/var/tmp ufs 3 yes -
##################
# swap -s
total: 928264k bytes allocated + 224880k reserved = 1153144k used,
621440k available

############################
# df -k /tmp
Filesystem kbytes used avail capacity Mounted on
swap 633888 2064 631824 1% /tmp
# df -k /tmp
Filesystem kbytes used avail capacity Mounted on
swap 633240 2064 631176 1% /tmp
# df -k /tmp
Filesystem kbytes used avail capacity Mounted on
swap 634688 2064 632624 1% /tmp

I can understand, if the values in the swap -s change, like all
values may change, as its virtually allocated, and memory is also
involved, which is freed and used as per the requirement.

My question is I am seeing that, /tmp also varies, which is quite
unanswering for me to the customer, who found this.

And can somebody tell me that, what exaclty I shall do to find out,
swap used by system and thus by users. Please clarify. Please
immediate.

I will summerize,

cheers
regards
Prashant Zanwar

______________________________________________________________________

The views expressed in this email are not necessarily the views of
Transco plc, and the company, its directors, officers or employees
make no representation or accept any liability for its accuracy or
completeness unless expressly stated to the contrary.

This e-mail, and any attachments are strictly confidential and
intended for the addressee(s) only. The content may also contain
legal, professional or other privileged information. If you are not
the intended recipient, could you please notify the sender
immediately and then delete the e-mail and any attachments, you
should not disclose, copy or take any action in reliance of this
transmission. Unless expressly stated to the contrary, no contracts
may be concluded on behalf of Transco plc by means of e-mail
communication.

You may report the matter by calling us on +44 (0)1455 230999.

You should not copy, forward or otherwise disclose the contents of
this e-mail or any of its attachments without express consent.

Please ensure you have adequate virus protection before you open or
detach any documents from this transmission. Transco plc does not
accept any liability for viruses.

Transco plc is part of Lattice Group
Transco plc is registered in England: Company number: 2006000
Registered Office: 130 Jermyn Street, London, SW1Y 4UR
http://www.transco.uk.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:59 EDT