Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Apr 2022 10:25:23 +1000
From:      Peter Jeremy <peterj@freebsd.org>
To:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Can not build kernel on 1GB VM
Message-ID:  <YloM86%2B8cO7zOGgj@server.rulingia.com>
In-Reply-To: <20220415174953.GE13678@post.wayne47.com>
References:  <20220415174953.GE13678@post.wayne47.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--OqU5eMkTv4ZFksOz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2022-Apr-15 13:49:53 -0400, Michael Wayne <freebsd07@wayne47.com> wrote:
>I have a VM with 1GB RAM running FreeBSD 12.1-RELEASE-p3
>
>I'm trying to upgrade the machine to 12.3 and having swap failures.

Are you using ZFS or UFS and are you swapping to a raw partition
or a file/zvol?

>the machine ran out of swap. with a bunch of messages like:
>   Apr 15 12:11:26 g1 kernel: swap_pager: indefinite wait buffer: bufobj: =
0, blkno: 240593, size: 4096
>   Apr 15 12:11:35 g1 kernel: swap_pager: indefinite wait buffer: bufobj: =
0, blkno: 236224, size: 16384
>   Apr 15 12:11:37 g1 kernel: swap_pager: indefinite wait buffer: bufobj: =
0, blkno: 245, size: 12288
>   Apr 15 12:11:46 g1 kernel: swap_pager: indefinite wait buffer: bufobj: =
0, blkno: 240593, size: 4096
>   Apr 15 12:11:55 g1 kernel: swap_pager: indefinite wait buffer: bufobj: =
0, blkno: 236224, size: 16384
>   Apr 15 12:11:57 g1 kernel: swap_pager: indefinite wait buffer: bufobj: =
0, blkno: 245, size: 12288

That message doesn't indicate "out of swap", in indicates that your
swap device isn't responding within a "reasonable" time. If you are
swapping to a local ZFS file or zvol, you may be running into a known
deadlock condition and should switch to using a raw partition for
swap.  If you can't improve your swap device performance, adjusting
the vm.pageout_oom_seq and vm.pfault_oom_attempts sysctls should
resolve the problem.

A true "out of swap" will appear as a message similar to
swap_pager_getswapspace(nnn): failed

--=20
Peter Jeremy

--OqU5eMkTv4ZFksOz
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAmJaDOhfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF
QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi
CzQ0nw//XcdDogXlcT4FVCGTCoQV6DXH+sNnKV+O9xii1qmMCaRtDjyssfgU7c9/
p5k5CZK5OpapOxDZJOXN8IXOzBDTAE4sEZ9ZnzJR+RxZFSn2e3pHYqgPBE6X2lHi
GilgHz/RWp8QwWS+ydJGBX6xnWF2JlSDERSjNwgg6Bai6guquP5EjVVS5LaY3c+3
Qcctz36KYIv1WyR4FvHp7LAp/UMNCe0Psnjdsi9na3E1uibuvgrwynQIvQ5c1Kjz
U1Z8mRg0lD4IMmc29x+UhE4WfUVGfzFnvz0hv5hDoUGmxs3C4unSx9IvGeWBkF8q
JRGzM2oHtN8595AM+7tK9zU0sIrDhILJ9iFfYnO4CVQ+lLAptW+ik2qOCU/rWsMm
pEWMrpRkSAnntFT+UkElhdpJ/uwSyBUTh/ga5LjZa3SvrsAO/n6GwxGtTjTiHrdW
2OnXaCbq2R5RjdPs4ORjbvH7PEKBi68CFk9vKsHO1+xwVsj2Xt4p6YgwlAiy1eNd
Vet4oqrTxjMRrWwEv9BilQ5o2ue6ia8ufR5wUFjldMFYScXvtEf/5BGwlAvk7Wwt
myHmkkJ7DIxJ9918k/a0Vr4orXTfuAjk+tEd73GiaT6rKcJGWfN6cFojNGzNN3Np
5BufiX+ZmxO8ugieXd2S04uRdvk9PHNgHiabsBtTB8QOhlhq/PQ=
=RhQI
-----END PGP SIGNATURE-----

--OqU5eMkTv4ZFksOz--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YloM86%2B8cO7zOGgj>