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

How to set cpu/memory limit at fig ? #244

Closed
lcheng61 opened this issue Jun 6, 2014 · 2 comments
Closed

How to set cpu/memory limit at fig ? #244

lcheng61 opened this issue Jun 6, 2014 · 2 comments

Comments

@lcheng61
Copy link

lcheng61 commented Jun 6, 2014

How can I specify the memory/cpu limit to the container at fig.yml file ? I think maybe I missed a manual doc. Can someone point to me the complete syntax of fig.yml file ?

@lcheng61
Copy link
Author

lcheng61 commented Jun 7, 2014

mem_limit seems to be for "memory" limit. Does "cpu_shares" missing ?

@dnephin
Copy link

dnephin commented Sep 1, 2015

These were added a while ago http://docs.docker.com/compose/yml/

@dnephin dnephin closed this as completed Sep 1, 2015
xulike666 pushed a commit to xulike666/compose that referenced this issue Jan 19, 2017
This is the first in a series of micro benchmarks for containerd.
Performance measurement will use containerd objects and methods
that are not dependent on the grpc API and dont require the daemon
to the running. Test will require containerd-shim and runc.

The motivation is to understand the baseline performance at the lowest
containerd layer. A natural extension to this effort would be to write
macro benchmarks which would include API and daemon.

Note:
- Currently measures only one workload (busybox sh) start times. Will
add other bundles and args soon.
- Can use integration-test utils for bundle processing. However, json
marshal/unmarshal is currently timing out standard benchmark times. So
going with default spec for now.

Sample run:
BenchmarkBusyboxSh-4    / # / # / #        2     576013841 ns/op
ok      github.com/docker/containerd/runtime    1.800s

Signed-off-by: Anusha Ragunathan <anusha@docker.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants