From nobody Sat Apr 16 00:25:23 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 06D2C7EC154 for ; Sat, 16 Apr 2022 00:25:32 +0000 (UTC) (envelope-from peterj@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KgDVz6pSfz4SGd for ; Sat, 16 Apr 2022 00:25:31 +0000 (UTC) (envelope-from peterj@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650068732; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8Ntdz8JOmL/YAuVwe+SS1RDWPdGEPsE/8l+rwQX9YuA=; b=wpNMW++llNHb/W1vXxmkRekMkRtAr12ZVRRKKa4CJllObyisw3Q37k2HeimpYL0FkSuxv8 9jA84hG3sKx6QbyYDodI+wkmbp8qgbrC0CeHgkwkURwvFbhm97BbvumDhGpBmEhpe1ZSlg qMnDrP0volpiCwk1mes1GTx4O2mJDF05wgnj2+2SMIcBtOZ4+0u+8mHj0GPNUjqwJVrqmG 1crmnSUKo9zQo7nz9BvQVs4nchFM8uvwA8ofLnbttPIn+mQcTB9TkBn+AxNx56WJMz+bAd ++lKMtS9GXIVD/Tk+C13OFp+u/zEfnVQclW50HHqWfhSIv/64+ZHirapsS33xQ== Received: from server.rulingia.com (ppp239-208.static.internode.on.net [59.167.239.208]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: peterj) by smtp.freebsd.org (Postfix) with ESMTPSA id 215502AEB9 for ; Sat, 16 Apr 2022 00:25:30 +0000 (UTC) (envelope-from peterj@freebsd.org) Date: Sat, 16 Apr 2022 10:25:23 +1000 From: Peter Jeremy To: FreeBSD Hackers Subject: Re: Can not build kernel on 1GB VM Message-ID: References: <20220415174953.GE13678@post.wayne47.com> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OqU5eMkTv4ZFksOz" Content-Disposition: inline In-Reply-To: <20220415174953.GE13678@post.wayne47.com> X-PGP-Key: http://www.rulingia.com/keys/peter.pgp ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650068732; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8Ntdz8JOmL/YAuVwe+SS1RDWPdGEPsE/8l+rwQX9YuA=; b=UZq2FmaLeVzCKAVqqVpPpi1NBvz2KhmzaORfg8xZKRdHv719jJjR2wQCu2fx0niAxyzGSC Jp3jQU/NoXh5IfINbAyQwzxaXWi4+jo5AYlFm+fkpnZkHBlrUQ127dR8plGBbbVMWvnRQ9 4GoeZD0DPK3yNQ/9zCnosCqnjQrt1NMwx68zwVdyINm7iHWM/JEOYLrcWcakEWZpQ68HMq kcUUFXiHBpwm6ZnI0/7tAwcvGUzugpxB7qcxxqc2HgHp0z65PXLr3esVGBt4ftZs+sYbFC kGRUAcrI+6SPVzKpJbBKIjQZuLDiZBgI66UwhNdicq5/8enyo5J8wAqt7DOJwQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650068732; a=rsa-sha256; cv=none; b=rCEwuEczQnrUmYwY+kAGZg0erJ+1UzguT1O7kx+nxQ9AYyrpvebhkmS2fNilsAcWsAY5Xw jiOlkLN6DRIFh33OM+JCYVls5MSpOj/QsYXtWHJdbuS6Y6Do0G/Kr3UA0o+I4gKzi8ZHef NLVCuEJO5Cg89K7YilT9EX485orSgUAZUS2J5tR7tP/6Rm4Z0wurcukXIMg+gt9zXq7kAR UTtJX9G4GAjrM9a96JmR5xLRTcZzsw4gp8dGIjBN9cE6ePVYH1lmbLxsPvzkfiy+DN+yN+ b6ct97uzDP6FwU4DkGezctx7zi8IDfQW7ttiPxSopV9SNxueaXoXEbQ9etotzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --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 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--