Page MenuHomeFreeBSD

Increase the default mlock limit from 64k to 256k
ClosedPublic

Authored by asomers on Aug 12 2026, 11:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 7, 4:19 PM
Unknown Object (File)
Tue, Oct 6, 11:11 PM
Unknown Object (File)
Mon, Oct 5, 1:06 PM
Unknown Object (File)
Sat, Oct 3, 10:38 AM
Unknown Object (File)
Fri, Oct 2, 9:27 PM
Unknown Object (File)
Thu, Oct 1, 11:41 AM
Unknown Object (File)
Sun, Sep 20, 1:34 AM
Unknown Object (File)
Thu, Sep 17, 8:56 AM

Details

Summary

The current default has been unchanged for 14 years. Increase it to
keep pace with modern hardware and software. security/pinentry-gnome,
in particular, can sometimes need 112 kB.

PR: 297452
MFC after: 2 weeks
Sponsored by: ConnectWise

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

cy added reviewers: imp, jhb, emaste, markj.

I see no problem with this. What do others think?

This revision is now accepted and ready to land.Aug 13 2026, 3:20 PM

I think Linux in-kernel default is 8MB, not sure if they have a separate lower limit equivalent to this. But I think increasing it a bit is fine if there are common-enough ports that want more than the current small 64K.