Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2019 14:06:02 -0000
From:      Allan Jude <allanjude@freebsd.org>
To:        Cy Schubert <Cy.Schubert@cschubert.com>, Ian Lepore <ian@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r345491 - in head/sys: conf fs/tmpfs modules/tmpfs
Message-ID:  <730eb214-5e6d-a16c-9f9d-a7ca90b5ca77@freebsd.org>
In-Reply-To: <201903251917.x2PJHTnc068310@slippy.cwsent.com>
References:  <201903251917.x2PJHTnc068310@slippy.cwsent.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--Eq7AemuNwer8zsg8kRxRNlu7YrwmxReJX
Content-Type: multipart/mixed; boundary="BSy5TzBEnR5Vqw0Wdb85v5Xw7TyqeQu40";
 protected-headers="v1"
From: Allan Jude <allanjude@freebsd.org>
To: Cy Schubert <Cy.Schubert@cschubert.com>, Ian Lepore <ian@freebsd.org>
Cc: src-committers@freebsd.org, svn-src-all@freebsd.org,
 svn-src-head@freebsd.org
Message-ID: <730eb214-5e6d-a16c-9f9d-a7ca90b5ca77@freebsd.org>
Subject: Re: svn commit: r345491 - in head/sys: conf fs/tmpfs modules/tmpfs
References: <201903251917.x2PJHTnc068310@slippy.cwsent.com>
In-Reply-To: <201903251917.x2PJHTnc068310@slippy.cwsent.com>

--BSy5TzBEnR5Vqw0Wdb85v5Xw7TyqeQu40
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 2019-03-25 15:17, Cy Schubert wrote:
> In message <3398a21318a4a6715609004d569d20de86f1dc7a.camel@freebsd.org>=

> , Ian Le
> pore writes:
>> On Mon, 2019-03-25 at 05:42 -0700, Cy Schubert wrote:
>>> In message <201903250746.x2P7kKUu019786@repo.freebsd.org>, Allan
>>> Jude=20
>>> writes:
>>>> Author: allanjude
>>>> Date: Mon Mar 25 07:46:20 2019
>>>> New Revision: 345491
>>>> URL: https://svnweb.freebsd.org/changeset/base/345491
>>>>
>>>> Log:
>>>>   Make TMPFS_PAGES_MINRESERVED a kernel option
>>>>  =20
>>>>   TMPFS_PAGES_MINRESERVED controls how much memory is reserved for
>>>> the system
>>>>   and not used by tmpfs.
>>>>  =20
>>>>   On very small memory systems, the default value may be too high
>>>> and this
>>>>   prevents these small memory systems from using reroot, which is
>>>> required
>>>>   for them to install firmware updates.
>>>>  =20
>>>>   Submitted by:	Hiroki Mori <yamori813@yahoo.co.jp>
>>>>   Reviewed by:	mizhka
>>>>   Differential Revision:	https://reviews.freebsd.org/D13583
>>>>
>>>> Modified:
>>>>   head/sys/conf/options
>>>>   head/sys/fs/tmpfs/tmpfs.h
>>>>   head/sys/fs/tmpfs/tmpfs_vfsops.c
>>>>   head/sys/modules/tmpfs/Makefile
>>>>
>>>
>>> Would this be a good candidate for a sysctl or tuneable?
>>>
>>
>> The small-memory embedded systems most affected by this often don't us=
e
>> loader(8) at all, so tunables aren't an option, and sysctl may be too
>> late.  No reason it can't be a tunable as well, but it'll probably nee=
d
>> to remain as a compile-time option too.
>=20
> Yes, I should have been more clear. I can see using a tuneable on a 2=20
> GB or 4 GB Intel pandaboard. (Perfect for a firewall or a UPS=20
> management station.)
>=20
>=20

The default value is 4MB. For any system with more than 32mb of memory,
it shouldn't require tuning, although you may wish to prevent tmpfs from
using all but 4mb of your memory.

I think the only case where you definitely need to override the default,
is when you have so little memory that you can't create a tmpfs image of
your root filesystem to reroot into, as is the case on many tiny router
boards, with 8-32mb of ram, and 4-16mb of flash.

--=20
Allan Jude


--BSy5TzBEnR5Vqw0Wdb85v5Xw7TyqeQu40--

--Eq7AemuNwer8zsg8kRxRNlu7YrwmxReJX
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQIcBAEBAgAGBQJcnUIWAAoJEBmVNT4SmAt+2x8QALxzOf2UlvsiUEmxMlzYLcmM
4ycHqze/pXT/AbuGu/xrKWoU5LUq4TJrEbVyl5o66RtZTieBTWU6h60zi1FLQcdd
4M9qG5o8blpqFBJWLgUy8fVYyCR9ECpahdc9mzHH+qCwcRtzoFnRDntBomnouXWK
pOUrYEIFAnqE5kfgNWkgcBWKM/+8VKTK9DPO7oXzJPrQ06RgL7EY7RYWV+PKZTke
gwzmeljlZjhbdyT4Fix0RS+BFjMxNwwnsrxb96tLy4ZrqWsT+5znk2ODqNHHid4V
NlvYoMWRFFkBPPxs1c7JxdKJYnEM4Fndzrbru1YQT4L7gLVkeAu3pYf74ha+KjCI
Ariz6oizrVBvIIk3T+ADUY+DgadOOVct/5zIhQbfKGl5bcH+TvLZ5Qab/2LuMCxz
+hcg5Vgy7+YzLrCq1+rrNuLcebyf7aNX9EghcCxOxW2obWURkWFSJfqJ09KQH/+l
e6j7KSchcmyW2C6sCxBUyW6UzkzhLXn5bs8YyusN601EyvXGgwvc/Wf2ZfkQ80vY
luFmJ8PbUQUK5FoKcv45StjH8Xh4fK4vZtnl2DXUIiURZPO1TwhgcD02fuReAkuA
ELfQXwogo4kDczZxpKzcNAxXrUDukisLA19CLm+1bg8L5+qy51KK/ebAkpDN8kDW
bB87+YnuiqEmwS8etKC/
=Ag0V
-----END PGP SIGNATURE-----

--Eq7AemuNwer8zsg8kRxRNlu7YrwmxReJX--





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?730eb214-5e6d-a16c-9f9d-a7ca90b5ca77>