Possible to increase swap size for existing UFS-based drive slice?


 
Thread Tools Search this Thread
Operating Systems Solaris Possible to increase swap size for existing UFS-based drive slice?
# 15  
Old 04-27-2013
Quote:
Originally Posted by JT-KGY
Also ZFS does tend to slow down dramatically after the system has been up
for a while... to the point that login onto the shell would take some 10
seconds... any access to the disk takes longer to respond..etc.
Then you should post echo ::memstat|mdb -k, vmstat 5 5, zpool iostat -v 5 5 and swap -s output when this problem occur.
Quote:
Is there any way to refresh the ZFS cache?
No sure what you mean as the ARC cache is always "fresh".
You can clear it by exporting/importing the pool.
Is your ARC size capped ?
# 16  
Old 04-30-2013
Well... it's doing it again....

vi takes around 5 - 10 seconds to save a small file....
login takes around 10 - 15 seconds to get a shell prompt....

Only happens to the container zones but not the global.
Container zones are mounted on the ZFS.

Code:
# zpool iostat -v 5 5
               capacity     operations    bandwidth
pool         used  avail   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
adpool02     329G  79.1G     50    202   290K  1.18M
  raidz1     329G  79.1G     50    202   290K  1.18M
    c0t1d0      -      -     31    120  1.90M   615K
    c0t2d0      -      -     31    121  1.89M   615K
    c0t3d0      -      -     31    121  1.90M   615K
----------  -----  -----  -----  -----  -----  -----

               capacity     operations    bandwidth
pool         used  avail   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
adpool02     329G  79.1G     39      0   376K      0
  raidz1     329G  79.1G     39      0   376K      0
    c0t1d0      -      -     23      0  1.42M      0
    c0t2d0      -      -     26      0  1.58M      0
    c0t3d0      -      -     27      0  1.63M      0
----------  -----  -----  -----  -----  -----  -----

               capacity     operations    bandwidth
pool         used  avail   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
adpool02     329G  79.1G     33      0   227K  25.0K
  raidz1     329G  79.1G     33      0   227K  25.0K
    c0t1d0      -      -     21      0  1.25M  12.5K
    c0t2d0      -      -     20      0  1.23M  12.5K
    c0t3d0      -      -     22      0  1.33M  12.5K
----------  -----  -----  -----  -----  -----  -----

               capacity     operations    bandwidth
pool         used  avail   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
adpool02     329G  79.1G     73    197   369K   863K
  raidz1     329G  79.1G     73    197   369K   863K
    c0t1d0      -      -     37    154  2.26M   439K
    c0t2d0      -      -     33    156  2.08M   440K
    c0t3d0      -      -     36    154  2.26M   440K
----------  -----  -----  -----  -----  -----  -----

               capacity     operations    bandwidth
pool         used  avail   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
adpool02     329G  79.1G     49    524   348K  2.70M
  raidz1     329G  79.1G     49    524   348K  2.70M
    c0t1d0      -      -     31    383  1.83M  1.37M
    c0t2d0      -      -     30    387  1.83M  1.37M
    c0t3d0      -      -     31    376  1.87M  1.37M
----------  -----  -----  -----  -----  -----  -----

Code:
# vmstat 5 5
 kthr      memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr s0 s1 s2 s3   in   sy   cs us sy id
 0 0 0 511520 770472 246 1008 246 1 0 0  0  0 164 0 165 10127 9120 17150 16 6 78
 1 0 0 2298600 489608 59 172 13 0  0  0  0  0 193 0 197 4725 10124 6080 22 5 74
 0 0 0 2308296 495120 61 68  0  0  0  0  0  0 34  0 30 3355 9951 4139 19  5 76
 0 0 0 2323896 504784 189 516 0 0  0  0  0  0 155 0 169 4284 10145 5426 16 5 79
 0 0 0 2274624 470288 486 2342 0 0 0  0  0  0 151 0 158 4427 14669 5866 27 6 67

Code:
# swap -s
total: 3213376k bytes allocated + 304064k reserved = 3517440k used, 2244760k available

(this is a different box than what I previously posted...)

---------- Post updated at 01:32 PM ---------- Previous update was at 01:24 PM ----------

As a test... I used vi to write "test" to a new file... takes long time to save.
(This time it took some 25 seconds)
I could however do "echo test > testfile" and it would write instantly.

I think this indicate a problem with the zone... I just don't know what it is.
# 17  
Old 05-16-2013
It is not recommended to use swap file with ZFS. The best practive is to create ZFS volumes and use them as swap.
# 18  
Old 05-16-2013
Quote:
Originally Posted by abhi_8029
It is not recommended to use swap file with ZFS.
That's an understatement. It is actually not possible at all to use a swap file with ZFS.
Quote:
The best practive is to create ZFS volumes and use them as swap.
Not in the OP case. Creating a swap volume on the RAID-Z pool wouldn't be possible either. The only option here is to create a swap file on UFS.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

How to increase the /var (UFS) filesystem and root disk under veritas control?

I need to increase the /var (UFS) filesystem and root disk under veritas control or root disk is encapsulated # df -k /var Filesystem kbytes used avail capacity Mounted on /dev/vx/dsk/var 13241195 12475897 674524 96% /var # fstyp /dev/vx/dsk/var ufs # pkginfo... (1 Reply)
Discussion started by: amity
1 Replies

2. Solaris

Need to attach one slice with existing concatenated volume

Hi I need to add new slice to existing concatenated volume. Please let me know the process to do the same I have d0 concatenated volume which consist of c1t0d0s7 & c1t2d0s0 bash-3.00# df -h /export/home Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 ... (3 Replies)
Discussion started by: sb200
3 Replies

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

4. Solaris

clear swap slice

is there a command that would zero swap slice? I found these instructions: but hoping there is some swap-specific command (3 Replies)
Discussion started by: orange47
3 Replies

5. Solaris

Installing ZFS on an existing Solaris 10 install (UFS)

Hello, I am new to Solaris so i apologize upfront if my questions seem trivial. I am trying to install a ZFS file system on a Solaris 10 machine with UFS already installed on it. I want to run: # zpool create pool_zfs c0t0d0 then: # zfs create pool_zfs/fs My question is more to... (3 Replies)
Discussion started by: mcdef
3 Replies

6. Solaris

How to increase or decrease inode number of the particular UFS filesystem

Hi Gurus I want to know the command & tips regarding, how to increase or decrease inode number of the particular ufs filesystem. Is it possible to do it in a live/production environment. Regards (3 Replies)
Discussion started by: girish.batra
3 Replies

7. Solaris

Increase size of /tmp swap File

Hi Guys I need to increase the size of my /tmp swap file. What is the easiest way to do this. Thanks Carson (2 Replies)
Discussion started by: cmackin
2 Replies

8. UNIX for Dummies Questions & Answers

Add SWAP to free slice

I'm interested in adding more swap space to my current workstation (Solaris 10). I currently have 2 hard drives installed, however the system was only created with 512MB for swap that resides on drive 1. This drive is already sliced up and all slices are being used. The second drive has two... (3 Replies)
Discussion started by: here2learn
3 Replies

9. UNIX for Dummies Questions & Answers

run fsck on swap slice?

Hi.. i am using sun solaris...and this is the filesystem information... you can see th slice(swap) c0t0d0s1 is giving some absord information......and during rebooting it is asking to run fsck mnually..when i run fsck manually it is giving error incorrect starting and end header...smthing like... (1 Reply)
Discussion started by: Prafulla
1 Replies
Login or Register to Ask a Question