Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raise file descriptor limit to 1024 by default #2884

Merged
merged 1 commit into from
Jun 21, 2016

Conversation

whyrusleeping
Copy link
Member

This changes the behaviour of the ipfs daemon to raise the file descriptor ulimit to 1024 if it is below 1024 when the daemon starts.

On linux, this will have no effect.
On OSX, this will raise the file descriptor limit every time the daemon is started (as the default there is 256).

License: MIT
Signed-off-by: Jeromy [email protected]

@whyrusleeping whyrusleeping added this to the Ipfs 0.4.3 milestone Jun 21, 2016
@Kubuxu
Copy link
Member

Kubuxu commented Jun 21, 2016

LGTM

@@ -9,7 +9,7 @@ import (
"syscall"
)

var ipfsFileDescNum = uint64(2048)
var ipfsFileDescNum = uint64(1024)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is 1024 truly enough? why not 2048?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants