Swap Solaris 5.10

Tags
solaris

 
Thread Tools Search this Thread
# 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:
Michael.McGraw (06-26-2014)
# 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%


|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
How do I add extra ZFS swap in Solaris 11.3? feroccimx Solaris 5 1 Week Ago 11:36 PM
Solaris 10 swap device and filesystem javanoob Solaris 17 07-21-2016 06:32 PM
Solaris 10 : how to find swap utilization ? arorap Solaris 4 05-21-2013 04:31 PM
Swap space in Solaris box piyush_28 Solaris 3 10-11-2012 11:33 AM
Solaris full /tmp - du and df different swap NOT filled click Solaris 2 11-17-2011 01:09 PM
calculate swap space usage in Solaris and converts it in Percentage jaapar Shell Programming and Scripting 2 11-06-2010 11:10 AM
Solaris 10 SWAP SPACE cyberdemon Solaris 2 04-23-2010 04:09 AM
Releasing the swap space Solaris Paarth Solaris 4 03-22-2010 08:42 PM
Releasing the swap space Solaris Paarth Solaris 6 03-21-2010 05:37 AM
Solaris 10 - Memory / Swap sbk1972 Solaris 1 10-16-2009 07:12 AM
Weird swap size on Solaris 9 son_t Solaris 6 07-10-2009 10:15 PM
Solaris Disk based portion of swap. Devyn Solaris 3 06-11-2009 05:19 PM
Coredumps and swap - was part of Solaris Mem Consumption rajwinder Solaris 39 08-12-2008 03:31 AM
allocating swap space on solaris 9 0ktalmagik UNIX for Advanced & Expert Users 1 05-23-2006 01:42 AM
creating swap space under Solaris 2.6 98_1LE UNIX for Dummies Questions & Answers 4 07-24-2001 10:16 AM