If I consider the swap -s command i find my used space to be around 40%..However in the subsequent commands I find my available space to be arround 98%..Please help me to understanding how to find exact swap usage and exact swap memory available for processes.
thanks for ur prompt answer dude...but all I want to know how to understand it?..How to know whats my total swap size and whats my available swap space??..normally we consider as 50% of swap file should be available for smooth operation of applications on the node..So how can I determine the same?
You should define what you expect swap to mean. As far as Solaris is concerned, this can be the on disk swap area, the whole virtual memory or a file system (a.k.a. tmpfs).
Your swap area size is 4 GB
Your total virtual memory size is around 10 GB, half of which been free. You have at least 6 GB of RAM but possibly much more.
The various file systems backed by swap are using a negligible part of virtual memory.
There is no straight relationship between how much swap is used and a system performance. If you want the latter, just make sure you have enough RAM to avoid pagination. If you want your applications not to crash, have enough swap for all memory allocation and reservations to easily fit. Memory allocations do like RAM, memory reservations are fine with on disk swap.
---------- Post updated at 22:59 ---------- Previous update was at 22:48 ----------
In the df output context, swap is a file system (a.k.a tmpfs) holding files about which sensible numbers are reported. However, you are correct df isn't the right command to investigate memory usage.
Thanks for your reply dude,In my operations swap memory is used for processes to run..Moreover we dont have any RAM on our node..Swap memory is used instead of Node..The o/p given above is of a voucher server (IN system).
As per our ZLD,if
swap -s
command provides o/p of availabe space=used space,everything if fine...what does this mean?..
Just I wanted to know whats my total available swap space,whats the used up swap space and whats the total swap size of my server...Please also provide the calculations how to calculate it?