Page MenuHomeFreeBSD

Update swapon.8 to discourage using ZFS as swap device/file.
Needs ReviewPublic

Authored by ota_j.email.ne.jp on Oct 25 2019, 3:37 AM.

Details

Reviewers
kib
dougm
alc
markj
Group Reviewers
manpages
Summary

ZFS swap space can trigger OOM much earlier.

Test Plan

man swapon

Diff Detail

Repository
rS FreeBSD src repository
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 27215
Build 25480: arc lint + arc unit

Event Timeline

bcr added a subscriber: bcr.Oct 25 2019, 5:59 AM

Two suggestions.

sbin/swapon/swapon.8
211

killing what? I would insert "(random?) processes" here.
Contractions are discouraged in man pages, so use "does not" here.

kib added inline comments.Oct 25 2019, 6:51 AM
sbin/swapon/swapon.8
208

It does not matter how much memory is required for write. What matter is that each write requires allocation of memory.

If the VM high watermark levels are tweaked, OOM from ZFS on swap can be entirely avoided. Don't know if this is relevant?