[Bug 224975] shutdown(8) needs to wait longer for swapoff to avoid a “Cannot alloc ate memory” error

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 08 Feb 2023 07:43:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224975

Volodymyr Kostyrko <arcade@b1t.name> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arcade@b1t.name

--- Comment #4 from Volodymyr Kostyrko <arcade@b1t.name> ---
Well, some device might be not local, and that means stopping some daemons will
make us lose those devices and part of active memory. Imagine you are running a
diskless host that has swap somewhere on rSCSI or gated.

Next there's a phase when kernel stops all disk activity, meaning that nothing
can be extracted from swap at this time. Therefore all remaining activities
will only be successful if you don't hit an evicted page. Well, this is quite
unlikely, but in case you have a notebook or running on UPS you definitely
don't want extra possibility for system to crash, wait for timeout, write core,
reset, reboot, and be ready to poweroff again. Always better be safe then
sorry.

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