Swap issue on a Solaris10 box


 
Thread Tools Search this Thread
Operating Systems Solaris Swap issue on a Solaris10 box
# 1  
Old 12-01-2010
Swap issue on a Solaris10 box

One of our system is running 3 oracle db instances. And as per prstat o/p the system is approximately using 78G of swap memory

Code:
# prstat -J -n 2,15

PROJID    NPROC  SWAP   RSS MEMORY      TIME  CPU PROJECT
  4038      557   31G   29G    22% 113:23:43  10% proj1
  4036      466   20G   19G    15% 2359:46:4 7.6% proj2
  4023      452   25G   17G    13%  67:33:14 5.8%  proj3
       3       44  221M  226M   0.2% 105:55:41 1.0% default
     0      141  859M  543M   0.4% 801:01:21 0.3% system
     1       18  333M  329M   0.3%   6:41:31 0.0% user.root

but vmstat, swap -l shows approximately 115G free swap (see bold ) out of total 123G configured swap (zfs o/p)


Code:
swapfile             dev  swaplo blocks   free
/dev/zvol/dsk/rpool/swap 256,1      16 4194288 849952
/dev/zvol/dsk/swappool/swap1 256,3      16 251658224 


vmstat -S 1 3
 kthr      memory            page            disk          faults      cpu
 r b w   swap  free  si  so pi po fr de sr lf s0 s1 s2   in   sy   cs us sy id
 0 6 0 109555680 13515096 0 0 5119 16 21 0 8 0 0  0  0 26340 160046 36768 17 7 76
 0 1 0 120233928 25672592 0 0 3992 0 0 0 0  0  0  0  0 15273 78922 15473 17 3 80
 1 0 0 120220304 25661568 0 0 24 0 0  0  0  0  0  0  0 14509 66103 14879 19 2 79
 0 1 0 120215496 25656360 0 0 39 0 0  0  0  0  0  0  0 17999 76188 20237 20 3 77
 

rpool/swap                                     2.03G  76.6G  2.03G  -
swappool                                        120G  13.9G    18K  /swappool

why there is difference in figures of swap in o/p of prstat and vmstat& swap -l
# 2  
Old 12-01-2010
try the df -h command

swap is also the /tmp directory. Any space used there is reported against swap by some utilities. By the way do not let /tmp get anywhere near full. You can get a kernel panic when /tmp completely fills up. And any file in the /tmp directory is lost on reboot.
# 3  
Old 12-01-2010
Jim, you are correct .. but the problem here is reverse .. as the system is showing all swap free .. but as per prstat .. its should be using 70G of memory Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Swap space in Solaris box

Hello Team, By the way of introduction, I am new member in this forum and proud too :) Here is my questions: In one of our Solaris Sparc v9 box, we are facing issues related to swap space. Our custom applications are using swap space even though physical memory is available. From some... (3 Replies)
Discussion started by: piyush_28
3 Replies

2. UNIX for Advanced & Expert Users

Swap space issue

I have Solaris-10 with mutiple zones running in it. My Big Brother monitoring is complaining for very less swap space available, but I am not able to find, what process has consumed its swap space and how to clear it. All zones including global server have almost blank /tmp with very less data.... (3 Replies)
Discussion started by: solaris_1977
3 Replies

3. HP-UX

Swap space issue.

Hi, I am not sure how many scripts / java processes running on my HP-UX server. I need to calculate the total heap of these processes. I then need to recommend increasing the swap memory to be increase and equal to total heap if that is the right concept. Currently we are facing... (2 Replies)
Discussion started by: mohtashims
2 Replies

4. Solaris

Veritas I/O fencing issue on Solaris10

I have 2 clusters running on solaris10 servers. VCS is working fine but when i configure I/O fencing with co-ordinated disks only one node have the keys on the disks at time where as both the nodes shuld have keys there what could be the reason for this ? like in the following o/p only Node2's... (0 Replies)
Discussion started by: fugitive
0 Replies

5. Solaris

VNC issue on solaris10

M running solaris 10 u8 my vncserver is running on :0 .. and when i try to connect it through tight vncview i can see just see the screen .. with no terminal .. what could be the issue for it ? and what i need to check for it ? (2 Replies)
Discussion started by: fugitive
2 Replies

6. Solaris

/tmp issue on solaris10 box

I have a T5240 server with following swap configuration $ grep tmp /etc/vfstab swap - /tmp tmpfs - yes - $ swap -l swapfile dev swaplo blocks free /dev/swap 4294967295,4294967295 16 213909472 213909472 ... (4 Replies)
Discussion started by: fugitive
4 Replies

7. Solaris

Memory issue on solaris10 box

my system has 128G of installed memory. top, vmstat shows the system has just over 10G of free memory on the system. but as per prstat o/p the usage is just 50-55G is there anyway i can find which process/zone is using more memory ? System has 3 zones and all running application servers. ... (1 Reply)
Discussion started by: fugitive
1 Replies

8. Solaris

Swap issue

hi all, yesterday, on one of the SunFire4800 system, there was a strange issue seen. # df -h Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 4.7G 554M 4.1G 12% / /proc 0K 0K 0K 0% /proc mnttab 0K ... (2 Replies)
Discussion started by: busyboy
2 Replies

9. Solaris

Modify the swap on Solaris10 on a volume VERITAS

Hi Community, Do you know a procedure to modify the swap on Solaris10 on a volume VERITAS? Please help me I'm currently working on this issue. Thank you for your availability! (1 Reply)
Discussion started by: Sunb3
1 Replies

10. Shell Programming and Scripting

portability issue linux(2.6) solaris10

the following simple scripts work fine on linux but fail on solaris: #!/bin/bash eval /usr/bin/time -f \'bt=\"%U + %S\"\' ./JUNK >> ./LOG 2>&1 cp ./LOG ./LOG_joe LC_joe=`cat ./LOG | wc -l` LC_joe=`echo $LC_joe-1|bc` tail -1 ./LOG > ./tmp head -$LC_joe ./LOG_joe > ./LOG rm ./LOG_joe ... (1 Reply)
Discussion started by: joepareti
1 Replies
Login or Register to Ask a Question