<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>Hi,</div><div>I can get cpu_util use:</div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">[root@controller ~(keystone_admin)]# ceilometer  sample-list -q resource=48afa90d-20e9-4096-8c5d-6543e49a03f7 -m cpu_util<br>+--------------------------------------+----------+-------+-----------------+------+----------------------------+<br>| Resource ID                          | Name     | Type  | Volume          | Unit | Timestamp                  |<br>+--------------------------------------+----------+-------+-----------------+------+----------------------------+<br>| 48afa90d-20e9-4096-8c5d-6543e49a03f7 | cpu_util | gauge | 0.128334366425  | %    | 2016-07-27T06:46:53.043000 |<br>| 48afa90d-20e9-4096-8c5d-6543e49a03f7 | cpu_util | gauge | 0.124997847537  | %    | 2016-07-27T06:36:53.048000 |<br>| 48afa90d-20e9-4096-8c5d-6543e49a03f7 | cpu_util | gauge | 0.140021875851  | %    | 2016-07-27T06:26:53.038000 |<br></span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><br></span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">I can also get memory.usage use </span></div>
<div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">[root@controller ~(keystone_admin)]# ceilometer  sample-list -q resource=48afa90d-20e9-4096-8c5d-6543e49a03f7 -m memory.usage<br>+--------------------------------------+--------------+-------+--------+------+----------------------------+<br>| Resource ID                          | Name         | Type  | Volume | Unit | Timestamp                  |<br>+--------------------------------------+--------------+-------+--------+------+----------------------------+<br>| 48afa90d-20e9-4096-8c5d-6543e49a03f7 | memory.usage | gauge | 206.0  | MB   | 2016-07-27T06:46:53.072000 |<br>| 48afa90d-20e9-4096-8c5d-6543e49a03f7 | memory.usage | gauge | 206.0  | MB   | 2016-07-27T06:36:53.076000 |<br></span></div><div><br></div>Is it possible to get memory_util like the cpu_util? <div><br></div><div>I think memory_util would caculated as: usage/total.</div><div><br></div><div>I also have one question. When I boot a vm with 2G,and use virsh dommenstat, I get the following:<br><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">virsh #  dommemstat  36 <br>actual 2097152<br>swap_in 0<br>swap_out 0<br>major_fault 458<br>minor_fault 764818<br>unused 1673108<br>available <span style="background-color: rgb(255, 255, 255);">1884124</span><br>rss 2260280</span></div><div><div><br></div><div>and log in the vm using free:</div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">[root@c7-az-nova ~]# free <br>              total        used        free      shared  buff/cache   available<br>Mem:        1884124       67112     1673108       16656      143904     1670240<br>Swap:             0           0           0</span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><br></span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">How the number 1884124  calulated? I would expect it to be 2097152.</span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><br></span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">Thanks in advance.<br></span><div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>openstack_eagle@163.com</div></div></span></div>
</div></div></div></body></html>