Index | Thread | Search

From:
Mateusz Guzik <mjguzik@gmail.com>
Subject:
Re: Fewer pages used for mmap descriptors
To:
Mark Kettenis <mark.kettenis@xs4all.nl>
Cc:
mpi@grenadille.net, tech@openbsd.org
Date:
Sat, 27 Sep 2025 15:06:33 +0200

Download raw body.

Thread
On Sat, Sep 27, 2025 at 2:38 PM Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
>
> > Date: Sat, 27 Sep 2025 13:55:15 +0200
> > From: Mateusz Guzik <mjguzik@gmail.com>
> > I presume the saving is coming from not allocating the object for
> > directories.
>
> It is also not allocated for files that are never mmaped.
>
> > Since getnewvnode() is not told what the allocated vnode is going to be,
> > I expect the total count of uvmvnodes will be creeping up as vnodes get
> > recycled and have their type changed VDIR<->VREG.
>
> Not exactly, but yes, I expect that if you leave a machine up long
> enough, the number of uvmvnodes will creep up towards the vnodes.
>

Right, it's not automatically for all VREGs, but if it is going to be
there, it will be a VREG.

If nothing can be done about the lifetime, my suggestion stands as a
damage-controlling measure.