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

Setting --cpus in docker driver requires CONFIG_CFS_BANDWIDTH in kernel #9248

Closed
afbjorklund opened this issue Sep 14, 2020 · 0 comments · Fixed by #9255
Closed

Setting --cpus in docker driver requires CONFIG_CFS_BANDWIDTH in kernel #9248

afbjorklund opened this issue Sep 14, 2020 · 0 comments · Fixed by #9255
Labels
co/docker-driver Issues related to kubernetes in container kind/bug Categorizes issue or PR as related to a bug. os/linux priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@afbjorklund
Copy link
Collaborator

If you are running on a kernel without all the Completely Fair Scheduler (CFS) config enabled, using --cpus will fail:

NanoCPUs can not be set, as your kernel does not support CPU cfs period/quota or the cgroup is not mounted

We should look if this feature is supported, and just run minikube without the cpu throttling (without --cpus) if it is not.

/sys/fs/cgroup/cpu/cpu.cfs_period_us
/sys/fs/cgroup/cpu/cpu.cfs_quota_us

Similar to what we do for --memory-swap

@afbjorklund afbjorklund added kind/bug Categorizes issue or PR as related to a bug. os/linux priority/backlog Higher priority than priority/awaiting-more-evidence. co/docker-driver Issues related to kubernetes in container labels Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/docker-driver Issues related to kubernetes in container kind/bug Categorizes issue or PR as related to a bug. os/linux priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant