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
F171590996: D58811.id.diff
Fri, Sep 11, 11:29 PM
Unknown Object (File)
Fri, Sep 11, 11:05 AM
Unknown Object (File)
Fri, Sep 11, 9:18 AM
Unknown Object (File)
Wed, Sep 9, 11:34 AM
Unknown Object (File)
Fri, Sep 4, 7:22 AM
Unknown Object (File)
Wed, Sep 2, 3:23 PM
Unknown Object (File)
Wed, Sep 2, 2:17 PM
Unknown Object (File)
Wed, Sep 2, 8:24 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.