Page MenuHomeFreeBSD

vm_pageout: Print a more accurate message to the console before an OOM kill
ClosedPublic

Authored by markj on Jan 10 2022, 4:56 PM.

Details

Summary

Previously we'd always print "out of swap space." This can be
misleading, as there are other reasons an OOM kill can be triggered. In
particular, it's entirely possible to trigger an OOM kill on a system
with plenty of free swap space.

MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

markj requested review of this revision.Jan 10 2022, 4:56 PM
kib added inline comments.
sys/vm/vm_pageout.h
84 ↗(On Diff #101211)

Why is this needed?

This revision is now accepted and ready to land.Jan 10 2022, 5:09 PM

Drop VM_OOM_MAX, leftover from something else.

This revision now requires review to proceed.Jan 10 2022, 5:13 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jan 14 2022, 8:40 PM
This revision was automatically updated to reflect the committed changes.