ZFS How to increase swap space on ZFS

I keep running out of swap space and would like to increase it

Code:
=>        40  1953525088  ada1  GPT  (932G)
          40      532480     1  efi  (260M)
      532520        1024     2  freebsd-boot  (512K)
      533544         984        - free -  (492K)
      534528     4194304     3  freebsd-swap  (2.0G)
     4728832  1948796296     4  freebsd-zfs  (929G)

What can I do?

I probably need 8G
 
It says

Swap files on ZFS file systems are strongly discouraged, as swapping can lead to system hangs.

but I guess I don't have an option.

I've followed the instructions, so hopefully everything should have worked.
 
It says

Swap files on ZFS file systems are strongly discouraged, as swapping can lead to system hangs.

but I guess I don't have an option.

I've followed the instructions, so hopefully everything should have worked.
assuming swap priorities work on FreeBSD (I don't know) it should use first your swap partition and then the file (maybe).
 
If you are going to put swap on ZFS, it's likely to be more efficient to put it on a ZVOL.
I really don't anything about ZFS apart from the initial and format prior to installation and am scared of messing something up.

I have no idea about what it means to put it on a ZVOL.
 
I keep running out of swap space
Do you know why? Is this a desktop machine or a server machine? If you are running something like MySQL, maybe you have allowed it too much memory (MySQL is usually what dips into swap space on servers I look after).

Also if you are using ZFS, have you tweaked the ARC usage (I'm NOT a ZFS expert or even a ZFS power-user, but it can be greedy, so something else maybe to look at.)

I appreciate you might be after a "quick fix" but might be worth seeing if you can reduce the swap required.
 
Do you know why? Is this a desktop machine or a server machine? If you are running something like MySQL, maybe you have allowed it too much memory (MySQL is usually what dips into swap space on servers I look after).

Also if you are using ZFS, have you tweaked the ARC usage (I'm NOT a ZFS expert or even a ZFS power-user, but it can be greedy, so something else maybe to look at.)

I appreciate you might be after a "quick fix" but might be worth seeing if you can reduce the swap required.
I run out of swap space because I have too many browser windows open, probably 100 or so. I have them open to remind me about topics I have been looking at. Never been any good at using bookmarks.
 
Back
Top