From nobody Mon Mar 06 20:12:28 2023 X-Original-To: sysinstall@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 4PVqW039ddz3wKMN for ; Mon, 6 Mar 2023 20:12:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PVqW00PCGz4R6x for ; Mon, 6 Mar 2023 20:12:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678133548; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Gqfylrc3Ppr71VN5OPcG445Y1L8Z6cXVsSLCm7ZSe10=; b=cw9ht9SCRExB+oIKq/AV8q/Pfacl7/4n9gdtGzXyjdbkqhXNh9EdRlzu/bL2+og2ZvnO87 lZ33VQCzCNyOyE8G3hqX410e82/fI0FRcyHqYWq/7EnELL+oKPnxHxmRIGZRE4V9C2gWOV vbOL2piZD/+wkHSGSAWo+5jzlvAI7vmV8V7nO25Q28Lr7wUy2B/QDpZHN/OPxn1AAaKAFe 4WxHGCADkjmrd8agQoXcK+axepkWw/DuBubJLXw8qPkOYKIWgGRJkAH3CmeANeL+Fm8nMv 1xjX+amg4cDp+p1gJnNwA31jv9uh7i4SG/4+SqRjMWj3z0mTxUdXj3G8Rou8xA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678133548; a=rsa-sha256; cv=none; b=Wezxh6vkn9MN3jaJ5Y/aSZHuAuhYKcZtuBHfhnqqcw57oZ49LwNhSn3KruD5vOghGUE9cu c7VsXxmIkG1ESf8o+VC/NRLHVLJIEGIDFvLyMghEoJtk2JjtLgcxaigjl5OVUSg36Ntfnn ppFIO8Rfz263ZwOWzeneaUEkuNCuq1nCPj8JQzOJFmSninZr0KSRc50H4RqvhuHBoPZIsH subscwRWwsod92zX3CelvZ5Q1yA5HUjJrSKg1Ri94BZY4A0jyn+NYr6oJ8yevpijD9unHX n1FpJx1X8jtobiLUez9pD82ZRalX2Vq787nQkllKR8zEQjjfJBGsfkKvYxiJFg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PVqVz6ZRYzFSZ for ; Mon, 6 Mar 2023 20:12:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 326KCR57027209 for ; Mon, 6 Mar 2023 20:12:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 326KCRX5027208 for sysinstall@FreeBSD.org; Mon, 6 Mar 2023 20:12:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: sysinstall@FreeBSD.org Subject: [Bug 251993] sysinstall: Can create swap partition size that generates kern.maxswzone warning Date: Mon, 06 Mar 2023 20:12:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: needs-patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sysinstall@FreeBSD.org X-Bugzilla-Flags: mfc-stable13? mfc-stable12? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Sysinstall Work List-Archive: https://lists.freebsd.org/archives/freebsd-sysinstall List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-sysinstall@freebsd.org X-BeenThere: freebsd-sysinstall@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251993 --- Comment #9 from Ed Maste --- (In reply to Kubilay Kocak from comment #8) The warning was added in: commit 3ff863f1aa52963ea55487477573f70caa275a94 Author: Dag-Erling Sm=C3=B8rgrav Date: Thu Aug 16 08:29:49 2012 +0000 - When running out of swzone, instead of spewing an error message every tick until the situation is resolved (if ever), just print a single message when running out and another when space becomes available. - When adding more swap, warn if the total amount exceeds half the theoretical maximum we can handle. Notes: svn path=3D/head/; revision=3D239327 I suspect the real issue is: > real memory =3D 268435456 (256 MB) Typical installations likely involve a minimum of 1GB of RAM, or maybe 512M= B. The installer's swap size default is set by: #define SWAP_SIZE(available) MIN(available/20, 4*1024*1024*1024LL) > What might a suitable patch look like or do? Could be one or more of: - add another limit to the SWAP_SIZE MIN(), so that we'd choose less swap f= or this installation (either "real memory" or the vm.swap_maxpages sysctl) - have the installer produce a warning when run on a system with less than 512MB of RAM=20 - instead of emitting a warning from the kernel, just ignore (do not use) provided swap space that's above what kern.maxswzone permits --=20 You are receiving this mail because: You are the assignee for the bug.=