Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Sep 2025 13:50:04 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Brandon Allbery <allbery.b@gmail.com>
Cc:        Rick Macklem <rick.macklem@gmail.com>, Graham Perrin <grahamperrin@gmail.com>,  FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: bsdinstall: system requirements: memory/RAM: ZFS: 2048 MB for an ordinary installation plus a desktop environment
Message-ID:  <CANCZdfrdKJdJ_vSfErZxXv7H_zeF-GKBagm4fG9rU8JVkbg8Jw@mail.gmail.com>
In-Reply-To: <CAKFCL4V9U=CF%2BstGa2j8e%2Bm2LSHsn1UcScwAsK9fbgJ4vGSWJA@mail.gmail.com>
References:  <20250927203411.E6790B633@freefall.freebsd.org> <zlodcczlzdsmbriedisg@hobq> <714becfe-6772-4761-857e-d32700666e0b@gmail.com> <8c3cb94b-c1b5-45d2-9ac7-1502c4e6409c@gmail.com> <580e3d70-9969-4895-b641-b4343f675084@gmail.com> <CANCZdfpV8mA9YxLqq5SUFmskWupi1Q1=ehC_m5ptDQO7C5iecw@mail.gmail.com> <CAM5tNy5pg=twm7-sM2H7zUbqdVV7zzr7CuWTF4mjFkNMGpmOzg@mail.gmail.com> <CAKFCL4V9U=CF%2BstGa2j8e%2Bm2LSHsn1UcScwAsK9fbgJ4vGSWJA@mail.gmail.com>

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

[-- Attachment #1 --]
Yea, I've not seen that to be the case. ZFS isn't that big of a memory hog
these days... There are times you do need to tune the arc, but they are the
exception, not the rule.

Warner

On Tue, Sep 30, 2025 at 1:41 PM Brandon Allbery <allbery.b@gmail.com> wrote:

> FWIW my understanding is that ZFS root is such a memory hog that anything
> under 16GB is disrecommended and 32GB preferable. (I have only one
> machine that fits that constraint, and FreeBSD doesn't quite work on it
> yet.)
>
> On Tue, Sep 30, 2025 at 3:38 PM Rick Macklem <rick.macklem@gmail.com>
> wrote:
>
>> On Sun, Sep 28, 2025 at 7:59 AM Warner Losh <imp@bsdimp.com> wrote:
>> >
>> >
>> >
>> > On Sun, Sep 28, 2025, 4:47 AM Graham Perrin <grahamperrin@gmail.com>
>> wrote:
>> >>
>> >> Follow-up to <
>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287719#c6>;
>> >>
>> >> Good news.
>> >>
>> >> 2048 MB is sufficient with root-on-ZFS for an ordinary installation
>> >> (more than base, less than all of FreeBSD-base) of 15.0-ALPHA4
>> >> plus these five non-base packages, some of which are meta:
>> >>
>> >>      kde plasma6-sddm-kcm sddm virtualbox-guest-additions xorg
>> >>
>> >> Beyond initial installations: with 4 G swap enabled, I repeatedly
>> >> tested forced reinstallation of all packages,
>> >>
>> >>      pkg upgrade -fUy
>> >>
>> >> 1077 packages, 1886 steps. Success.
>> >>
>> >> ----
>> >>
>> >> With swap disabled, which I would not recommend:
>> >>
>> >> - reinstallation failed, switch from ttyv1 to ttyv2 was
>> >>    impossible, and so on, so I attempted a shut down
>> >>    <https://i.imgur.com/RftLGMu.png>;
>> >>
>> >> - shut down failed
>> >>
>> >> - following a forced stop of the computer, SDDM and the
>> >>    desktop environment were unsable (pkg issue 2441,
>> >>    second incident this morning).
>> >
>> >
>> > It's big enough to install.. but i have lxte + terminal + firefox with
>> 4 tabs open and I routinely run out of memory and swap heavily. I have a
>> 4GB Chromebook.
>> Just a wild guess, but I suspect ZFS might be eating your memory.
>> You could try something like setting:
>> vfs.zfs.arc.max to half of your ram and see what happens?
>>
>> You probably don't want to do this, but it would be interesting to
>> see what happens if you use UFS.
>> (Personally, I'd never use ZFS for a root fs, but that's just me.)
>>
>> rick
>>
>> >
>> > So one can run in 128MB for light tasks and careful kernel tuning,
>> 512MB is a more realistic minimum since it lets you install and update. But
>> for X it's flipped: you need 2G to install but closer to 4G or 8G to run a
>> complete, but on the lean side, X11 system.
>> >
>> > Warner
>> >>
>> >>
>>
>>
>
> --
> brandon s allbery kf8nh
> allbery.b@gmail.com
>

[-- Attachment #2 --]
<div dir="ltr"><div>Yea, I&#39;ve not seen that to be the case. ZFS isn&#39;t that big of a memory hog these days... There are times you do need to tune the arc, but they are the exception, not the rule.</div><div><br></div><div>Warner</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Sep 30, 2025 at 1:41 PM Brandon Allbery &lt;<a href="mailto:allbery.b@gmail.com">allbery.b@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">FWIW my understanding is that ZFS root is such a memory hog that anything under 16GB is disrecommended and 32GB preferable. (I have only one machine that fits that constraint, and FreeBSD doesn&#39;t quite work on it yet.)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 30, 2025 at 3:38 PM Rick Macklem &lt;<a href="mailto:rick.macklem@gmail.com" target="_blank">rick.macklem@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, Sep 28, 2025 at 7:59 AM Warner Losh &lt;<a href="mailto:imp@bsdimp.com" target="_blank">imp@bsdimp.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Sun, Sep 28, 2025, 4:47 AM Graham Perrin &lt;<a href="mailto:grahamperrin@gmail.com" target="_blank">grahamperrin@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Follow-up to &lt;<a href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287719#c6" rel="noreferrer" target="_blank">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287719#c6</a>&gt;<br>;
&gt;&gt;<br>
&gt;&gt; Good news.<br>
&gt;&gt;<br>
&gt;&gt; 2048 MB is sufficient with root-on-ZFS for an ordinary installation<br>
&gt;&gt; (more than base, less than all of FreeBSD-base) of 15.0-ALPHA4<br>
&gt;&gt; plus these five non-base packages, some of which are meta:<br>
&gt;&gt;<br>
&gt;&gt;      kde plasma6-sddm-kcm sddm virtualbox-guest-additions xorg<br>
&gt;&gt;<br>
&gt;&gt; Beyond initial installations: with 4 G swap enabled, I repeatedly<br>
&gt;&gt; tested forced reinstallation of all packages,<br>
&gt;&gt;<br>
&gt;&gt;      pkg upgrade -fUy<br>
&gt;&gt;<br>
&gt;&gt; 1077 packages, 1886 steps. Success.<br>
&gt;&gt;<br>
&gt;&gt; ----<br>
&gt;&gt;<br>
&gt;&gt; With swap disabled, which I would not recommend:<br>
&gt;&gt;<br>
&gt;&gt; - reinstallation failed, switch from ttyv1 to ttyv2 was<br>
&gt;&gt;    impossible, and so on, so I attempted a shut down<br>
&gt;&gt;    &lt;<a href="https://i.imgur.com/RftLGMu.png" rel="noreferrer" target="_blank">https://i.imgur.com/RftLGMu.png</a>&gt;<br>;
&gt;&gt;<br>
&gt;&gt; - shut down failed<br>
&gt;&gt;<br>
&gt;&gt; - following a forced stop of the computer, SDDM and the<br>
&gt;&gt;    desktop environment were unsable (pkg issue 2441,<br>
&gt;&gt;    second incident this morning).<br>
&gt;<br>
&gt;<br>
&gt; It&#39;s big enough to install.. but i have lxte + terminal + firefox with 4 tabs open and I routinely run out of memory and swap heavily. I have a 4GB Chromebook.<br>
Just a wild guess, but I suspect ZFS might be eating your memory.<br>
You could try something like setting:<br>
vfs.zfs.arc.max to half of your ram and see what happens?<br>
<br>
You probably don&#39;t want to do this, but it would be interesting to<br>
see what happens if you use UFS.<br>
(Personally, I&#39;d never use ZFS for a root fs, but that&#39;s just me.)<br>
<br>
rick<br>
<br>
&gt;<br>
&gt; So one can run in 128MB for light tasks and careful kernel tuning, 512MB is a more realistic minimum since it lets you install and update. But for X it&#39;s flipped: you need 2G to install but closer to 4G or 8G to run a complete, but on the lean side, X11 system.<br>
&gt;<br>
&gt; Warner<br>
&gt;&gt;<br>
&gt;&gt;<br>
<br>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>brandon s allbery kf8nh</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a></div></div></div></div></div>
</blockquote></div></div>
home | help

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