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.
 
Back
Top