Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Oct 2020 10:51:43 -0400
From:      Mark Johnston <markj@freebsd.org>
To:        Mateusz Guzik <mjguzik@gmail.com>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r367165 - head/sys/fs/tmpfs
Message-ID:  <20201030145143.GB60293@raichu>
In-Reply-To: <CAGudoHGBMFoeOKwZWq2%2B1xC9924Xi2AEt4a1zYgwa_EA3HzAkA@mail.gmail.com>
References:  <202010301407.09UE7Phw060731@repo.freebsd.org> <CAGudoHGBMFoeOKwZWq2%2B1xC9924Xi2AEt4a1zYgwa_EA3HzAkA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 30, 2020 at 03:08:32PM +0100, Mateusz Guzik wrote:
> On 10/30/20, Mateusz Guzik <mjg@freebsd.org> wrote:
> > Author: mjg
> > Date: Fri Oct 30 14:07:25 2020
> > New Revision: 367165
> > URL: https://svnweb.freebsd.org/changeset/base/367165
> >
> > Log:
> >   tmpfs: change tmpfs dirent zone into a malloc type
> >
> >   It is 64 bytes.
> >
> 
> Right now malloc has only power-of-2 zones but I'm looking into
> changing that. The allocator itself trivially extends to multiply of
> 16, but stat collection needs reworking.

Sums of consecutive powers of 2 also works well.  That is, 16, 16 + 8,
32, 32 + 16, ...

When I last looked I didn't see very many places that would benefit, at
least outside of ZFS.  Probably the main one is CAM CCBs, and that'll be
helped by https://reviews.freebsd.org/D26844 .



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20201030145143.GB60293>