Index | Thread | Search

From:
Vitaliy Makkoveev <mvs@openbsd.org>
Subject:
Re: wired pages vs sysctl(2)
To:
tech@openbsd.org, kettenis@openbsd.org
Date:
Tue, 4 Mar 2025 16:58:14 +0300

Download raw body.

Thread
On Tue, Mar 04, 2025 at 02:45:42PM +0100, Martin Pieuchot wrote:

> As long as we need vslock(9), which is something that I don't know, might
> want to distinguish between userland vs kernel wiring like FreeBSD do.
> 

We need vslock() userland pages to avoid context switch provides by
copyin()/copyout(). In some cases, like kernel locked lists walkthrougs
or netlocked sections this context switch is totally unwanted.

I'm slightly moving sysctl(2) paths out of vslock(), so if you are
interesting I could share stalled vfs_sysctl() diff with you.