From my last post:
What do you mean by "swap space"? Are you asking about virtual memory (what is often meant by 'swap' on Solaris), or are you asking about the disk space used by swapfiles?
You said you thought your commands were showing different things... post the commands you ran and the output.
If u could tell me both the things i will b thank full to u.
But basically searching for a command which tell me the amount of swap space allocated while installation of OS.
Waiting for ur reply.
thanks once again
By mentioning "allocated", it sounds like you're talking about the space on disk used for paging things out of RAM. You can see what spaces are configured now by running 'swap -l'. Space is in blocks, so divide by 2 to get KB.
Any disk swapfiles that should be active on boot should be configured in the /etc/vfstab file. You can use normal commands to see their size (du for regular files, prtconf or format for slices).
Thank u all for the reply & especially Mr.Dareen Dunham, i really appreciate this help from u.
I hope u all will help in the same way in future too.
Thanks once again.
sroul wrote:
swap -s can be used to determine swap size.
Again, that depends on what you mean by "swap size". If you're interested in what's configured on disk, it won't help. It will tell you how much virtual memory the system is using and a breakdown of how it's allocated.
Both terms can be called "swap", even though they're very different. That's why I'm being annoying and asking what someone thinks they mean by "swap space" when they use the term.
If you instead use "system virtual memory" or "disk paging space" or similar terms, then there is no ambiguity.
Virtual memory is one of the core concepts of modern UNIX systems. I don't have a pointer for what I consider to be an excellent resource on the topic. Maybe someone else has a good one.
--
Darren