How to analyse Swap/Memory usage Oracle Solaris?

Memory bottlenecks are evidenced by two different things happening on the system.

  • Paging
    • Page in;something is moved into Active RAM whether that is from Inactive RAM, the swapfile(s), or another file on the hard drive.
      • Page out;anything is moved out from Active RAM to Inactive RAM, as well as writing to a Swapfile. Also in some cases, high  page  out means your system has run out of memory and had to use some of the Hard Disk instead of RAM.
  • Swapping

Paging refers to memory pages being reclaimed by the system page daemon, when system faces with lack of free memory.Swapping is more extreme and it means that processed being swapped out. Determine if system is only paging or swapping you should check two columns in “vmstat” output. The first result you need to check is “scan rate (sc)”.If this result is different from “0” then it means page daemon scans for free memory pages to put in them on the free list to be reused.

Page scan runs: default value is 1/64th of total physical memory or cache free.

Don’t worry about high scan rate if you are using the file system heavily. If priority_paging is enable high scan rate can be normal in many circumstances. If priority_paging is enabled then page scanners daemon steals pages more effectively. So the file system I/O does not cause unnecessary paging of process.

Check “w” column to see if system is swapping. It shows entire processes which are swapped out. If “w” column is different from 0, system is either low on memory right now, or have been in the past.

Use this command to see which processes are running .Don’t forget that check for RSS column if it’s 0 (sched, pageout and fsflush processes should always have a RSS of 0). If not then it means that system is swapping out.

Scan Rate And “w” Column:

#vmstat 1 2

kthr memory page disk faults cpu

r b w swap free re mf pi po fr de sr lf lf s2 s3 in sy cs us sy id

0 0 5 2304856 1352240 128 318 0 0 0 0 5 0 0 -0 5 661 28851 667 78 4 18

0 0 22 3802064 3028192 27 33 0 0 0 0 0 0 0 0 0 623 35757 466 98 2 0

RSS  check: RSS  column must be “0”  for this check.If not system is low on memory right now.


#/usr/bin/ps -e -o pid,rss,args|egrep 'sched|pageout|fsflush'|grep -v grep


0        0        sched

2        0        pageout

3        0        fsflush

Page Out, Page in:


# vmstat 1 5|awk '{print $8 " " $9}'

pi po

325 1942

0 6581

0 6376

0 5851

0 6576

Check Free Memory: 


# sar -r 1 1000

SunOS opscgmrtep00 5.10 Generic_150400-18 sun4v 10/16/2015

16:08:58 freemem freeswap

16:08:59 116382376 2015530288

How to calculate  sar free memory  usage?

Parameter Size Total Free  Size
Free Mem GB Free  Memory*8  /1024/1024/1024
Free Swap GB Free  Swap * 512 /1024 /1024/1024

Pagesize for Oracle  Solaris  is  8K.
How to check  page size  on Oracle Solaris ?

# pagesize


How to check free  memory  on Oracle  Solaris?

#echo  ::memstat|mdb  -k

Page Summary                Pages                MB  %Tot

------------     ----------------  ----------------  ----

Kernel                     653403              5104    8%

ZFS File Data             1062828              8303   13%

Anon                      3278738             25615   40%

Exec and libs               19061               148    0%

Page cache                 153244              1197    2%

Free (cachelist)            18087               141    0%

Free (freelist)           3050836             23834   37%

Total                     8236197             64345

Physical                  8190736             63990

How  to check process  memory  usage  on Oracle Solaris?

This  command will sort  processes  by memory usage(RSS ).If you need change sort  option for  Virtual Size.

# ps  -ely|grep  -v  PID|sort  -nrk8|more


Tagged In:

I'm a IT Infrastructure and Operations Architect with extensive experience and administration skills and works for Turk Telekom. I provide hardware and software support for the IT Infrastructure and Operations tasks.

205 Total Posts
Follow Me


  1. Hello! I just would like to give you a huge thumbs up for your excellent info you have got here on this post. I am coming back to your site for more soon.

  2. diffents tipes of viagra chewing gum viagra canada pfizer viagra - viagra amex ’

  3. viagra canada california viagra viagra with depoxatine overnight shipping - what is generic viagra ’

  4. canada pharmacies online liquid viagra buy online prescription drugs

  5. top rated online canadian pharmacies buy drugs online anti viral

  6. viagra pills viagra super 5 viagra pills

  7. shoppers drug mart pharmacy cialis and viagra taken together viagra price

  8. cialis buy india cialis pill effects

  9. aftermarket viagra can i buy viagra online without percription viagra free trial coupon

  10. north west pharmacy canada canadian pharmacy world highest rated canadian pharmacies

  11. cialis bayer 20 brand cialis buy

  12. what happens when you mix cialis with grapefruit? cialis greece cialis online cheap

  13. payday loans springfield ohio how to make cash advance using bdo credit card good money payday loans

  14. cialis bijwerkingen forum cialis farmacia online how quickly does cialis work

  15. puregold cash loan jerry cash advance springfield mo need cash advance asap

  16. review of cialis get cialis to work

  17. compare sildenafil prices sildenafil tablets 50mg buy viagra in canada for sale

  18. cialis no rx quien ha probado cialis scadenza brevetto del cialis

  19. trust payday loans reviews cash advance with lowest fees cash loans harare

  20. viagra per nachnahme viagra for saale buy viagra pills 365

  21. buy cialis generic india - cialis online generic cialisbuycialis - buy generic cialis cheap cialis online

  22. sex with viagra viagra pfizer

  23. cialis 6 buy cialis online free shipping cialis lilly australia

  24. ivermectin tablet stromectol medication ivermectin paste dosage for goats how to give ivermectin to

  25. ventolin tablet ventolin usa ventolin side effects weight gain how long does it take for ventolin to work

  26. ivermectin and coronavirus stromectol uk buy ivermectin paste 1.87 for rabbits where get ivermectin lotion

  27. amoxicillin 825mg order amoxicillin uk does amoxicillin treat bladder infection amoxicillin where to buy

  28. albuterol price buy ventolin uk what is ventolin hfa inhaler used for what is a ventolin inhaler used for

  29. lasix rob holland lasix on line without prescription lasix for congestive heart failure why take potassium with lasix

  30. how much amoxicillin amoxicillin where to get does amoxicillin get you high what is the shelf life of amoxicillin

  31. lasix for horses furosemide 20 is furosemide a beta blocker "why take potassium with lasix"

  32. azithromycin for chlamydia where can i buy zithromax medicine azithromycin 500mg 2 tablets one dose azithromycin and alcohol how long after

  33. hydroxychloroquine azithromycin interaction buy azithromycin 500mg online uk what type of antibiotic is zithromax what type of antibiotic is azithromycin

  34. clomid ovarian cancer clomid tablets india what does clomid do for men how many days after clomid should you ovulate

  35. doxycycline and iron doxycycline capsules 40 mg doxycycline order online ezzz pharmacy where to buy doxycycline over the counter

  36. prednisolone use buy prednisolone syrup for cats prednisolone acetate 1 ophthalmic suspension prednisolone what is it used to treat

  37. doxycycline copd doxycycline 100 how effective is doxycycline for uti how long does doxycycline take to work for uti

  38. clomid for fertility clomid tablet online india clomid or nolva for pct what to expect on clomid

  39. prednisolone tablets 5mg buy prednisolone online uk prednisolone acetate ophthalmic suspension usp sandoz who makes prednisolone acetate?

  40. dapoxetine premature ejaculation priligy tablets uk priligy for pe online how do i get dapoxetine in united states

  41. - is viagra otc - normal dose of viagra - how to get cialis prescription online - cialis and alcohol - buying cheap cialis online

  42. [url=]thesis proposal format[/url] thesis titles editing thesis phd online

  43. - free trial cialis - cialis for sale - is viagra generic - herbal viagra pills - cialis 20 mg coupon

  44. - writing a good thesis thesis literature review writing your thesis nursing thesis

  45. propecia progress where can i purchase propecia 5a reductase 2 turnover propecia help what do doctors check for when perscribing propecia

  46. neurontin manufacturer gabapentin generic price neurontin side effects hair loss what are the side effects to gabapentin

  47. metformin glyburide metformin for sale canada metformin class action lawsuit 2018 how long does it take to get used to metformin

  48. paxil generic names medication paroxetine 20 mg 10mg paxil for hot flashes how long does it take for paxil to take effect

  49. plaquenil in pregnancy plaquenil for arthritis what does plaquenil do for lupus how to take plaquenil for arthritis

  50. - writing my thesis thesis topics in education

  51. [url=][/url] phd thesis writing writing thesis paper

  52. buying cialis in bulk buy online cialis canada harga grosir cialis

  53. cialis vs diltiazem cialis cost costco pharmacy prices cialis

  54. medco cover cialis tadalafil generic where to buy cialis online legale

  55. lilly cialis nedir buy cheap cialis open air cialis erste mal

  56. cialis bestellen niederlande much does cialis cost without insurance how much is cialis with insurance

  57. психолог онлайн

  58. insurance pays for cialis buy cialis online cheap online pharmacy cialis

  59. how effective is cialis for bph cialis orosolubile generico levitra cialis confronto

  60. half life of 5mg cialis is cialis good for heart cialis empfohlene dosis

  61. buy cialis online now medshuku cialis without a doctor prescription generic cialis discount

  62. venous leak cialis online cialis order cialis online pharmacy

  63. cialis contrareembolso order cialis viagra online cialis health benefits

Leave a Reply