Stats report diferencies.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zun |
Fix Released
|
Undecided
|
Durga Malleswari Varanasi |
Bug Description
There is a difference between "openstack appcontainer stats <id>" and "docker stats <id>" in memory value. In all host that I tried I can see that zun reports more memory usaje than docker.
openstack appcontainer stats f4574038-
+------
| Field | Value |
+------
| CONTAINER | truecommand01 |
| CPU % | 0.0146632331839
| MEM USAGE(MiB) | 250.3046875 |
| MEM LIMIT(MiB) | 512.0 |
| MEM % | 48.88763427734375 |
| BLOCK I/O(B) | 125993472/8680960 |
| NET I/O(B) | 844127705/27613922 |
+------
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
6c077faea1f0 zun-f4574038-
In this case, it is noted zun reports 250MiB (~48%) and docker 130.5MiB (~25%)
Changed in zun: | |
assignee: | nobody → Durga Malleswari Varanasi (durga1) |
Changed in zun: | |
status: | New → In Progress |
Changed in zun: | |
status: | In Progress → Fix Committed |
Hi Tomas,
I have gone through the bug and able to reproduce the same. b216-4615- 8da3-b5a5750b25 a0 0.07% 1.188MiB / 15.63GiB 0.01% 299MB / 270MB 1.25MB / 65.5kB 4 ------- ---+--- ------- ------- -----+ ------- ---+--- ------- ------- -----+ 15485 | 32668 | ------- ---+--- ------- ------- -----+
Just to add the fact that the difference in the stats is less when compared to that of your output.
Please find the output as below:
openstack@zed:~$ docker stats 01547ac35f1f
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
01547ac35f1f zun-5af4d461-
^C
openstack@zed:~$ openstack appcontainer stats container
+------
| Field | Value |
+------
| CONTAINER | container |
| CPU % | 0.0093086328929
| MEM USAGE(MiB) | 1.37890625 |
| MEM LIMIT(MiB) | 16000.5234375 |
| MEM % | 0.0086178821298
| BLOCK I/O(B) | 0/0 |
| NET I/O(B) | 298766635/269694133 |
+------
could you mention the version of OpenStack and Zun you are using?
Regards,
Malleswari