From nobody Tue Jan 24 22:14:17 2023 X-Original-To: dev-commits-src-branches@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 4P1h8T2LY7z3bghY; Tue, 24 Jan 2023 22:14:17 +0000 (UTC) (envelope-from git@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 4P1h8T1pc5z3LFk; Tue, 24 Jan 2023 22:14:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598457; 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; bh=W/dFgXnpz78SYw6Qge1Kk9X8/bXU3cj2+a6FdJcMtD8=; b=f3po4DtXD9vnbauItGHnM/tW6dK94PdH4/L6wuDA2jmwoN154P4HPxwX73iU/FaaE/lQlX 1DuPoFTjjZuNZUiV7nET/DwKCwLslOK0cq9dNOIAL5ixhq6Ux06HMnblSVsYnVtWNVVg02 WiJ2TJVSWm7OYUAvYYMLe6FCGY0buw7fJKns8mjw/jZzt5JVP6AczTE0OhrfVrBjv1pSy9 aqaF+xdS28vEw+04CDgBTuGUiqIcAUer8myhQE6r3qAfBkuyhRuIQkeOYqHqaIlzDfjHz+ ozgJJ1snkVrMsUutLy1/O5K4Uq6rUNqsl7zZiO+mpPK0jjrjpNIaGwuhGp9cvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598457; 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; bh=W/dFgXnpz78SYw6Qge1Kk9X8/bXU3cj2+a6FdJcMtD8=; b=dV2oqNCyRBHnraTjKqWnXZjTodHhxDG3PZkkwwxDuBMua7hUWxbexgXdgYVlZ/kt50dVvi 6/3cS/UlVRL6cBqPT/25x0MENCY+NYxUi8khxWOxMvSpvM7qPeQOpbZXVv347/XPKOZCzC DOqSIuQoCo+gU0F/yl+fsiG4kFLhSFcmh2nncukhooMDY4IMWaMkjrwcGid2plPZy7Hv0m Yc76IWrlJmLavYuXl7LztWEJtYVZG43gVxfRRpAxOuRUcIfJ/sa53hYdRnDuGy7oS3IyQL ejIhV2/x5AQEUrO/vewe+IGWYmKjvZhcrGxI9qwepAIMfH06namYt+h/Rhafug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674598457; a=rsa-sha256; cv=none; b=Zy7a+R4mdgSEvJ62R1DNDziQm1BfPGChTPSlEFHMQiAe7mzUMazV1jU6fTW8tREOb+r12R p5xWk0ffy2HBf9YCTtKxxmOvvwCuRUOLkJkowK9ojXkFBVuWdpjHykkJVmMZmUj+awM9+g 6O0UPCG+XTIfc9ZQ3dJFpeWpJZaqznC5flTyBDuZco7/fmEs0Qlp459HgNY8h2kpNoz7u9 O29h/MrBqyk7eIkFqxvlRWuSIyIy24T6BJARCM3eF4UGXfR1YqFtscJp/BhLY+10QMb4Zn WvLLMkG9yG4ZUi5ugL37PvFdy9YMWzcFCSMjAGPp1ZS6TLG5WqgXR5ZIhg/OMA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4P1h8T0qlVzQW6; Tue, 24 Jan 2023 22:14:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30OMEHGD089599; Tue, 24 Jan 2023 22:14:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30OMEHKs089598; Tue, 24 Jan 2023 22:14:17 GMT (envelope-from git) Date: Tue, 24 Jan 2023 22:14:17 GMT Message-Id: <202301242214.30OMEHKs089598@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: e474c385776e - stable/13 - kboot: use 128MB for the heap area, ZFS needs a lot of memory List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: e474c385776ed4c1a8a782b8b47db285a288a4ae Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=e474c385776ed4c1a8a782b8b47db285a288a4ae commit e474c385776ed4c1a8a782b8b47db285a288a4ae Author: Warner Losh AuthorDate: 2022-12-23 18:26:32 +0000 Commit: Warner Losh CommitDate: 2023-01-24 21:49:45 +0000 kboot: use 128MB for the heap area, ZFS needs a lot of memory ZFS uses a lot of memory. The old minimal allocations won't work when ZFS support is added. Most environments this will be used (or will liekly be used) have >> 256MB, 128MB should be safe everywhere and allow examination of a fair number of ZFS pools to boot from. Sponsored by: Netflix (cherry picked from commit 4dd3e76881ad025170b0cfb5455680b3c89fe263) --- stand/kboot/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/kboot/main.c b/stand/kboot/main.c index 85453db50fa5..2e85121b7b12 100644 --- a/stand/kboot/main.c +++ b/stand/kboot/main.c @@ -150,7 +150,7 @@ int main(int argc, const char **argv) { void *heapbase; - const size_t heapsize = 15*1024*1024; + const size_t heapsize = 128*1024*1024; const char *bootdev; archsw.arch_getdev = kboot_getdev;