Swap Solaris 5.10


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
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  
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  
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

# 5  
Quote:
Originally Posted by blackrageous
How are customers getting alerted. Do customers have their own virtualized versions?
Oracle Enterprise Manager grid alerts.
# 6  
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  
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 Reply

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

More UNIX and Linux Forum Topics You Might Find Helpful
Solaris 10 : how to find swap utilization ?
arorap
hi, I want to find swap utilization on a solaris 10 box. can someone please help. Thanks, Priyank... Solaris
4
Solaris
Swap space in Solaris box
piyush_28
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...... Solaris
3
Solaris
Solaris 10 SWAP SPACE
cyberdemon
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...... Solaris
2
Solaris
Releasing the swap space Solaris
Paarth
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...... Solaris
4
Solaris
Solaris 10 - Memory / Swap
sbk1972
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 #...... Solaris
1
Solaris