Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Nov 2022 12:56:10 +0100 (CET)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        mike@karels.net
Cc:        jmg@freebsd.org, freebsd-arm@freebsd.org
Subject:   Re: adding swap when expanding root filesystem
Message-ID:  <95847460.127804.1667908570062@localhost>
In-Reply-To: <202211071610.2A7GAcHl090048@mail.karels.net>
References:  <202211071610.2A7GAcHl090048@mail.karels.net>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_127803_560799664.1667908570055
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

 
Van: Mike Karels <mike@karels.net>
Datum: maandag, 7 november 2022 17:10
Aan: freebsd-arm@freebsd.org
CC: jmg@freebsd.org
Onderwerp: adding swap when expanding root filesystem
> 
> This question is not really arm-specific, but I couldn't think of a better
> mailing list for it.
> 
> There are peridic issues reported on small systems like Raspberry Pi
> where people are running buildworld or poudriere and running out of
> memory.  As the user gets no control over the disk layout when installing,
> there is no option to add swap space on the install image.  I have added
> swap space on a USB disk, but this is often not an option.  It occurred
> to me that it might be reasonable to add swap space before expanding
> the root filesystem if there is sufficient space.  I have a prototype,
> and wondered if this is a good thing to do.  Granted, this will often
> create swap on microSD, which is not optimal, but probably better than
> nothing.
> 
> The current prototype creates a swap partition which is 1/10 of the disk
> if the disk is at least 15 GB and the initial root partition is no more
> than 1/3 of the disk, but only up to 1.5x of physical memory.  I would
> probably enable this by default, but provide a way to disable it via a
> kenv variable and/or a variable in /etc/rc.conf.
> 
> Thoughts?
> 
>         Mike
>  


Hi,

Would you mind sharing your prototype?

Regards,
Ronald.

 
------=_Part_127803_560799664.1667908570055
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html><head></head><body>&nbsp;
<p><strong>Van:</strong> Mike Karels &lt;mike@karels.net&gt;<br>
<strong>Datum:</strong> maandag, 7 november 2022 17:10<br>
<strong>Aan:</strong> freebsd-arm@freebsd.org<br>
<strong>CC:</strong> jmg@freebsd.org<br>
<strong>Onderwerp:</strong> adding swap when expanding root filesystem</p>

<blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px">
<div class="MessageRFC822Viewer" id="P">
<div class="TextPlainViewer" id="P.P">This question is not really arm-specific, but I couldn't think of a better<br>
mailing list for it.<br>
<br>
There are peridic issues reported on small systems like Raspberry Pi<br>
where people are running buildworld or poudriere and running out of<br>
memory. &nbsp;As the user gets no control over the disk layout when installing,<br>
there is no option to add swap space on the install image. &nbsp;I have added<br>
swap space on a USB disk, but this is often not an option. &nbsp;It occurred<br>
to me that it might be reasonable to add swap space before expanding<br>
the root filesystem if there is sufficient space. &nbsp;I have a prototype,<br>
and wondered if this is a good thing to do. &nbsp;Granted, this will often<br>
create swap on microSD, which is not optimal, but probably better than<br>
nothing.<br>
<br>
The current prototype creates a swap partition which is 1/10 of the disk<br>
if the disk is at least 15 GB and the initial root partition is no more<br>
than 1/3 of the disk, but only up to 1.5x of physical memory. &nbsp;I would<br>
probably enable this by default, but provide a way to disable it via a<br>
kenv variable and/or a variable in /etc/rc.conf.<br>
<br>
Thoughts?<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mike<br>
&nbsp;</div>
</div>
</blockquote>
<br>
<br>
Hi,<br>
<br>
Would you mind sharing your prototype?<br>
<br>
Regards,<br>
Ronald.<br>
<br>
&nbsp;</body></html>
------=_Part_127803_560799664.1667908570055--



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