Queries:
• How swap size is populating it as “12GB”.
• If we see the swap –s output, total swap space is (2283152k used 12779832k available = 14.37 GB). Theoretically we know that swap space is sum of hard disk allocated for swap space during partition and few portion of real memory i.e. RAM. If that is the scenario, in the above system we are having 8GB real memory. My question is how much percentage of real memory is allocated for swap space. Is there any command to find that? Why swap is not showing this 14.37 GB as its size in df –h output rather its showing 12GB.
so you have:
laptop% dc
16790384 2 / p
8395192
1024 / p
8198
1024 / p
8
i.e. 8 Gb of swap file.
which would lead me to think you should have 16Gb of swap, but that's another story
the df is showing you the swap available for files in /tmp for example, the allocated and reserved swap cannot be used for this that is why it is not shown.
If it helps any (not that it does) A sun engineer told me when I asked that "It isn't as easy as that!" ... but he then never went on to explain what it was
u r ri8. I heard that command 'memstat' will give the memory allocation details. Problem is this command is not present in the server. Do you know the way how to know the RAM portion either by command or scripts????