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

Increase ulimit -l #801

Closed
jakajancar opened this issue Oct 13, 2016 · 8 comments

Comments

@jakajancar
Copy link

commented Oct 13, 2016

Moby's /etc/init.d/docker currently sets

    # set ulimits as high as possible
    ulimit -n 1048576
    ulimit -p unlimited

Can you also please set ulimit -l higher? We need it for Varnish.

@justincormack

This comment has been minimized.

Copy link
Member

commented Oct 14, 2016

What sort of value do you need?

@justincormack

This comment has been minimized.

Copy link
Member

commented Oct 14, 2016

@justincormack

This comment has been minimized.

Copy link
Member

commented Oct 14, 2016

@jakajancar you can increase the limits to the recommended value with docker run --ulimit memlock=85983232:85983232 varnish but I will increase the default as it is pretty low.

@justincormack

This comment has been minimized.

Copy link
Member

commented Oct 14, 2016

The default will be increased in the next beta.

@jakajancar

This comment has been minimized.

Copy link
Author

commented Oct 14, 2016

@justincormack Can you explain how you got to 85983232?

@justincormack

This comment has been minimized.

Copy link
Member

commented Oct 14, 2016

82 Megabytes. The ulimit specification in the docker run command is in bytes, while for the shell it is in k it seems.

(82000k may in fact be sufficient)

@jakajancar

This comment has been minimized.

Copy link
Author

commented Oct 14, 2016

Ah, ok.

Although if varnish there has 82000 KB (not 82 MB), then that's 83968000 B, no? Not that it matters, probably.

@justincormack

This comment has been minimized.

Copy link
Member

commented Oct 14, 2016

No, it doesnt make much difference, as it is a maximum

@ijc ijc closed this Nov 18, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.