Swap space issue


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Swap space issue
# 1  
Old 09-11-2012
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.
HTML Code:
root@apps_serv201:/# df -h /tmp
Filesystem             size   used  avail capacity  Mounted on
swap                   512M    88K   512M     1%    /tmp
root@apps_serv201:/# /usr/sbin/swap -s
total: 75843704k bytes allocated + 39689080k reserved = 115532784k used, 1395416k available
root@apps_serv201:/# /bin/vmstat 1 2 | tail -1
 16 0 0 1394080 43647304 81 135 0 0 0 0  0  0  0  0  0 40221 49765 43543 10 4 86
root@apps_serv201:/# /usr/sbin/swap -l
swapfile             dev  swaplo blocks   free
/dev/zvol/dsk/rpool/swap 256,1      16 25165808 24877088
I downloaded a script called swapinfo and that gave me this info --
PHP Code:
root@apps_serv201:/# /var/tmp/swapinfo
RAM  _____Total 131072.0 Mb
RAM    Unusable  2436.1 Mb
RAM      Kernel 12859.0 Mb
RAM      Locked 98162.2 Mb
RAM        Used 
-25007.9 Mb
RAM       Avail 42622.5 Mb
Disk _____Total 12288.0 Mb
Disk      Alloc   141.0 Mb
Disk       Free 12147.0 Mb
Swap _____Total 114179.5 Mb
Swap      Alloc 74060.4 Mb
Swap    Unalloc 38733.0 Mb
Swap      Avail  1386.1 Mb
Swap  
(MinFree16100.7 Mb
root
@apps_serv201:/
PHP Code:
root@apps_serv201:/# echo ::memstat | mdb -k
Page Summary                Pages                MB  %Tot
------------     ----------------  ----------------  ----
Kernel                     995817              7779    6%
ZFS File Data              322707              2521    2%
Anon                      9483981             74093   58%
Exec and libs               10027                78    0%
Page cache                 253496              1980    2%
Free (cachelist)            33201               259    0%
Free (freelist)           5387854             42092   33%
Total                    16487083            128805
Physical                 16465391            128635 
Please help

Last edited by solaris_1977; 09-11-2012 at 06:10 PM..
# 2  
Old 09-11-2012
prstat -Z output would be a good start to investigate.
# 3  
Old 09-12-2012
Here is the output -
PHP Code:
root@apps_serv201:/# prstat -Z
   
PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
 29612 55966    1750M 1748M cpu13   43    0 145
:47:05 6.7java/107
 22734 56006    1895M  777M cpu11    0    0  46
:52:39 3.1java/77
 11587 root     3792K 3416K cpu30   59    0   0
:01:08 0.7prstat/1
 25262 24688    7549M 7543M sleep   59    0   3
:05:56 0.2java/119
 20275 afpwebld 1756M 1736M sleep   59    0   1
:24:08 0.1java/145
 16368 bfdeploy  305M  231M sleep   59    0  93
:19:46 0.1java/62
  5775 afpwebld 1782M 1677M sleep   59    0  39
:01:56 0.1java/158
 16517 bfdeploy  313M  240M sleep   59    0  63
:37:00 0.1java/61
 15018 bfdeploy  297M  224M sleep   59    0  92
:27:23 0.1java/61
 22392 24688    3583M 3531M sleep   59    0   0
:43:12 0.1java/42
 15581 bfdeploy  310M  236M sleep   59    0  80
:05:05 0.1java/61
 15951 bfdeploy  297M  223M sleep   59    0  51
:41:11 0.1java/61
 15070 root       24M   17M sleep   59    0  11
:03:26 0.1scopeux/1
 16432 bfdeploy  309M  235M sleep   59    0  89
:34:56 0.1java/62
 14175 bfdeploy  305M  231M sleep   59    0  90
:38:38 0.1java/62
 27816 56755    2503M 2368M sleep   59    0   2
:53:30 0.0java/162
 14078 bfdeploy  349M  275M sleep   59    0  67
:15:16 0.0java/62
 29647 atswebld  854M  531M sleep   59    0  34
:47:03 0.0java/86
 15158 bfdeploy  304M  207M sleep   59    0  31
:28:58 0.0java/61
 20249 56695    2459M 1284M sleep   59    0   0
:05:56 0.0java/160
 25257 24688     559M  555M sleep   59    0   0
:16:57 0.0java/17
 22367 24688     559M  555M sleep   59    0   0
:09:51 0.0java/17
 15162 dwfawlsd 1386M 1031M sleep   59    0  29
:14:38 0.0java/49
 20393 55687     966M  329M sleep   59    0   0
:05:19 0.0java/47
 15163 dwfawlsd 1390M 1011M sleep   59    0  29
:14:36 0.0java/55
 11930 bfdeploy  284M  205M sleep   59    0  29
:26:49 0.0java/66
 16894 bfdeploy  397M  222M sleep   59    0  17
:13:26 0.0java/82
 16907 bfdeploy  353M  252M sleep   59    0  17
:08:15 0.0java/82
  2669 bfdeploy  385M  240M sleep   59    0   9
:31:25 0.0java/77
 16879 bfdeploy  356M  246M sleep   59    0  17
:08:26 0.0java/82
ZONEID    NPROC  SWAP   RSS MEMORY      TIME  CPU ZONE
     8       42 9038M 6008M   4.6
232:05:53 6.8apps_serv201-zinct01
    12       48   13G 8618M   6.6
117:34:39 3.2apps_serv201-zddoad01
     0      127  429M  524M   0.4
800:44:24 0.8% global
    
26       31   12G   12G   9.4%   6:22:41 0.3apps_serv201-zttmst01
    16       23 5385M 4992M   3.8
%  46:02:35 0.2apps_serv201-zafpd01
     7       42 9744M 7183M   5.5
%  99:14:50 0.1apps_serv201-zincd01
     2       47 3719M 2142M   1.6
118:56:06 0.1apps_serv201-ztipt01
     5       43 3818M 2363M   1.8
125:51:14 0.1apps_serv201-zautd01
    18       32 3606M 1866M   1.4
105:51:10 0.1apps_serv201-zpscd01
     1       48 3702M 2069M   1.6
115:06:58 0.1apps_serv201-ztipd01
     6       45 8121M 3598M   2.7
%   5:26:59 0.1apps_serv201-zbid03
Total
886 processes10843 lwpsload averages7.227.856.22
root
@apps_serv201:/
# 4  
Old 09-12-2012
So you have about 72 GB of virtual memory used by zones, 5 of them use more than 8 GB, I would start by investigating them.

In any case, there doesn't seem to have real paging issue as most of the swap area is free. You might want to add more swap area though to avoid running out of virtual memory.

The swapinfo script you downloaded gives bogus results (-25GB used RAM looks unrealistic Smilie )
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. Solaris

No Space Left - Memory/Swap issue

:wall:I'm having a bit of a problem with Solaris 10u8 and one of our applications requesting memory and being told, "no space left". The break down: 24GB Physical Memory 8GB swap at the time of occurance, here's what a memory breakdown looks like: Page Summary Pages ... (21 Replies)
Discussion started by: aychbee45
21 Replies

4. Solaris

swap space issue

HI All, Recently during oracle install I realized that I did not have enough swap space. So I - 1. Created a swap file "swap_fille1" in /rpool using mkfile - # ls -ltr /rpool total 10487121 drwxr-xr-x 3 root root 3 Dec 21 12:09 boot drwxr-xr-x 2 root root ... (10 Replies)
Discussion started by: sumeet
10 Replies

5. 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

6. UNIX for Advanced & Expert Users

Issue with insufficient swap or memory space

Hi, When I execute one of my shellscript I am getting the below mentioned error message .This application takes 2input files which have the records counts 26463 and 1178046 exec(2): insufficient swap or memory available. exec(2): insufficient swap or memory available. exec(2): insufficient swap... (3 Replies)
Discussion started by: kavithakuttyk
3 Replies

7. Shell Programming and Scripting

Issue with insufficient swap or memory space

Hi, When I execute one of my shellscript I am getting the below mentioned error message .This application takes 2input files which have the records counts 26463 and 1178046 exec(2): insufficient swap or memory available. exec(2): insufficient swap or memory available. exec(2):... (2 Replies)
Discussion started by: kavithakuttyk
2 Replies

8. 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

9. 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

10. 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
Login or Register to Ask a Question