Page MenuHomeFreeBSD

Default Linux openfiles to 1024
ClosedPublic

Authored by trasz on Jun 7 2020, 4:32 PM.
Tags
None
Referenced Files
F137032310: D25177.id72939.diff
Fri, Nov 21, 12:43 AM
F137030690: D25177.id72796.diff
Fri, Nov 21, 12:40 AM
F137028217: D25177.id.diff
Fri, Nov 21, 12:34 AM
F137027140: D25177.diff
Fri, Nov 21, 12:31 AM
Unknown Object (File)
Wed, Nov 19, 1:13 PM
Unknown Object (File)
Tue, Nov 18, 3:51 AM
Unknown Object (File)
Thu, Nov 13, 8:28 PM
Unknown Object (File)
Thu, Nov 13, 3:46 PM

Details

Summary

Make linux(4) set openfiles soft resource limit to 1024 for Linux
applications, which often depend on this being the case. There's
a new sysctl, compat.linux.default_openfiles, to control this
behaviour.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

trasz requested review of this revision.Jun 7 2020, 4:32 PM
bcr added a subscriber: bcr.

OK from manpages, with the usual .Dd bump when the commit happens.

kevans added a subscriber: kevans.

I think I'm orders of magnitude more comfortable with this change; it does indeed seem quite reasonable to default Linux applications out with the limits they're likely expecting.

This revision is now accepted and ready to land.Jun 7 2020, 11:17 PM
emaste added a subscriber: emaste.
emaste added inline comments.
share/man/man4/linux.4
100 ↗(On Diff #72796)

I might s/it/the limit/.

sys/compat/linux/linux_mib.c
68 ↗(On Diff #72796)

Maybe add ", or -1 for unlimited" or similar to the description string?