Quote:
Originally Posted by
vivek.goel.piet
but all I want to know how to understand it?..How to know whats my total swap size and whats my available swap space??
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.
Quote:
..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?
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 ----------
Quote:
Originally Posted by
Corona688
swap isn't a filesystem -- it holds no files -- so df doesn't return sensible answers for it. On some systems it's not even listed.
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.