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

Any body know what is NanoCPUS in inspect node response and how is that value calculated? Thanks #24713

Closed
cmingxu opened this issue Jul 16, 2016 · 3 comments

Comments

@cmingxu
Copy link

cmingxu commented Jul 16, 2016

No description provided.

@thaJeztah
Copy link
Member

/cc @aluzzardi @sfsmithcha

@yongtang
Copy link
Member

yongtang commented Jul 17, 2016

@cmingxu Based on the calculation:
https://github.com/docker/docker/blob/v1.12.0-rc4/daemon/cluster/executor/container/container.go#L328-L332

resources.CPUQuota = r.Limits.NanoCPUs * resources.CPUPeriod / 1e9

, NanoCPUs is defined as the CPU shares in units of 1/1e9 (or 10^-9) of the CPU.

In other words, NanoCPUs is the number of nano (1/1e9) CPUs by a process.

@lbguilherme
Copy link

This issue should be closed. This should be documented in https://docs.docker.com/engine/reference/commandline/service_create/#options (thus this issue is superseded by #30222)

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

No branches or pull requests

4 participants