Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Dec 2019 16:14:06 +0000
From:      tech-lists <tech-lists@zyxst.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: spurious out-of-swap messages (plenty of swap available)
Message-ID:  <20191220161406.GK63749@bastion.zyxst.net>
In-Reply-To: <20191219164801.GH63749@bastion.zyxst.net>
References:  <20191219164801.GH63749@bastion.zyxst.net>

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

--LQ77YLfPrO/qF/pM
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Dec 19, 2019 at 04:47:34PM +0000, tech-lists wrote:
>Hi,
>
>A desktop system running latest 12-stable and poudriere-devel gives "out of
>swap" errors when compiling some ports like rustc. But swap doesn't go over
>7%, there's 32GB RAM and over 64GB of swap (2x 32GB swapfiles on an SSD pl=
us
>one 4GB swap partition, also on SSD):
>
>% sysctl -a | grep swap
>2 PART ada0s1b 3834175488 512 i 2 o 236223201280 ty freebsd-swap xs BSD xt=
 1
>0 MD md98 34359738368 512 u 98 s 512 f 0 fs 0 l 34359738368 t vnode file
>/swap1 label
>0 MD md99 34359738368 512 u 99 s 512 f 0 fs 0 l 34359738368 t vnode file
>/swap0 label
>z0xfffff8001e3ae600 [shape=3Dbox,label=3D"SWAP\nswap\nr#4"];
>      <file>/swap1</file>
>      <file>/swap0</file>
>      <name>swap</name>
>      <type>freebsd-swap</type>
>vm.swap_enabled: 1
>vm.domain.0.stats.unswappable: 0
>vm.swap_idle_threshold2: 10
>vm.swap_idle_threshold1: 2
>vm.swap_idle_enabled: 0
>vm.disable_swapspace_pageouts: 0
>vm.stats.vm.v_swappgsout: 3034133
>vm.stats.vm.v_swappgsin: 462625
>vm.stats.vm.v_swapout: 428651
>vm.stats.vm.v_swapin: 143721
>vm.nswapdev: 3
>vm.swap_fragmentation:
>vm.swap_async_max: 4
>vm.swap_maxpages: 65126576
>vm.swap_total: 72553652224
>vm.swap_reserved: 76193538048
>
>I see this in /var/log/messages:
>
>Dec 19 15:38:07 desktop kernel: pid 57027 (rustc), jid 13, uid 0, was kill=
ed:
>out of swap space
>Dec 19 15:39:47 desktop kernel: pid 35795 (rustc), jid 13, uid 0, was kill=
ed:
>out of swap space
>
>Why isn't all the swap space being used? I could understand if it went to =
like
>95% use then complained, but I've kept a close eye on it while compiling a=
nd
>it doesn't get anywhere near that. As far as I'm aware, sysctl tunables are
>default. I'm thinking maybe the out-of-swapspace messages mask something e=
lse?

"Solved" this by running poudriere pkgclean -A. Then a batch run building o=
ver
1200 ports without error, and swap being used normally.
--=20
J.

--LQ77YLfPrO/qF/pM
Content-Type: application/pgp-signature; name="signature.asc"

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

iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAl3882kACgkQs8o7QhFz
NAXblw//d+Xvk+0JEPMlwbRBMjM4f3itxLEGuxxOutJJWjNlOlnHjqdWSRVcoqlJ
o6YMvZ36sLmTcLEk2zpIme1Uvdl7iiLHtZ9Ewxy5kUdZtyomr4iYJz3JUJdQPHtr
G5o1oQACdHM3TTIbHwDLScyjf9pO3/WIsxFXqf2bmC3TOkzxPei7ywdljChNjfuO
XzkKUJcDRrGPhjT+n3P+kyDxGfCVAlIcTlqmIYZXbpAmUZQrveaLFkLlAwPXlXNJ
NTY7g04Uo0XG2erWxuIhpCQjplkyMGFa0sLi19fFk3lt1x4d96TvJnaLX902FeiI
GvN07ZRKWeX0ArBB0BDWAoL1PL/R2xjycmyf6SaXXZL+Fw1MfdL5QO90R/pfWHl+
35EBQ8Sj7LWx88vR7BOtlfsCGyvL5Wxkiw4okWiq8Um5qNXvyh/8JxczEnW4KQyM
WVq8SEmkZS0T7mnlRwnUp8SZpYKbpAIa7W5EqzmzT5RQQZTDCwef/qnJ2MeQZjE/
EpL/1hf77TJQDLXTylLcw8O/EThAeu5IIItD/VxIhx8/1AW4R7OJ6ZYWRjadw57h
Ttu4q6407ROu3QKFczVT8IqVyZgTUQgurdkCcJ8Qp57rZTNWTLaDUfXeWGTm14mD
xa9zNN3RAnAHmiKId5v8KVkxWd6PFEirpafsy8qS7cT3J7LVx2k=
=15gF
-----END PGP SIGNATURE-----

--LQ77YLfPrO/qF/pM--



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