Re: git: 636592343c3e - main - tmpfs: increase memory reserve to a percent of available memory + swap

From: Alexey Dokuchaev <danfe_at_freebsd.org>
Date: Mon, 22 Jan 2024 03:48:06 UTC
On Mon, Jan 22, 2024 at 03:27:57AM +0000, Jessica Clarke wrote:
> On 19 Dec 2023, at 15:34, Mike Karels <karels@FreeBSD.org> wrote:
> > commit 636592343c3ec0feb61a4d8043676381384420dd
> > 
> >    tmpfs: increase memory reserve to a percent of available memory + swap
> > 
> >    [...]
> > 
> >    Add sysctl for vfs.tmpfs.memory_percent and the pre-existing
> >    vfs.tmpfs.memory_reserved to tmpfs(5).
> > 
> >    PR:             275436
> >    MFC after:      1 month
> >    Reviewed by:    rgrimes
> >    Differential Revision:  https://reviews.freebsd.org/D43011
> 
> I just got:
> 
>   make[6]: Could not create temporary file /tmp/makeDl4i9S:
>   No space left on device
> 
> after doing a buildworld -j4 on a 4 core, 16 GiB system where /tmp is a
> tmpfs, with the prior buildworld having taken me past this commit,
> which I strongly suspect to be the cause. Whilst I understand the
> motivation behind your commits, this is a sad regression to have; it's
> not exactly a particularly strange situation.

FWIW, I've seen two people complain about this last week, apparently
this kernel OOM protection doesn't work very well. :-/

./danfe