[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.3

How to understand the memory usage in Solaris ?

Asked by beer9 in Sun Solaris

I am very much addicted to use the 'top' of linux, but here in Solaris it looks convoluted.
Here is some of inputs from my system which I could figure out.

Physical Memory: 1GB
Swap space: 2GB

Output of swap -l is in block, whereas 1 block is 512 bytes, so the output of swap -l and 'format' of slice 1 is almost same.
Now the output of swap -s is in KB(not block) and it includes the part of physical memory(1024 MB) also
Used is 342092KB(334 MB) and available is 2204904KB(2153MB)

I can see physical swap is NOT used at all {as output of swap -l} and so I am subtracting 2GB from available space {2204904KB(2153MB)}
So I get 342092KB(334 MB) + {2204904KB(2153MB) - 2GB} = 334 MB + 105 MB=439 MB {Physical RAM}

But I have 1024 MB physical RAM, where is 585 MB {1024 - 439} RAM ??

Please let me know if my calculation is wrong!
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
bash-3.00# echo "::memstat" | mdb -k
Page Summary                Pages                MB  %Tot
------------     ----------------  ----------------  ----
Kernel                     112014               437   43%
Anon                        68509               267   26%
Exec and libs                5143                20    2%
Page cache                   6948                27    3%
Free (cachelist)            19276                75    7%
Free (freelist)             47804               186   18%
 
Total                      259694              1014
 
bash-3.00# swap -l
swapfile             dev  swaplo blocks   free
/dev/dsk/c0d0s1     102,1       8 4194288 4194288
 
#output of slice 1 from the format command
  1 unassigned    wu    1375 -  1636        2.01GB    (262/0/0)     4209030
 
bash-3.00# swap -s
total: 266084k bytes allocated + 76008k reserved = 342092k used, 2204904k available
 
bash-3.00# vmstat 
 kthr      memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr cd m6 m9 s0   in   sy   cs us sy id
 0 0 0 2397060 476264 87435 36205 72 0 2 0 96 39 0 0 -0 2636 91864 15145 11 47 42
 
bash-3.00# prtconf -v  | grep Memory
Memory size: 1023 Megabytes
[+][-]04/23/09 03:07 AM, ID: 24213314Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Sun Solaris
Sign Up Now!
Solution Provided By: blu
Participating Experts: 2
Solution Grade: A
 
[+][-]04/22/09 10:07 PM, ID: 24211933Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93 - Hierarchy / EE_QW_3_20080625