You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inside the container created in step 1, run "top"command
Describe the results you received:
top - 18:03:52 up 17:37, 0 users, load average: 0.35, 0.25, 0.25
Tasks: 2 total, 1 running, 1 sleeping, 0 stopped, 0 zombie
%Cpu(s): 10.6 us, 5.6 sy, 0.0 ni, 83.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 2040836 total, 1905172 used, 135664 free, 126276 buffers
KiB Swap: 522236 total, 24 used, 522212 free. 1195708 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 20 0 18180 3272 2784 S 0.0 0.2 0:00.21 bash
15 root 20 0 19880 2400 2044 R 0.0 0.1 0:00.80 top
Describe the results you expected:
Compare %Cpu(s) in the 3rd line of output of "top"command and the total %CPU of each process inside the container. %Cpu(s) should be total %CPU used by each process (which is 0 in this case).
Additional information you deem important (e.g. issue happens only occasionally):
What is the %Cpu(s) count and how is it different from total %CPU used by each process inside the container?
The text was updated successfully, but these errors were encountered:
Well, as I know container provides file system isolation as well. I could see /proc/stat inside container also. So, wondering how the namespaces are implemented in /proc file system. Any link in understanding it will be very helpful.
Output of
docker version
:Output of
docker info
:Steps to reproduce the issue:
1.
Describe the results you received:
Describe the results you expected:
Compare %Cpu(s) in the 3rd line of output of "top"command and the total %CPU of each process inside the container. %Cpu(s) should be total %CPU used by each process (which is 0 in this case).
Additional information you deem important (e.g. issue happens only occasionally):
What is the %Cpu(s) count and how is it different from total %CPU used by each process inside the container?
The text was updated successfully, but these errors were encountered: