missing swap space?


 
Thread Tools Search this Thread
Operating Systems Solaris missing swap space?
# 8  
Old 01-06-2011
Quote:
Originally Posted by DukeNuke2
give the output of "df -h" please...
Code:
bash-3.00# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/d0         5.9G   4.1G   1.8G    70%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   747M   1.4M   746M     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
/platform/SUNW,SPARC-Enterprise-T2000/lib/libc_psr/libc_psr_hwcap1.so.1
                       5.9G   4.1G   1.8G    70%    /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,SPARC-Enterprise-T2000/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                       5.9G   4.1G   1.8G    70%    /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
/dev/md/dsk/d20        5.9G   2.5G   3.4G    42%    /var
/dev/md/dsk/d40        2.0G   972M   978M    50%    /tmp
swap                   746M    48K   746M     1%    /var/run
swap                   746M     0K   746M     0%    /dev/vx/dmp
swap                   746M     0K   746M     0%    /dev/vx/rdmp
/dev/md/dsk/d30        5.9G   1.3G   4.5G    23%    /opt
/dev/vx/dsk/aaa-EMCDG/vol12
                       202G    66G   135G    34%    /db12
/dev/vx/dsk/aaa-EMCDG/vol07
                        67G    25G    42G    38%    /db07
/dev/vx/dsk/aaa-EMCDG/vol08
                        67G    55G    12G    82%    /db08
/dev/vx/dsk/aaa-EMCDG/vol11
                       101G    25G    75G    26%    /db11
/dev/vx/dsk/aaa-EMCDG/vol06
                        67G    23G    44G    35%    /db06
/dev/vx/dsk/aaa-EMCDG/vol14
                        67G    65G   2.7G    96%    /db14
/dev/vx/dsk/aaa-EMCDG/vol13
                       202G    57G   144G    29%    /db13
/dev/vx/dsk/aaa-EMCDG/vol04
                        34G    33G   696M    98%    /db04
/dev/vx/dsk/aaa-EMCDG/vol02
                        34G    14G    20G    42%    /db02
/dev/vx/dsk/aaa-ARCHIVELOG-DBDG/vol01
                       118G    16G    95G    15%    /archivelogs
/dev/vx/dsk/aaa-EMCDG/vol03
                        34G    33G   696M    98%    /db03
/dev/vx/dsk/aaa-EMCDG/vol05
                        34G    27G   6.8G    80%    /db05
/dev/vx/dsk/aaa-EMCDG/vol16
                        51G    47G   3.4G    94%    /db16
/dev/vx/dsk/aaa-EMCDG/vol01
                        34G    22G    12G    66%    /db01
/dev/vx/dsk/aaa-EMCDG/vol09
                        67G    66G   999M    99%    /db09
/dev/vx/dsk/aaa-EMCDG/vol15
                        67G    12G    52G    20%    /db15
/dev/vx/dsk/aaa-EMCDG/vol17
                        92G    90G   1.8G    99%    /db17
/dev/vx/dsk/aaa-EMCDG/vol10
                       101G    88G    13G    88%    /db10
/dev/md/dsk/d70        3.9G   687M   3.2G    18%    /export/home
dataguard              492G   313G   179G    64%    /dataguard
fra                    1.2T   974G   301G    77%    /fra
/dev/odm                 0K     0K     0K     0%    /dev/odm
/dev/vx/dsk/QUICKIO-TEMP/quickio
                       500G   2.0G   467G     1%    /quickio

where fra and dataguard are zfs.
# 9  
Old 01-06-2011
Quote:
Originally Posted by beerd
where fra and dataguard are zfs.
Hmm, something odd here. ZFS filesystems in use but no ZFS RAM usage reported by mdb ...
# 10  
Old 01-06-2011
Quote:
Originally Posted by jlliagre
Hmm, 16 GB used by the kernel, that's a lot of RAM ...
Are you running LDOMs and/or zones on that box ?
Is there some resource capping in place ?
Does system treat zfs arc as kernel usage?

Code:
bash-3.00# kstat -m zfs
module: zfs                             instance: 0
name:   arcstats                        class:    misc
        c                               13378544912
        c_max                           32967983104
        c_min                           1063803904
        crtime                          82.057419723
        deleted                         170733207
        demand_data_hits                44161305
        demand_data_misses              3933613
        demand_metadata_hits            111834606
        demand_metadata_misses          2214038
        evict_skip                      33005844
        hash_chain_max                  22
        hash_chains                     469924
        hash_collisions                 187286068
        hash_elements                   1953386
        hash_elements_max               2988374
        hits                            283902046
        mfu_ghost_hits                  2702924
        mfu_hits                        111039983
        misses                          59860998
        mru_ghost_hits                  1410493
        mru_hits                        69957904
        mutex_miss                      3720166
        p                               13297674045
        prefetch_data_hits              127609258
        prefetch_data_misses            53647259
        prefetch_metadata_hits          296877
        prefetch_metadata_misses        66088
        recycle_miss                    5022901
        size                            13378252800
        snaptime                        2543295.48037537

which is the size of arc, c or size? They are close to each other though.

---------- Post updated at 09:14 PM ---------- Previous update was at 09:11 PM ----------

Quote:
Originally Posted by jlliagre
Hmm, something odd here. ZFS filesystems in use but no ZFS RAM usage reported by mdb ...
well, maybe because it's an old version?

Code:
bash-3.00# cat /etc/release
                       Solaris 10 11/06 s10s_u3wos_10 SPARC

# 11  
Old 01-06-2011
Quote:
Originally Posted by beerd
Does system treat zfs arc as kernel usage?
The ARC is definitely kernel, non virtual, memory. However, most of it can be released as free virtual memory should there is a demand.
Quote:
which is the size of arc, c or size? They are close to each other though.
size is the current size, c is the target one. Both are varying depending on current and expected usage.

By the way, ZFS statistics are only available with mdb ::memstat command starting from update 8 (10/2009) so I guess you are using an older release.

Can you answer to my other previous questions ?
# 12  
Old 01-06-2011
Quote:
Originally Posted by jlliagre
By the way, as your swapfile is reported to be unused, did you try to remove it (swap -d ...) and see how the "swap -s" figures evolve. Also, how is adding a new swap device (you can use a file for testing) impacting your measurements ?
I can't try it on the production box, but I test on my solaris 10 x86 vm:

Code:
bash-3.00# swap -l
swapfile             dev  swaplo blocks   free
/dev/zvol/dsk/rpool/swap 181,1       8 1048568 1048568
bash-3.00#
bash-3.00# swap -s
total: 361524k bytes allocated + 159904k reserved = 521428k used, 367256k available

1048568 / 2 > 367256
Code:
bash-3.00# swap -d /dev/zvol/dsk/rpool/swap
/dev/zvol/dsk/rpool/swap: Not enough space

SmilieSmilieSmilie
Code:
bash-3.00# swap -a /dev/dsk/c1t1d0p0
bash-3.00#
bash-3.00# swap -l
swapfile             dev  swaplo blocks   free
/dev/zvol/dsk/rpool/swap 181,1       8 1048568 1048568
/dev/dsk/c1t1d0p0   30,144      8 2097136 2097136
bash-3.00#
bash-3.00# swap -s
total: 361736k bytes allocated + 159692k reserved = 521428k used, 1415820k available
bash-3.00#
bash-3.00# swap -d /dev/zvol/dsk/rpool/swap
bash-3.00#
bash-3.00# swap -l
swapfile             dev  swaplo blocks   free
/dev/dsk/c1t1d0p0   30,144      8 2097136 2097136
bash-3.00# swap -s
total: 361636k bytes allocated + 159792k reserved = 521428k used, 891536k available
bash-3.00#
bash-3.00# df -h /tmp
Filesystem             size   used  avail capacity  Mounted on
swap                   869M   112K   869M     1%    /tmp

Isn't it weird?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Swap space not getting used

CENT OS 5.8 server running with a huge java application which uses up all my ram (4GB) and requires excess of atleast 2GB.But the swap is not getting used up((8GB) of swap space left unused) leading a wierd error and stopping application to stop working. Any one here dealt with the same kind of... (2 Replies)
Discussion started by: shiek.kaleem
2 Replies

2. Solaris

Swap space

Dear All, I have a swap space of 16G available in Sol 10. I have allocated it as a seperate file system. But when the RAM Is full used , the system gets rebooted and the swap is not being used,. Any reasons for this. Rgds Rj (5 Replies)
Discussion started by: jegaraman
5 Replies

3. Linux

How to reclaim the space which i used to increse the swap space on Xen,

Hi, i have done a blunder here, i increased the swap space on Xen5.6 server machine using below steps :- 1056 dd if=/dev/zero of=/root/myswapfile bs=1M count=1024 1057 ls -l /root/myswapfile 1058 chmod 600 /root/myswapfile 1059 mkswap /root/myswapfile 1060 swapon /root/myswapfile ... (1 Reply)
Discussion started by: apm
1 Replies

4. Solaris

Swap Space

Could someone please explain how you know how much swap space you have on your system. See below: # swap -s total: 8225048k bytes allocated + 4863488k reserved = 13088536k used, 4008032k available # swap -l swapfile dev swaplo blocks free /dev/dsk/c3t0d0s1 32,25 16... (2 Replies)
Discussion started by: jamba1
2 Replies

5. Solaris

swap space confusions

hi, i am a little bit confused over swap space issues on solaris. what i know is that mostly all solaris swap space is configured on /tmp as a tmpfs. but i do receive alerts from my monitoring server that one of my server has exceeded 95% treshold. when checked at tmp, it shows only 12%. ... (1 Reply)
Discussion started by: cromohawk
1 Replies

6. Linux

swap space

Hi, I want to know how can i free the swap space if it is completely full, 0 mb remaining, (1 Reply)
Discussion started by: manoj.solaris
1 Replies

7. UNIX for Dummies Questions & Answers

Swap space used???

Plz I need to know how much swap mem free and used i have. I'm using Compaq Tru64 UNIX V5.1A (rev 1885) Thanx (1 Reply)
Discussion started by: Lestat
1 Replies

8. AIX

swap space / paging space

how do you get the paging space reduced without rebooting the machine ? the os is aix (2 Replies)
Discussion started by: aaronh
2 Replies

9. UNIX for Dummies Questions & Answers

pageing space vs swap space

Hello, I would like to know if there is any difference between the pageing space and the swap space. Thank you in advance. (1 Reply)
Discussion started by: VeroL
1 Replies

10. UNIX for Dummies Questions & Answers

SWAP SPACE

All, I am using SOLARIS 7. I have formated my hard drive to consist of only 150MB of swap space. This isn't enough considering I am running Oracle. How do I create additional swap space? Please list sources or commands. PS mkswap doesn't work on my machine. ( I have swap and... (5 Replies)
Discussion started by: SmartJuniorUnix
5 Replies
Login or Register to Ask a Question