Date: Tue, 23 Apr 2024 15:29:10 +0200 From: Alexander Leidinger <Alexander@Leidinger.net> To: Alan Somers <asomers@freebsd.org> Cc: Karl Denninger <karl@denninger.net>, freebsd-hackers@freebsd.org Subject: Re: Stressing malloc(9) Message-ID: <5abe7eb5b80ab164b91c858bfd8121d7@Leidinger.net> In-Reply-To: <CAOtMX2jnNvnZBe7UdktQggsEQO%2BfovA-g_=-fZtbhH=caSLksQ@mail.gmail.com> References: <CAOtMX2jeDHS15bGgzD89AOAd1SzS_=FikorkCdv9-eAxCZ2P5w@mail.gmail.com> <ZiPaFw0q17RGE7cS@nuc> <CAOtMX2jk6%2BSvqMP7Cbmdk0KQCFZ34yWuir7n_8ewZYJF2MwPSg@mail.gmail.com> <ZiU6IZ29syVsg61p@nuc> <CAOtMX2j=yaYeE%2B-fycg2mRRC_Jb9p74cn_dcenhH2xRRxz1shg@mail.gmail.com> <CAOtMX2hDfX-T90x9Fb2Wh%2BvgLvw9fUGmaDxh-FWaYwBTPwFY6Q@mail.gmail.com> <b1e56d20-dc98-4fff-adec-3f8cfae26c05@denninger.net> <CAOtMX2irXo_hvrhQhw0eLjCBiH7hZMTR9notBn9aDEMTynQiuQ@mail.gmail.com> <2b72c4f749e93dfec08a164d5a664ee3@Leidinger.net> <CAOtMX2jnNvnZBe7UdktQggsEQO%2BfovA-g_=-fZtbhH=caSLksQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --=_ce155aa0aa94a110feb1fb8ce418aa06 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8; format=flowed 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 --=_ce155aa0aa94a110feb1fb8ce418aa06 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc; size=833 Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmYnt7MACgkQEg2wmwP4 2Ibk7BAAgj+l/Q2jXVsJdzNRWFmF9jacdO1htchyUU3nNjbi1q56PMjNdpLpRztw IRy6ewJUeTBg61C1xAAToaPKnYWgJFdbGanTa5T3+PTGXhu9OatFZyY6enVCOAsE DM06RHQa+odUeuJGKmT4BBpGaAbYAtBuQVjAWi1zM0c7XxH/WkZ31l6NfcTXGzuA sLpBXpFe7T18zoPTpC8/UTsQjKNmxILd5gzVQDV6E5+M/53S7r5Rt0a8oJ0P8kSb FQzSDMPV/umzeumexvVC6n3XZ6rJPTU1J8W3YnF6d9lgeu3sx7UJmHnCkTqEGlkN MaCBy+98R1uH57F44OJ/nm5j3+OfV7/ubditUcE1XWQ9ZGwLjMasNGhbpFGx8an/ p7y/ZYHEBpgQkLJ3RtFuswDnlqfy8P1b9yDA7wKj1V/+fbaFxMO7x3/+5fgNgASK IRINGAzRuAr+UtPqw5pBN6oVuboRPkBzNd4fNICDVb5w+TzOp6sNeI+g8wInRn7r gvuvbrijxxrdsPBvODP4mQH++2uczF+TVQ9avVrKYpuKVTUQG7G7jhEQlv+Ra+Lg E2uMYG7phnd8mXOAOGF2hkViasf+5IIJICeArGeXKzdXWEesLJDnw8WfATWTW90a OfcrqN+JYBV4nKS5grloA+gybR5HvMNv0ReazTMBvKGmkmmWbrE= =0jZa -----END PGP SIGNATURE----- --=_ce155aa0aa94a110feb1fb8ce418aa06--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5abe7eb5b80ab164b91c858bfd8121d7>