From owner-svn-src-all@freebsd.org Mon Mar 25 19:17:39 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 32823154A66D; Mon, 25 Mar 2019 19:17:39 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2A49B83BCF; Mon, 25 Mar 2019 19:17:36 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id 8V6BhNYAmo7SQ8V6ChUk0R; Mon, 25 Mar 2019 13:17:34 -0600 X-Authority-Analysis: v=2.3 cv=Go88BX9C c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=NTGMnVQrEZIA:10 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=vFUrlwovrnZz3P6XXX4A:9 a=CjuIK1q_8ugA:10 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy8 [10.2.2.6]) by spqr.komquats.com (Postfix) with ESMTPS id 09F3D8DA; Mon, 25 Mar 2019 12:17:30 -0700 (PDT) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id x2PJHT0K068318; Mon, 25 Mar 2019 12:17:29 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id x2PJHTnc068310; Mon, 25 Mar 2019 12:17:29 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201903251917.x2PJHTnc068310@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Ian Lepore cc: Cy Schubert , Allan Jude , 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 In-Reply-To: Message from Ian Lepore of "Mon, 25 Mar 2019 08:12:58 -0600." <3398a21318a4a6715609004d569d20de86f1dc7a.camel@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 25 Mar 2019 12:17:29 -0700 X-CMAE-Envelope: MS4wfEAlYWf+lRA3tDfMeVhVtiq2/BAQxSiD51gqSPM5FexHA0BClhuM0QzWfLCZ2Vv1bLYeguElf2BlNjLBnLeXSYPCx3mClytwT1s7T9DGFhrjhm1OAAtF HCTm2WKJQlmyNUdc5e2U4RBn9RCH5Wnt/ajRAEAVc4j5EvLtkBmoFjxrIUcaI15NWbjT4y3Ek10JvxxD08SWy9WAdGEYc12PdYfTQoPRelYLi26jR6/NkWlX Ug+/ZPH+2btMxd0QtZgF+qJd0ENMnMFMvdXI4DkM7jM/NwkXS71rRVGUACOkpWRlgHfKYQsONQKUBa82styICA== X-Rspamd-Queue-Id: 2A49B83BCF X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-4.84 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; RCPT_COUNT_FIVE(0.00)[6]; REPLYTO_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[spqr.komquats.com]; NEURAL_HAM_SHORT(-0.91)[-0.906,0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[138.136.59.64.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-2.23)[ip: (-5.78), ipnet: 64.59.128.0/20(-2.98), asn: 6327(-2.29), country: CA(-0.09)]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.zen.spamhaus.org : 127.0.0.11] 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: Mon, 25 Mar 2019 19:17:39 -0000 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 > > 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 > > > > > > TMPFS_PAGES_MINRESERVED controls how much memory is reserved for > > > the system > > > and not used by tmpfs. > > > > > > 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. > > > > > > 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 use > 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 need > to remain as a compile-time option too. Yes, I should have been more clear. I can see using a tuneable on a 2 GB or 4 GB Intel pandaboard. (Perfect for a firewall or a UPS management station.) -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.