participate


General Solaris 10 Discussion - Swap Space
<<   Back to Forum  |   Give us Feedback
This topic has 10 replies on 1 page.
Gidadhubli
Posts:11
Registered: 12/5/08
Swap Space   
Mar 27, 2009 11:48 AM

 
Hi All,
How to know the exact swap space allocated to the server.

I tried with vmstat, format, swap -l and df commands, but all the commands are showing different size of swap allocated.

df -h is giving me three swap mount point, out of that which one is real one.
 
Darren_Dunham
Posts:4,021
Registered: 8/4/06
Re: Swap Space   
Mar 27, 2009 1:51 PM (reply 1 of 10)  (In reply to original post )

 
Gidadhubli wrote:
Hi All,
How to know the exact swap space allocated to the server.

What do you mean by swap space? VM or disk file?

I tried with vmstat, format, swap -l and df commands, but all the commands are showing different size of swap allocated.

Can you show the output? df is a filesystem command. I see no reason you should be using it for detecting swap space.

df -h is giving me three swap mount point, out of that which one is real one.

None of them. It's showing you tmpfs filesystems that are using swap.

--
Darren
 
Gidadhubli
Posts:11
Registered: 12/5/08
Re: Swap Space   
Mar 28, 2009 10:01 AM (reply 2 of 10)  (In reply to #1 )

 
Thanks for ur reply,
Please tell me how to check the exact swap space allocated.
 
Darren_Dunham
Posts:4,021
Registered: 8/4/06
Re: Swap Space   
Mar 30, 2009 10:30 AM (reply 3 of 10)  (In reply to #2 )

 
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.

--
Darren
 
Gidadhubli
Posts:11
Registered: 12/5/08
Re: Swap Space   
Mar 30, 2009 11:02 AM (reply 4 of 10)  (In reply to #3 )

 
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
 
Darren_Dunham
Posts:4,021
Registered: 8/4/06
Re: Swap Space   
Mar 30, 2009 11:46 AM (reply 5 of 10)  (In reply to #4 )

 
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).

--
Darren
 
sroul
Posts:28
Registered: 11/16/08
Re: Swap Space   
Mar 31, 2009 8:37 AM (reply 6 of 10)  (In reply to #5 )

 
swap -s can be used to determine swap size.
 
Gidadhubli
Posts:11
Registered: 12/5/08
Re: Swap Space   
Mar 31, 2009 8:50 AM (reply 7 of 10)  (In reply to #6 )

 
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.
 
Darren_Dunham
Posts:4,021
Registered: 8/4/06
Re: Swap Space   
Mar 31, 2009 9:39 AM (reply 8 of 10)  (In reply to #6 )

 
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.

--
Darren
 
Gidadhubli
Posts:11
Registered: 12/5/08
Re: Swap Space   
Mar 31, 2009 9:17 PM (reply 9 of 10)  (In reply to #8 )

 
Could u pls elaborate more on system virtual memory and disk paging space.
 
Darren_Dunham
Posts:4,021
Registered: 8/4/06
Re: Swap Space   
Apr 1, 2009 11:58 AM (reply 10 of 10)  (In reply to #9 )

 
Start here maybe?

http://en.wikipedia.org/wiki/Virtual_memory

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
 
This topic has 10 replies on 1 page.
Back to Forum
 
Read the Developer Forums Code of Conduct

Click to email this message Email this Topic

Edit this Topic
  
 
 
Forums Statistics
    Users Online : 27
  • Guests : 120

About Sun forums
  • Sun Forums is a large collection of user generated discussions. It is here to help you ask questions, find answers, and participate in discussions.

    Check out our guide on Getting started with Sun Forums for a full walkthrough of how to best leverage the benefits of this community.

Powered by Jive Forums