Swap Solaris 5.10


 
Thread Tools Search this Thread
Operating Systems Solaris Swap Solaris 5.10
# 1  
Old 06-26-2014
Swap Solaris 5.10

I have a customers that is getting grid alerts that swap is over 95% utilized. When I do swap -l on the machine I get the following results.
Code:
$ swap -l
swapfile             dev  swaplo blocks   free
/swap/swapfile        -       16 6291440 6291440
/swap/swapfile2       -       16 8191984 8191984


Solaris is not my strongest OS to work with but it looks to me that no swap is being used. Can anyone give me some direction?

Thanks, Michael


Moderator's Comments:
Mod Comment Please use code tags next time for your code and data. Thanks
# 2  
Old 06-26-2014
Looks like you're not using swap space at all. Do you have root access? If so, run:
Code:
echo ::memstat | mdb -k

This User Gave Thanks to achenle For This Post:
# 3  
Old 06-26-2014
Code:
# echo ::memstat | mdb -k
Page Summary                Pages                MB  %Tot
------------     ----------------  ----------------  ----
Kernel                     635150              4962   15%
Anon                      1518806             11865   36%
Exec and libs               16421               128    0%
Page cache                  14143               110    0%
Free (cachelist)            10962                85    0%
Free (freelist)           1983895             15499   47%

Total                     4179377             32651
Physical                  4112976             32132

# 4  
Old 06-26-2014
How are customers getting alerted. Do customers have their own virtualized versions?
# 5  
Old 06-26-2014
Quote:
Originally Posted by blackrageous
How are customers getting alerted. Do customers have their own virtualized versions?
Oracle Enterprise Manager grid alerts.
# 6  
Old 06-26-2014
Quote:
Originally Posted by Michael.McGraw
Code:
# echo ::memstat | mdb -k
Page Summary                Pages                MB  %Tot
------------     ----------------  ----------------  ----
Kernel                     635150              4962   15%
Anon                      1518806             11865   36%
Exec and libs               16421               128    0%
Page cache                  14143               110    0%
Free (cachelist)            10962                85    0%
Free (freelist)           1983895             15499   47%

Total                     4179377             32651
Physical                  4112976             32132

Well, you're not out of RAM, but that doesn't mean you're not "out" of swap.

Solaris does not do memory overcommit. So if a process does a malloc() call for 16 GB, the OS will reserve 16 GB of swap for that process. Even if the process never uses any of that 16 GB so that it shows up as allocated memory in the mdb ::memstat output above, it still gets reserved. Even if you've never used it.

And if that process calls fork(), the child process will get another 16 GB of swap reserved. Or not - if it's not there, the fork() could fail (I don't remember exactly what happens offhand). Or, you could wind up seeing your swap error message.

Are you seeing any types of failures in application logs, or /var/adm/messages? Generally, if you really are running out of swap you should see something there.

What's the output of "prstat -t"?
# 7  
Old 06-26-2014
Code:
 NPROC USERNAME  SIZE   RSS MEMORY      TIME  CPU
    92 oracle   1514G  919G   100% 119:39:11 6.7%
    41 root      201M  112M   0.0%   5:44:39 0.0%
     1 smmsp    7744K 2656K   0.0%   0:00:23 0.0%
     6 daemon     84M   76M   0.0%   0:03:07 0.0%

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 swap device and filesystem

Hi all, Q1) Due to application requirement, i am required to have more swap space. Currently my swap is on a partition with 32GB. I have another partition with 100GB, but it already has a UFS filesystem on it. Can i just swap -d /dev/dsk/current32gb and swap -a /dev/dsk/ufs100gb ? Will... (17 Replies)
Discussion started by: javanoob
17 Replies

2. Solaris

Solaris 10 : how to find swap utilization ?

hi, I want to find swap utilization on a solaris 10 box. can someone please help. Thanks, Priyank (4 Replies)
Discussion started by: arorap
4 Replies

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

4. Solaris

Solaris 10 SWAP SPACE

We have a SPARC system which is running on Solaris-9 and Physical memory size is 16GB.We have allocated 32GB SWAP space(2 times of physical memory).But when we use df -h command it shows following output and SWAP space size shows more than our allocated space # df -h Filesystem size used... (2 Replies)
Discussion started by: cyberdemon
2 Replies

5. Solaris

Releasing the swap space Solaris

Hi Guys ! I have found this problem many times that the swap space (/tmp space more precisely )of my Server becomes full specially when i run a complete back up of the server . once the /tmp space is full I am not able to run simple commands as i get error like : fork no space on... (4 Replies)
Discussion started by: Paarth
4 Replies

6. Solaris

Releasing the swap space Solaris

Hi Guys ! I have found this problem many times that the swap space (/tmp space more precisely )of my Server becomes full specially when i run a complete back up of the server . once the /tmp space is full I am not able to run simple commands as i get error like : fork no space on... (6 Replies)
Discussion started by: Paarth
6 Replies

7. Solaris

Solaris 10 - Memory / Swap

Hi all Got myself in a pickle here, chasing my own tail and am confused. Im trying to work out memory / swap on my solaris 10 server, that Im using zones on. Server A has 32Gb of raw memory, ZFS across the root /mirror drives. # prtdiag -v | grep mem = Memory size: 32768 Megabytes #... (1 Reply)
Discussion started by: sbk1972
1 Replies

8. Solaris

Weird swap size on Solaris 9

I have a machine: SunOS <server> 5.9 Generic_117171-15 sun4u sparc SUNW,Sun-Fire-480R It has these filesystems: Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 19G 15G 3.9G 80% / /proc 0K 0K 0K 0% /proc... (6 Replies)
Discussion started by: son_t
6 Replies

9. UNIX for Advanced & Expert Users

allocating swap space on solaris 9

Hi, I have a solaris 9-sparc box, which after bouncing is giving swap space related error messages(that swap space is not enough). could it be possible that there was some command issued or setting made before bouncing, which was lost after bouncing? please let me know how i can add swap space... (1 Reply)
Discussion started by: 0ktalmagik
1 Replies

10. UNIX for Dummies Questions & Answers

creating swap space under Solaris 2.6

I just finished installing Solaris 2.6 and several applications just to realize that I made a bonehead mistake during the install. When setting up the filesystems, I entered /tmp and no swap! Is it possible to permanantly declare the entire /tmp partition as swap? I am guessing an entry in the... (4 Replies)
Discussion started by: 98_1LE
4 Replies
Login or Register to Ask a Question