Re: [TECH TOPIC] Implementing malloc

Mark Brown <[email protected]> Mon, 29 Jun 2026 19:29:21 +0100
Newsgroups dev.linux.lists.ksummit
Message-ID <[email protected]>
On Mon, Jun 29, 2026 at 07:19:20PM +0100, Matthew Wilcox wrote:

> But we do have code which just needs to allocate "some memory", doesn't
> have any particularly weird restrictions, and where usability is more
> important than "pedal to the metal".  An example might be something
> like zlib.  It needs to allocate some temporary memory, and why have to

Or drivers just allocating some driver data.  TBH kzalloc() kind of ends
up being that function a lot of the time, I'm not convinced that a high
proportion of the kzalloc(x, GFP_KERNEL) calls out there are the result
of a deep consideration of which allocator to use.
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmpCuYAACgkQJNaLcl1U
h9BwUQf/emAxLyV+SalOJRGdOMPQbBjE3orpLTofTmVqdhjBBW3ExSxbSG1MFuf8
d9PhkWEum7JWPVV4b5s6YWe1+MUfFu1lHsW8l+Pchz/Ffso6PEQitHibJ6P5SM4d
QPC20jwQVDVJphcnB2bdhS5S8DlV3Rz7aiN18/BHV9WJ+DRpUeIbIDryl3Rx9Fnj
u1vEwj7tgj/v4qhkAlnoZHoNtJJDma3aSlM3c6K3jQ/KZQWG2jN6B77FjDfmgXH0
2qC0SF30FH7DJ6MuFgtmP/SaV3VAFNy9sbqv/6hj0slhFMa7mxKSpx9JLO/pyjrZ
/4QGmLT1ro/wfRbDx4QXsertS3nAFg==
=oU25
-----END PGP SIGNATURE-----