Re: Stressing malloc(9)
- Reply: Warner Losh : "Re: Stressing malloc(9)"
- In reply to: Alan Somers : "Re: Stressing malloc(9)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 Apr 2024 13:29:10 UTC
Am 2024-04-23 14:47, schrieb Alan Somers:
> On Tue, Apr 23, 2024 at 2:37 AM Alexander Leidinger
> <Alexander@leidinger.net> wrote:
>> You basically say, that it is not uncommon to have such large
>> allocations with kernels we ship (even in releases).
>> Wouldn't it make sense to optimize the kernel to handle larger uma
>> allocations?
>>
>> Or do you expect it to be specific to ZFS and it may be more sane to
>> discuss with the OpenZFS developers to reduce this default setting?
>
> Yes, both of those things are true. It might make sense to reduce the
> setting's default value. OTOH, the current value is probably fine for
> people who don't use geli (and possibly other transforms that require
> allocating data). And it would also be good to optimize the kernel to
> perform these allocations more efficiently. My best idea is to teach
> g_eli_alloc_data how to allocate scatter/gather lists of 64k buffers
> instead of contiguous memory. The memory doesn't need to be
> contiguous, after all. But that's a bigger change, and I don't know
> that I have the time for it right now.
> -Alan
Do you have time do make a nice description of what would have to be
done in the wiki?
https://wiki.freebsd.org/IdeasPage
Bye,
Alexander.
--
http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF