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

docker update could not set cpu-rt-runtime #39278

Open
enzoyes opened this issue May 29, 2019 · 1 comment
Open

docker update could not set cpu-rt-runtime #39278

enzoyes opened this issue May 29, 2019 · 1 comment

Comments

@enzoyes
Copy link

enzoyes commented May 29, 2019

This is a bug report
This is a feature request
I searched existing issues before opening this one
Expected behavior
docker update could reset cpu-rt-runtime to zero, because cgourp support this feature.

i don't think #558 solves the problem.

Actual behavior
zero is ignored.

Steps to reproduce the behavior
Output of docker version:

docker version
Client:
Version: 18.09.2
API version: 1.39
Go version: go1.10.6
Git commit: 6247962
Built: Sun Feb 10 04:13:50 2019
OS/Arch: linux/amd64
Experimental: false

Server: Docker Engine - Community
Engine:
Version: 18.09.2
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 6247962
Built: Sun Feb 10 03:42:13 2019
OS/Arch: linux/amd64
Experimental: false

hosts@XXX:/root docker create rtos-dockerhub.inhuawei.com/lcrd_v2r7_x86_ngip_comp_next /bin/bash
1d8e2b1b8a15dbb9216a061077b8abaa660238f9e19fc2381ed8543b4292e194
hosts@XXX:/root docker update --cpu-rt-runtime 1000 1d8e2b1b8a15dbb9216a061077b8abaa660238f9e19fc2381ed8543b4292e194
1d8e2b1b8a15dbb9216a061077b8abaa660238f9e19fc2381ed8543b4292e194
hosts@XXX:/root docker inspect 1d8e2b1b8a15dbb9216a061077b8abaa660238f9e19fc2381ed8543b4292e194 | grep -i cpu
"CpuShares": 0,
"NanoCpus": 0,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 1000,
"CpusetCpus": "",
"CpusetMems": "",
"CpuCount": 0,
"CpuPercent": 0,
host@XXX:/root docker update --cpu-rt-runtime 0 1d8e2b1b8a15dbb9216a061077b8abaa660238f9e19fc2381ed8543b4292e194
1d8e2b1b8a15dbb9216a061077b8abaa660238f9e19fc2381ed8543b4292e194
host@XXX:/root docker inspect 1d8e2b1b8a15dbb9216a061077b8abaa660238f9e19fc2381ed8543b4292e194 | grep -i cpu
"CpuShares": 0,
"NanoCpus": 0,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 10000,
"CpuRealtimeRuntime": 1000,
"CpusetCpus": "",
"CpusetMems": "",
"CpuCount": 0,
"CpuPercent": 0,
Output of docker info:

docker info
Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 6
Server Version: 18.09.2
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 21
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9754871865f7fe2f4e74d43e2fc7ccd237edcbce
runc version: 09c8266bf2fcf9519a651b04ae54c967b9ab86ec
init version: fec3683
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.4.0-124-generic
Operating System: Ubuntu 16.04.4 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 7.78GiB
Name: hostvm-ubuntu16
ID: MZLR:EORX:INBW:ECY4:6HFF:UQRP:ID6I:7LYI:633U:HYTW:63X7:EOAN
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
rtos-dockerhub.inhuawei.com
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine

@olljanat
Copy link
Contributor

olljanat commented Jun 1, 2019

@ranchothu it is very hard to understand what you are actually asking and what all those outputs means.
Can you please look https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet how to get you message formatted to easily readable format? And also add some more explanation that what you are actually looking for?

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