Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2024 02:21:19 +0000
From:      Lexi Winter <lexi@le-fay.org>
To:        freebsd-current@freebsd.org
Subject:   poudriere: swap_pager: out of swap space
Message-ID:  <ZZ9Qn1W4k8UKnT6W@ilythia.eden.le-fay.org>

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

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

hi list,

i'm having a recurring problem with poudriere that i hope someone might
have an idea about.

i'm building packages with poudriere on a system with 32GB memory, with
tmpfs and md disabled in poudriere (so it's using ZFS only) and with the
ZFS ARC limited to 8GB.

running poudriere produces many kernel log messages like this:

Jan 10 21:40:00 ilythia kernel: swap_pager: out of swap space
Jan 10 21:40:00 ilythia kernel: swp_pager_getswapspace(2): failed
Jan 10 22:41:55 ilythia kernel: swap_pager: out of swap space
Jan 10 22:41:55 ilythia kernel: swp_pager_getswapspace(21): failed
Jan 10 23:48:03 ilythia kernel: swap_pager: out of swap space
Jan 10 23:48:03 ilythia kernel: swp_pager_getswapspace(8): failed
Jan 11 00:05:00 ilythia kernel: swp_pager_getswapspace(1): failed
Jan 11 00:21:45 ilythia kernel: swp_pager_getswapspace(10): failed

this is despite the system having a large amount of "Inact" memory
according to top(1):

Mem: 3828M Active, 15G Inact, 2921M Laundry, 9263M Wired, 1559M Buf, 892M F=
ree
ARC: 3113M Total, 994M MFU, 884M MRU, 39M Anon, 49M Header, 1139M Other
     1296M Compressed, 4130M Uncompressed, 3.19:1 Ratio
Swap: 2048M Total, 2048M Used, 8192B Free, 99% Inuse

=66rom what i can tell, these swap errors don't cause any issues with the
poudriere build, but they do seem to hinder interactive usage by causing
long hangs.

does anyone have some idea what's going on here?  i don't really
understand why the system has used 100% of available swap space when it
has plenty of Inact memory it could free to fulfill requirements.

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

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

iQGzBAABCAAdFiEEuwt6MaPcv/+Mo+ftDHqbqZ41x5kFAmWfUJsACgkQDHqbqZ41
x5nD8Qv9H4B+1bcqiD5XqFf3+m8cw7T9oVoYChO4m5CrZGBItHlOoK5giaiAlLnv
pn5iQrP8eQKIu5sEu9L5mea/NFMTiylpIrMvvK3oIJmMbKxSoJ90M+KozYvsXKnu
R1c2ub/msKuhV41G4nPDb0m2OPgU4cVFncvzuZjtO1kKWsJFluDq2dPbIleBv+9C
YJRImYCexJDMVC2Hm0s+SACSAJeRiiQdLA/GqQo839P/k4a/RynmtZJzL5T6lnEH
JvO0q3fkK+0jRKKgXvZrDXjLlxZug7ZsFr6sVHuTst9noy0NdH//Qi2rwA79Q8z5
XjY/1Fr8pWgM0fNm9dxl+Pu9QyMEuXi76Kegdgz849vvJzohRrLvwI4pNL2rOz9c
euBM5+FBgAUbEq2bLxeGd+975/cpMFomZliFOsEhv8WkHP2BqkiNicf7X0ZnoNnq
VxMJiLwPgVCD2J8t9/GpW8bElR+vV6NEUPrNRDIDWl4VLBZ4lM7EIjz5hp1XSDhq
QR6ogk+k
=S9S9
-----END PGP SIGNATURE-----

--prqL3tYSvp8X714B--



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