From nobody Tue May 17 13:56:16 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 CF60A1ADB772 for ; Tue, 17 May 2022 13:56:18 +0000 (UTC) (envelope-from wayne@post.wayne47.com) Received: from post.wayne47.com (post.wayne47.com [198.11.56.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "post.wayne47.com", Issuer "post.wayne47.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L2d2B0YHZz4XlC for ; Tue, 17 May 2022 13:56:18 +0000 (UTC) (envelope-from wayne@post.wayne47.com) Received: from post.wayne47.com (post.wayne47.com [198.11.56.11]) by post.wayne47.com (8.15.2/8.15.2) with ESMTPS id 24HDuGq9062091 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 17 May 2022 09:56:17 -0400 (EDT) (envelope-from wayne@post.wayne47.com) Received: (from wayne@localhost) by post.wayne47.com (8.15.2/8.15.2/Submit) id 24HDuG2b062090; Tue, 17 May 2022 09:56:16 -0400 (EDT) (envelope-from wayne) Date: Tue, 17 May 2022 09:56:16 -0400 From: Michael Wayne To: FreeBSD Hackers Cc: Mark Millard Subject: Re: Can not build kernel on 1GB VM Message-ID: <20220517135616.GA72471@post.wayne47.com> Mail-Followup-To: FreeBSD Hackers , Mark Millard References: <27171A11-13B1-48A8-AF46-605091E1093F.ref@yahoo.com> <27171A11-13B1-48A8-AF46-605091E1093F@yahoo.com> <20220516143753.GY72471@post.wayne47.com> <934C3159-4B1A-4A2F-9C21-93DC7CC90A72@yahoo.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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <934C3159-4B1A-4A2F-9C21-93DC7CC90A72@yahoo.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: 4L2d2B0YHZz4XlC X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of wayne@post.wayne47.com designates 198.11.56.11 as permitted sender) smtp.mailfrom=wayne@post.wayne47.com X-Spamd-Result: default: False [0.11 / 15.00]; ARC_NA(0.00)[]; FREEMAIL_CC(0.00)[yahoo.com]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:198.11.56.11]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[wayne47.com]; NEURAL_SPAM_MEDIUM(0.71)[0.708]; NEURAL_SPAM_SHORT(0.30)[0.303]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers]; RCVD_COUNT_ONE(0.00)[1]; FORGED_SENDER(0.30)[freebsd07@wayne47.com,wayne@post.wayne47.com]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2015, ipnet:198.11.56.0/24, country:US]; FROM_NEQ_ENVFROM(0.00)[freebsd07@wayne47.com,wayne@post.wayne47.com]; RCVD_TLS_ALL(0.00)[]; ONCE_RECEIVED(0.10)[] X-ThisMailContainsUnwantedMimeParts: N On Mon, May 16, 2022 at 12:07:18PM -0700, Mark Millard wrote: > On 2022-May-16, at 07:37, Michael Wayne wrote: > > > More info. I am running UFS so the ZFS should not be an issue > > > > % pstat -s > > Device 1K-blocks Used Avail Capacity > > /dev/md99 1048576 0 1048576 0% > > That may well explain some (or all?) of what is going on: > file-system/vnode backed swap spaces are subject to deadlocks. > Which suggested patch(s)? Any patches for . . . This one line change (patch reduced to only relevant info) that was posted earlier on the list. --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -1069,7 +1069,7 @@ vm_pageout_laundry_worker(void *arg) - if (target == 0 && ndirty * isqrt(howmany(nfreed + 1, + if (target == 0 && ndirty * isqrt(howmany(nfreed, > Can you switch to using a swap partition instead of > file-system/vnode backed swap space? AFAICT, this would require a reinstall as there's no easy way to shrink the existing image. Summary of events to date: - This was installed as a lightweight machine. It will never hit swap in "normal" operation. - The only reason I added a swap file was that someplace in 11.x building the kernel ran out of memory. - I only build a custom kernel to get options TCP_SIGNATURE for bird. - The swap file worked correctly for all of 11.x until I tried to build 12.x. - There likely out to be a FAQ or handbook page about how to lay out lightweight machines. Having used it since 4.x, 1 GB "seems" like a pretty big machine, yet these issues arose.