Subject: Re: free space (was /dev) on tmpfs problem
To: matthew green <>
From: Bill Studenmund <>
List: tech-kern
Date: 11/14/2005 15:05:10
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Nov 15, 2005 at 09:42:16AM +1100, matthew green wrote:
>   =20
>    >> So there are two problems:
>    >>  1. tmpfs is not reporting free space sanely for df
>    >>  2. tmpfs is apparently not allowing itself to compete with file =
>    >> cache
>    >>     for free-memory resources.
>    >
>    > yes, and my suggestted patch (mandate -s) solves both of them.
>   =20
>    I totally support yamt's patch ... mandating -s is a reasonable =20
>    solution.
> how does one have a default /tmp tmpfs for a fresh install?
> i talked to some folks familiar with linux tmpfs.  unless a
> size is specified, it uses half of ram.  i guess in this case
> it's like passing -s but is dynamically calculated.

I like this idea.

An alternative would be for the -s option to have units, and have some=20
form of unit that represents percent of ram. '%' is problematic as scripts=
will parse it, but if we could add a "50%" or "40%" or whatever % default=
for sysinst, that would aleviate the default install concern.

Take care,


Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.3 (NetBSD)