swap space confusions


 
Thread Tools Search this Thread
Operating Systems Solaris swap space confusions
# 1  
Old 07-09-2009
swap space confusions

hi,
i am a little bit confused over swap space issues on solaris.
what i know is that mostly all solaris swap space is configured on /tmp as a tmpfs.

but i do receive alerts from my monitoring server that one of my server has exceeded 95% treshold. when checked at tmp, it shows only 12%.

see my outputs.

#df -k /tmp
Thu Jul 9 16:24:24 MEST 2009
Filesystem kbytes used avail capacity Mounted on
swap 651664 77288 574376 12% /tmp

#more /etc/vfstab
...
...
swap - /tmp tmpfs - yes size=9003m


#swap -s

total: 17640232k bytes allocated + 131200k reserved = 17771432k used, 575368k available

#top
..
70 processes: 62 sleeping, 4 running, 2 zombie, 2 on cpu
CPU states: % idle, % user, % kernel, % iowait, % swap
Memory: 8192M real, 136M free, 17G swap in use, 561M swap free


So, my question is how do i calculate the real swap usage?
and does my output shows any increase above 95% treshold on swap.
please guide me...thanks guys
# 2  
Old 07-09-2009
swap(1M) - swap administrative interface (man pages section 1M: System Administration Commands) - Sun Microsystems

tells you:
Quote:

swap -s

Print summary information about total swap space usage and availability:

allocated: The total amount of swap space in bytes currently allocated for use as backing store.

reserved: The total amount of swap space in bytes not currently allocated, but claimed by memory mappings for possible future use.

used: The total amount of swap space in bytes that is either allocated or reserved.

available: The total swap space in bytes that is currently available for future reservation and allocation.

These numbers include swap space from all configured swap areas as listed by the -l option, as well swap space in the form of physical memory.
So, you see that /tmp is almost empty but your memory is being thoroughly utilised, and hence the alerts.

Last edited by frozentin; 07-09-2009 at 05:21 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Swap space not getting used

CENT OS 5.8 server running with a huge java application which uses up all my ram (4GB) and requires excess of atleast 2GB.But the swap is not getting used up((8GB) of swap space left unused) leading a wierd error and stopping application to stop working. Any one here dealt with the same kind of... (2 Replies)
Discussion started by: shiek.kaleem
2 Replies

2. Solaris

Swap space

Dear All, I have a swap space of 16G available in Sol 10. I have allocated it as a seperate file system. But when the RAM Is full used , the system gets rebooted and the swap is not being used,. Any reasons for this. Rgds Rj (5 Replies)
Discussion started by: jegaraman
5 Replies

3. Linux

How to reclaim the space which i used to increse the swap space on Xen,

Hi, i have done a blunder here, i increased the swap space on Xen5.6 server machine using below steps :- 1056 dd if=/dev/zero of=/root/myswapfile bs=1M count=1024 1057 ls -l /root/myswapfile 1058 chmod 600 /root/myswapfile 1059 mkswap /root/myswapfile 1060 swapon /root/myswapfile ... (1 Reply)
Discussion started by: apm
1 Replies

4. Solaris

Swap Space

Could someone please explain how you know how much swap space you have on your system. See below: # swap -s total: 8225048k bytes allocated + 4863488k reserved = 13088536k used, 4008032k available # swap -l swapfile dev swaplo blocks free /dev/dsk/c3t0d0s1 32,25 16... (2 Replies)
Discussion started by: jamba1
2 Replies

5. Linux

swap space

Hi, I want to know how can i free the swap space if it is completely full, 0 mb remaining, (1 Reply)
Discussion started by: manoj.solaris
1 Replies

6. UNIX for Dummies Questions & Answers

Swap space used???

Plz I need to know how much swap mem free and used i have. I'm using Compaq Tru64 UNIX V5.1A (rev 1885) Thanx (1 Reply)
Discussion started by: Lestat
1 Replies

7. AIX

swap space / paging space

how do you get the paging space reduced without rebooting the machine ? the os is aix (2 Replies)
Discussion started by: aaronh
2 Replies

8. UNIX for Dummies Questions & Answers

pageing space vs swap space

Hello, I would like to know if there is any difference between the pageing space and the swap space. Thank you in advance. (1 Reply)
Discussion started by: VeroL
1 Replies

9. UNIX for Dummies Questions & Answers

swap file space

I occasionally get a "out of swap file space" error. How can I fix this?????? Thanks (9 Replies)
Discussion started by: dtooth71
9 Replies

10. UNIX for Dummies Questions & Answers

SWAP SPACE

All, I am using SOLARIS 7. I have formated my hard drive to consist of only 150MB of swap space. This isn't enough considering I am running Oracle. How do I create additional swap space? Please list sources or commands. PS mkswap doesn't work on my machine. ( I have swap and... (5 Replies)
Discussion started by: SmartJuniorUnix
5 Replies
Login or Register to Ask a Question