[Openstack] Ceilometer memory use ratio

openstack_eagle at 163.com openstack_eagle at 163.com
Wed Jul 27 07:37:02 UTC 2016


Hi,
I can get cpu_util use:
[root at controller ~(keystone_admin)]# ceilometer  sample-list -q resource=48afa90d-20e9-4096-8c5d-6543e49a03f7 -m cpu_util
+--------------------------------------+----------+-------+-----------------+------+----------------------------+
| Resource ID                          | Name     | Type  | Volume          | Unit | Timestamp                  |
+--------------------------------------+----------+-------+-----------------+------+----------------------------+
| 48afa90d-20e9-4096-8c5d-6543e49a03f7 | cpu_util | gauge | 0.128334366425  | %    | 2016-07-27T06:46:53.043000 |
| 48afa90d-20e9-4096-8c5d-6543e49a03f7 | cpu_util | gauge | 0.124997847537  | %    | 2016-07-27T06:36:53.048000 |
| 48afa90d-20e9-4096-8c5d-6543e49a03f7 | cpu_util | gauge | 0.140021875851  | %    | 2016-07-27T06:26:53.038000 |

I can also get memory.usage use 
[root at controller ~(keystone_admin)]# ceilometer  sample-list -q resource=48afa90d-20e9-4096-8c5d-6543e49a03f7 -m memory.usage
+--------------------------------------+--------------+-------+--------+------+----------------------------+
| Resource ID                          | Name         | Type  | Volume | Unit | Timestamp                  |
+--------------------------------------+--------------+-------+--------+------+----------------------------+
| 48afa90d-20e9-4096-8c5d-6543e49a03f7 | memory.usage | gauge | 206.0  | MB   | 2016-07-27T06:46:53.072000 |
| 48afa90d-20e9-4096-8c5d-6543e49a03f7 | memory.usage | gauge | 206.0  | MB   | 2016-07-27T06:36:53.076000 |

Is it possible to get memory_util like the cpu_util? 

I think memory_util would caculated as: usage/total.

I also have one question. When I boot a vm with 2G,and use virsh dommenstat, I get the following:
virsh #  dommemstat  36 
actual 2097152
swap_in 0
swap_out 0
major_fault 458
minor_fault 764818
unused 1673108
available 1884124
rss 2260280

and log in the vm using free:
[root at c7-az-nova ~]# free 
              total        used        free      shared  buff/cache   available
Mem:        1884124       67112     1673108       16656      143904     1670240
Swap:             0           0           0

How the number 1884124  calulated? I would expect it to be 2097152.

Thanks in advance.


openstack_eagle at 163.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160727/5dda8b4a/attachment.html>


More information about the Openstack mailing list