)]}'
{"ceilometer/compute/virt/libvirt/inspector.py":[{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"fdb20678c4c3c2e4954fb19b716612fc4351dfe5","unresolved":false,"context_lines":[{"line_number":220,"context_line":"                # Stat provided from libvirt is in KB, converting it to MB."},{"line_number":221,"context_line":"                memory_used \u003d memory_used / units.Ki"},{"line_number":222,"context_line":"                return virt_inspector.MemoryUsageStats(usage\u003dmemory_used)"},{"line_number":223,"context_line":"            elif (memory_stats and memory_stats.get(\u0027rss\u0027)):"},{"line_number":224,"context_line":"                memory_used \u003d memory_stats.get(\u0027rss\u0027) / units.Ki"},{"line_number":225,"context_line":"                LOG.debug("},{"line_number":226,"context_line":"                    \u0027Inspect memory usage (rss) of instance \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a71b18c_ccfbd777","line":223,"range":{"start_line":223,"start_character":53,"end_line":223,"end_character":56},"updated":"2016-12-06 08:24:20.000000000","message":"\"available\" is the total memory reported by the guest\n\"rss\" is the total memory reported by the host\n\nI\u0027m not sure we should use that as memory usage.","commit_id":"b1f50a998cd4e9c0881c83b0a82e2b2b7083626a"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"c0598f8aeb90d022aad7cd975de7780af0c83113","unresolved":false,"context_lines":[{"line_number":220,"context_line":"                # Stat provided from libvirt is in KB, converting it to MB."},{"line_number":221,"context_line":"                memory_used \u003d memory_used / units.Ki"},{"line_number":222,"context_line":"                return virt_inspector.MemoryUsageStats(usage\u003dmemory_used)"},{"line_number":223,"context_line":"            elif (memory_stats and memory_stats.get(\u0027rss\u0027)):"},{"line_number":224,"context_line":"                memory_used \u003d memory_stats.get(\u0027rss\u0027) / units.Ki"},{"line_number":225,"context_line":"                LOG.debug("},{"line_number":226,"context_line":"                    \u0027Inspect memory usage (rss) of instance \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a71b18c_0c814f8f","line":223,"range":{"start_line":223,"start_character":53,"end_line":223,"end_character":56},"in_reply_to":"3a71b18c_ccfbd777","updated":"2016-12-06 08:30:34.000000000","message":"to be precise:\n\"rss\" is the total memory \"allocated\" reported by the host\n\nAnd can be less that \"available\" in some case, like over provisioning.","commit_id":"b1f50a998cd4e9c0881c83b0a82e2b2b7083626a"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"a09ab1831601e6aae6f7ede67d4871b1e9248c88","unresolved":false,"context_lines":[{"line_number":274,"context_line":"    def inspect_memory_resident(self, instance, duration\u003dNone):"},{"line_number":275,"context_line":"        domain \u003d self._get_domain_not_shut_off_or_raise(instance)"},{"line_number":276,"context_line":"        memory \u003d domain.memoryStats()[\u0027rss\u0027] / units.Ki"},{"line_number":277,"context_line":"        return virt_inspector.MemoryResidentStats(resident\u003dmemory)"},{"line_number":278,"context_line":""},{"line_number":279,"context_line":"    def inspect_memory_bandwidth(self, instance, duration\u003dNone):"},{"line_number":280,"context_line":"        domain \u003d self._get_domain_not_shut_off_or_raise(instance)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a71b18c_78ec2e2a","line":277,"updated":"2016-12-06 13:48:04.000000000","message":"we already use it to build memory.resident meter.","commit_id":"b1f50a998cd4e9c0881c83b0a82e2b2b7083626a"}]}
