-
-
Notifications
You must be signed in to change notification settings - Fork 917
Add max file descriptors per process #2215
Copy link
Copy link
Closed
Labels
PR welcomeNot maintainer's priority to do but will accept contributions!Not maintainer's priority to do but will accept contributions!hacktoberfestIssues we're happy for new #Hacktoberfest2020 participants to doIssues we're happy for new #Hacktoberfest2020 participants to donew featureSomething OSHI doesn't do now but could doSomething OSHI doesn't do now but could doup for grabsIssues the maintainers want community help withIssues the maintainers want community help with
Metadata
Metadata
Assignees
Labels
PR welcomeNot maintainer's priority to do but will accept contributions!Not maintainer's priority to do but will accept contributions!hacktoberfestIssues we're happy for new #Hacktoberfest2020 participants to doIssues we're happy for new #Hacktoberfest2020 participants to donew featureSomething OSHI doesn't do now but could doSomething OSHI doesn't do now but could doup for grabsIssues the maintainers want community help withIssues the maintainers want community help with
Type
Fields
Give feedbackNo fields configured for issues without a type.
See commentary here.
OSHI currently returns the systemwide limit in
getMaxFileDescriptors(). On some OS's there is a per-process limit, for which we could add agetMaxFileDescriptorsPerProcess()./proc/sys/fs/nr-openor/proc/self/limits.kern.maxfilesperproc_getmaxstdioor hardcode 16 * 1024 * 1024 = 16,777,216.getdtablesize()orgetrlimit()withRLIMIT_NOFILE.getrlimit()or these options/etc/security/limits, if it's not there assume unlimited