From nobody Tue Apr 23 13:29:10 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VP2zb5mjgz5HFGS for ; Tue, 23 Apr 2024 13:30:03 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from mailgate.Leidinger.net (bastille.leidinger.net [89.238.82.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "mailgate.leidinger.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VP2zZ6NCTz4k9d; Tue, 23 Apr 2024 13:30:02 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Authentication-Results: mx1.freebsd.org; none List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1713878996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=X7qzkttSS5x3nuPyvAUEN1Wtd3tndBBtL79mJZxeHFM=; b=EuJeybRisZFlPH0samj27I3UgSImt7z/cch2bRy3qcfnZt49A/YwCcJUIfcCQR33FN4JZ9 q7iwOSiDenl3MLjYUk9fCK8ytaDPoNYb+zCZUyoI3/QSbStXlHUiH/5JiEWt7Ww5GdYFIF 0BsDtiox+8Ine/pVdXl6Smscc8e13SKtcctcCIR4/BdCvYdBpc4sX9/xXKL2vbzAl8fuQj gBiMF5EQCuOGz8y7jDWq21ihFePUBJBc8PhNZnt9dg3za0qqwIUUexTYaONGmHXfnM8dZ9 V6W6L4fmzDtbzc/I4RYwrQdLr9bfXomsRAEUlTo3rkS87c0zw/vw1adPkCAtbQ== Date: Tue, 23 Apr 2024 15:29:10 +0200 From: Alexander Leidinger To: Alan Somers Cc: Karl Denninger , freebsd-hackers@freebsd.org Subject: Re: Stressing malloc(9) In-Reply-To: References: <2b72c4f749e93dfec08a164d5a664ee3@Leidinger.net> Message-ID: <5abe7eb5b80ab164b91c858bfd8121d7@Leidinger.net> Organization: No organization, this is a private message. Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=_ce155aa0aa94a110feb1fb8ce418aa06"; micalg=pgp-sha256 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:34240, ipnet:89.238.64.0/18, country:DE] X-Rspamd-Queue-Id: 4VP2zZ6NCTz4k9d 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 > 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--