On Fri, Oct 30, 2020 at 03:08:32PM +0100, Mateusz Guzik wrote:
> On 10/30/20, Mateusz Guzik <m...@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 .
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to