LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 04-07-2009, 03:46 AM   #1
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
Why swap capacity does not match


Hi, All

I have solaris9 with SVM enabled.

metastat shows me swap device [d1] is 2GB But swap -s does not match 2GB and little large than swap device size.

# swap -l ==> swap -l shows that only d1 is swap device.
swapfile dev swaplo blocks free
/dev/md/dsk/d1 85,1 16 4202672 2377936

# swap -s ==> swap -s show SWAP is 1.4G+1.1G = 2.5GB
total: 1539808k bytes allocated + 128624k reserved = 1668432k used,
1203096k available

d1: Mirror ==> However, metastat shows d1 just has 2GB.
Submirror 0: d11
State: Okay
Submirror 1: d21
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 4202688 blocks (2.0 GB) <<===

d11: Submirror of d1
State: Okay
Size: 4202688 blocks (2.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t0d0s1 0 No Okay Yes


I wonder why swap -s has 0.5GB larger than d1 size.

Kindly pls help.

Gryan
 
Old 04-07-2009, 04:51 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
A large part of RAM is part of virtual memory so is accounted as swap space when -s option is used.

From the swap manual page:

-s
...
These numbers include swap space from all configured
swap areas as listed by the -l option, as well swap
space in the form of physical memory.
 
Old 04-07-2009, 07:43 AM   #3
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
Is it possible to just show swap capacity exluding the swap space of physical mem. I read through the manual of swap command. It seems that no
option to do that. But I want to confirm here. Also, I think I can use
[swap -s output] - swap device size to obtain the swap space of physical mem. I just wonder whether there is command for it.

Thank you.

Gryan
 
Old 04-07-2009, 08:06 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
It is unclear what you are asking. Can you rephrase that and explain better what output you are expecting ?
 
Old 04-07-2009, 08:55 AM   #5
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
Sorry for my poor description. I wonder whether there is command option to show swap device size and swap space of physical mem, respectively.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Capacity of Harddisk anhtu234 Linux - Newbie 2 03-17-2009 06:47 AM
grep/sed/awk - find match, then match on next line gctaylor1 Programming 3 07-11-2007 08:55 AM
RAID5 capacity jovie Linux - Hardware 2 06-14-2006 07:08 AM
Determine HD Capacity... BFEINZIMER Linux - Hardware 2 09-29-2005 10:46 PM
Harddisk capacity ilengna Linux - Hardware 4 10-14-2003 08:37 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 06:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration