Weird swap size on Solaris 9


 
Thread Tools Search this Thread
Operating Systems Solaris Weird swap size on Solaris 9
# 1  
Old 07-08-2009
Weird swap size on Solaris 9

I have a machine: SunOS <server> 5.9 Generic_117171-15 sun4u sparc SUNW,Sun-Fire-480R

It has these filesystems:

Code:
Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/d0          19G    15G   3.9G    80%    /
/proc                    0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
fd                       0K     0K     0K     0%    /dev/fd
swap                    27G    32K    27G     1%    /var/run
swap                    27G   384K    27G     1%    /tmp
/dev/md/dsk/d7          20G    15G   4.2G    79%    /space1
/dev/md/dsk/d10        9.6G   600M   8.9G     7%    /space2

The machine has two systems disks which are software mirrored:

Code:
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm    3298 -  7323       19.54GB    (4026/0/0)   40968576
  1       swap    wu       0 -  3297       16.00GB    (3298/0/0)   33560448
  2     backup    wm       0 - 14086       68.35GB    (14087/0/0) 143349312
  3 unassigned    wm    7324 -  7927        2.93GB    (604/0/0)     6146304
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm    7928 -  9940        9.77GB    (2013/0/0)   20484288
  6 unassigned    wm    9941 - 14083       20.10GB    (4143/0/0)   42159168
  7 unassigned    wm   14084 - 14086       14.91MB    (3/0/0)         30528

The problem is: why is the swap showing to be 27Gb in size when the partition is only 16Gb? I performed a swap -l and see no other swapfiles:
Code:
swapfile             dev  swaplo blocks   free
/dev/md/dsk/d3      85,3      16 33560432 33559968

Is this because I have my swap partition mirrored?
Code:
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/md/dsk/d3  -       -       swap    -       no      -
/dev/md/dsk/d0  /dev/md/rdsk/d0 /       ufs     1       no      -
swap    -       /tmp    tmpfs   -       yes     -
/dev/md/dsk/d7  /dev/md/rdsk/d7 /space1        ufs     2       yes     -
/dev/md/dsk/d10 /dev/md/rdsk/d10        /space2        ufs     2       yes     -

Should I break the swap mirror, or is this just fine..?

Last edited by son_t; 07-09-2009 at 06:14 PM..
# 2  
Old 07-08-2009
Quote:
Is this because I have my swap partition mirrored?
That may not be the case, can you post swap -s and swap -l and df -h o/p? How much memory do you have?
# 3  
Old 07-09-2009
swap -l and df -h are already given (I've wrapped them in code to make easier reading), the rest are:
Code:
# swap -s
total: 1112792k bytes allocated + 383920k reserved = 1496712k used, 28872784k available

# prtconf | grep Mem
Memory size: 16384 Megabytes

# 4  
Old 07-09-2009
Thanks for using code tags.

The outputs that you have shown us shows that:
swap -s => total of ~31G swap space (includes 16G memory and 16G swap on disk)
swap -l => shows that you have 16G swap configured on volume d3

Can you post detaiils about 'd3'. I want to see whether d3 is really a mirror and not a concat volume.
Also, can you post a prtvtoc of the second half of the mirror disk (you have posted one above).

At this stage, I think you have these options (I personally would choose to do the 2nd of these):

Reboot this machine, and check whether the correct amount of swap is noted in df o/p

OR

Destroy and re-create swap volume using SVM commands (can't help you with those)
AND
Delete and re-create swap via swap commands
# 5  
Old 07-10-2009
Please post the output of metastat.
# 6  
Old 07-10-2009
Thanks for the interest guys. All is normal then? As my meta device is just a OK! Smilie
Code:
# metastat
d3: Mirror
    Submirror 0: d4
      State: Okay         
    Submirror 1: d5
      State: Okay         
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 33560448 blocks (16 GB)

d4: Submirror of d3
    State: Okay         
    Size: 33560448 blocks (16 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t0d0s1          0     No            Okay   Yes 


d5: Submirror of d3
    State: Okay         
    Size: 33560448 blocks (16 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t1d0s1          0     No            Okay   Yes

[snip]

The mirror disk's is as follows:
Code:
partition> p
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0 unassigned    wm    3298 -  7323       19.54GB    (4026/0/0)   40968576
  1 unassigned    wm       0 -  3297       16.00GB    (3298/0/0)   33560448
  2     backup    wm       0 - 14086       68.35GB    (14087/0/0) 143349312
  3 unassigned    wm    7324 -  7927        2.93GB    (604/0/0)     6146304
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm    7928 -  9940        9.77GB    (2013/0/0)   20484288
  6 unassigned    wm    9941 - 14083       20.10GB    (4143/0/0)   42159168
  7 unassigned    wm   14084 - 14086       14.91MB    (3/0/0)         30528

# 7  
Old 07-10-2009
Yes, your swap area looks properly configured. As for your original question, 16 GB of memory + 16 GB of swap = 32 GB of virtual memory except that some of it is permanently allocated to the kernel and various data structures leaving you with 27 GB of usable virtual memory. I know that's not how it's labeled, but the kernel has evolved and these older tools don't make as much sense as they once did.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

/tmp size is less whereas size allocated to swap is more

Hi, the /tmp size is less whereas the size allocated to swap is quite big. how to increase the size of /tmp - #: swap -l swapfile dev swaplo blocks free /dev/md/dsk/d20 85,20 8 273096 273096 #: swap -s total: 46875128k bytes allocated + 2347188k reserved =... (2 Replies)
Discussion started by: psb74
2 Replies

2. AIX

SWAP SIZE Recommended.

Dear All, During installation of SAP, it shows like below : Condition : Swap Size Result Code : Condition not met Severity : MEDIUM Message : For the selected services at least 74228 MB swap space are recommended. Current value: 65536 MB. (Updated 2005-06-24) I am working on AIX OS. ... (8 Replies)
Discussion started by: kak
8 Replies

3. Red Hat

Something weird with the FS size

Hi, I have a problem with a Files system. # df -h Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur /dev/cciss/c0d0p3 5,7G 3,7G 1,8G 68% / /dev/cciss/c0d0p1 97M 9,9M 82M 11% /boot /dev/cciss/c0d0p7 2,9G 2,0G 802M 71% /cache tmpfs 506M 0 ... (2 Replies)
Discussion started by: Castelior
2 Replies

4. Solaris

Help on Understanding Swap Size

Hi All, I want to know how to understand the actual swap size. My o/p shows as below root@ecovs1a # swap -s total: 4546056k bytes allocated + 358856k reserved = 4904912k used, 5046688k available root@ecovs1a # swap -l swapfile dev swaplo blocks free /dev/md/dsk/d31 ... (9 Replies)
Discussion started by: vivek.goel.piet
9 Replies

5. Solaris

Swap size increase

Dear All, How to increase the swap size when physicall memory reaches 60 %. OR it can be only done after the physicall memory is full. Rgds Rj (8 Replies)
Discussion started by: jegaraman
8 Replies

6. UNIX for Dummies Questions & Answers

swap memory and original size of HD

few questions a. where can I find the RAM of a server? im about to install redhat on a server (reformat). need to know because it will be my basis for swap size. i saw something line 3048MB detected upon boot. is this the memory? b. what is the command in lunux to check the original size of... (2 Replies)
Discussion started by: lhareigh890
2 Replies

7. Programming

Swap different size string

how can I write a function to swap to different sized string? (2 Replies)
Discussion started by: rupeshkp728
2 Replies

8. HP-UX

Increasing swap size

We increased our server's RAM 8 -> 32 GB RAM. swap memory is currently 10 GB. With which command I can increase this memory? (1 Reply)
Discussion started by: akyuceisik
1 Replies

9. UNIX for Dummies Questions & Answers

chang swap size after install

Hello all, I just got a laptop with redhat linux 7.2 installed, but during the installation the installer only put 1gig of sawp space( this laptop has 1gig of RAM). To my understanding when creating swap space, the size is determine by double the RAM. Therefore my question is that how do I... (2 Replies)
Discussion started by: larry
2 Replies

10. UNIX for Dummies Questions & Answers

Size of swap

Hy all, i've a little problem with the size of the swap. I've an old solaris machine, with 4Go, and swap is taking 500Mo for only 1% used at any time. So : how can i change this size without problems ????? (ok it may be a stupid question, but it's a real problem when you lose about 1 or 2... (3 Replies)
Discussion started by: Olivier
3 Replies
Login or Register to Ask a Question