[Bug 262595] Swap on ZFS doesn't work properly.

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 16 Mar 2022 14:00:00 UTC

            Bug ID: 262595
           Summary: Swap on ZFS doesn't work properly.
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: dmilith@me.com

On one of my FreeBSD hosts I use swap on ZFS configured this way:

zfs create -V 64gb -o org.freebsd:swap=on -o checksum=off -o compression=off -o
dedup=off -o sync=disabled -o primarycache=none zroot/swap
swapon /dev/zvol/zroot/swap

The thing is… the swap is used in 1% there but I get OOMs from the kernel with
Influxdb using a bit over 50G RSS.

Had exactly the same issue on one arm64 machine also with ZFS, crashing the
same way… having gigabytes of free swap available.

Seems like swap on ZFS is not a real thing, or it simply doesn't work well?

You are receiving this mail because:
You are the assignee for the bug.