Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: Unlock sysctl kern.maxclusters
To:
Vitaliy Makkoveev <mvs@openbsd.org>
Cc:
Mark Kettenis <mark.kettenis@xs4all.nl>, Alexander Bluhm <bluhm@openbsd.org>, tech@openbsd.org
Date:
Tue, 03 Jun 2025 08:15:10 -0600

Download raw body.

Thread
> Why do we need to move "nmbclust * MCLBYTES" to the hot path
> and use it instead of pre-calculated `mbuf_mem_limit'?

I do not think a multiplication is hot, compared to userland being able
to do a sysctl() operation and grab a mutex against the mbuf layer.