From owner-svn-src-all@freebsd.org Thu Mar 28 21:52:31 2019 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1CA8E156AD0A; Thu, 28 Mar 2019 21:52:31 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9FBE88DF53; Thu, 28 Mar 2019 21:52:29 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [10.1.1.2] (Seawolf.HML3.ScaleEngine.net [209.51.186.28]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id B90EE1B75D; Thu, 28 Mar 2019 21:52:22 +0000 (UTC) Subject: Re: svn commit: r345491 - in head/sys: conf fs/tmpfs modules/tmpfs To: Cy Schubert , Ian Lepore Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201903251917.x2PJHTnc068310@slippy.cwsent.com> From: Allan Jude Openpgp: preference=signencrypt Autocrypt: addr=allanjude@freebsd.org; prefer-encrypt=mutual; keydata= mQINBFVwZcYBEADwrZDH0xe0ZVjc9ORCc6PcBLwS/RTXA6NkvpD6ea02pZ8lPOVgteuuugFc D34LdDbiWr+479vfrKBh+Y38GL0oZ0/13j10tIlDMHSa5BU0y6ACtnhupFvVlQ57+XaJAb/q 7qkfSiuxVwQ3FY3PL3cl1RrIP5eGHLA9hu4eVbu+FOX/q/XVKz49HaeIaxzo2Q54572VzIo6 C28McX9m65UL5fXMUGJDDLCItLmehZlHsQQ+uBxvODLFpVV2lUgDR/0rDa0B9zHZX8jY8qQ7 ZdCSy7CwClXI054CkXZCaBzgxYh/CotdI8ezmaw7NLs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M1gE5Hscx3saxGKlayaOsdPKeGTVJCDEtHDuOc7/+jGh5Zxpk/Hpi+DUt1ot 8e6hPYLIQa4uVx4f1xxxV858PQ7QysSLr9pTV7FAQ18JclCaMc7JWIa3homZQL/MNKOfST0S 2e+msuRwQo7AnnfFKBUtb02KwpA4GhWryhkjUh/kbVc1wmGxaU3DgXYQ5GV5+Zf4kk/wqr/7 KG0dkTz6NLCVLyDlmAzuFhf66DJ3zzz4yIo3pbDYi3HB/BwJXVSKB3Ko0oUo+6/qMrOIS02L s++QE/z7K12CCcs7WwOjfCYHK7VtE0Sr/PfybBdTbuDncOuAyAIeIKxdI2nmQHzl035hhvQX s4CSghsP319jAOQiIolCeSbTMD4QWMK8RL/Pe1FI1jC3Nw9s+jq8Dudtbcj2UwAP/STUEbJ9 5rznzuuhPjE0e++EU/RpWmcaIMK/z1zZDMN+ce2v1qzgV936ZhJ3iaVzyqbEE81gDxg3P+IM kiYh4ZtPB4Q= Message-ID: <730eb214-5e6d-a16c-9f9d-a7ca90b5ca77@freebsd.org> Date: Thu, 28 Mar 2019 17:52:17 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: <201903251917.x2PJHTnc068310@slippy.cwsent.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Eq7AemuNwer8zsg8kRxRNlu7YrwmxReJX" X-Rspamd-Queue-Id: 9FBE88DF53 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.93 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; NEURAL_HAM_SHORT(-0.94)[-0.936,0]; ASN(0.00)[asn:6939, ipnet:209.51.160.0/19, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Mar 2019 21:52:31 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Eq7AemuNwer8zsg8kRxRNlu7YrwmxReJX Content-Type: multipart/mixed; boundary="BSy5TzBEnR5Vqw0Wdb85v5Xw7TyqeQu40"; protected-headers="v1" From: Allan Jude To: Cy Schubert , Ian Lepore 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 >>>> 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--