{"action":"created","issue":{"url":"https://api.github.com/repos/OpenNebula/one/issues/2179","repository_url":"https://api.github.com/repos/OpenNebula/one","labels_url":"https://api.github.com/repos/OpenNebula/one/issues/2179/labels{/name}","comments_url":"https://api.github.com/repos/OpenNebula/one/issues/2179/comments","events_url":"https://api.github.com/repos/OpenNebula/one/issues/2179/events","html_url":"https://github.com/OpenNebula/one/issues/2179","id":332297479,"node_id":"MDU6SXNzdWUzMzIyOTc0Nzk=","number":2179,"title":"Real memory is reported only when it is more than the allocated memory (vmm_mad/kvm)","user":{"login":"atodorov-storpool","id":11386997,"node_id":"MDQ6VXNlcjExMzg2OTk3","avatar_url":"https://avatars0.githubusercontent.com/u/11386997?v=4","gravatar_id":"","url":"https://api.github.com/users/atodorov-storpool","html_url":"https://github.com/atodorov-storpool","followers_url":"https://api.github.com/users/atodorov-storpool/followers","following_url":"https://api.github.com/users/atodorov-storpool/following{/other_user}","gists_url":"https://api.github.com/users/atodorov-storpool/gists{/gist_id}","starred_url":"https://api.github.com/users/atodorov-storpool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atodorov-storpool/subscriptions","organizations_url":"https://api.github.com/users/atodorov-storpool/orgs","repos_url":"https://api.github.com/users/atodorov-storpool/repos","events_url":"https://api.github.com/users/atodorov-storpool/events{/privacy}","received_events_url":"https://api.github.com/users/atodorov-storpool/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-14T08:19:15Z","updated_at":"2018-06-14T08:40:54Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!--////////////////////////////////////////////-->\r\n<!-- COMPLETE ONLY ONE SECTION                  -->\r\n<!-- BUG REPORT *OR* ENHANCEMENT REQUEST        -->\r\n<!--////////////////////////////////////////////-->\r\n\r\n<!--////////////////////////////////////////////-->\r\n<!-- COMPLETE THIS SECTION FOR BUG REPORTS      -->\r\n<!--////////////////////////////////////////////-->\r\n\r\n# Bug Report\r\n## Version of OpenNebula\r\n<!--Mark the relevant versions affected with [X] -->\r\n- [X] 5.2.2\r\n- [X] 5.4.0\r\n- [X] 5.4.1\r\n- [X] 5.4.2\r\n- [X] 5.4.3\r\n- [X] 5.4.4\r\n- [X] 5.4.5\r\n- [X] 5.4.6\r\n- [X] 5.4.7\r\n- [X] 5.4.8\r\n- [X] 5.4.9\r\n- [X] 5.4.10\r\n- [X] 5.4.11\r\n- [X] 5.5.80\r\n- [X] Development build\r\n\r\n## Component\r\n<!-- Mark the relevant versions affected with [X] -->\r\n- [ ] Authorization (LDAP, x509 certs...)\r\n- [ ] Command Line Interface (CLI)\r\n- [ ] Contextualization\r\n- [ ] Documentation\r\n- [ ] Federation and HA\r\n- [X] Host, Clusters and Monitorization\r\n- [ ] KVM\r\n- [ ] Networking\r\n- [ ] Orchestration (OpenNebula Flow)\r\n- [ ] Packages\r\n- [ ] Scheduler\r\n- [ ] Storage & Images\r\n- [ ] Sunstone\r\n- [ ] Upgrades\r\n- [ ] User, Groups, VDCs and ACL\r\n- [ ] vCenter\r\n\r\n## Description\r\nIn current configuration `virh dominfo one-$vmid` always returns the allocated memory. The second source of information is the RSS from the `ps` output which is the real memory usage by the guest on the host (It could be bigger because it is the sum of the qemu-kvm process itself and the domain usage).\r\n\r\nI think that the RSS value is relevant in this case. \r\n\r\n### Expected Behavior\r\nThe monitoring (vmm/kvm/poll) should return the real memory usage (RSS)\r\n\r\n### Actual Behavior\r\nThe monitoring (vmm/kvm/poll) returns the value from _dominfo_ or _ps-RSS_ depending on which is bigger (_MAX(dominfo,rss)_)\r\n\r\n## How to reproduce\r\n1. deploy a Linux VM with relatively large RAM (8GB)\r\n2. look the reported stats (onevm or sunstone)\r\n"},"comment":{"url":"https://api.github.com/repos/OpenNebula/one/issues/comments/397218115","html_url":"https://github.com/OpenNebula/one/issues/2179#issuecomment-397218115","issue_url":"https://api.github.com/repos/OpenNebula/one/issues/2179","id":397218115,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzIxODExNQ==","user":{"login":"atodorov-storpool","id":11386997,"node_id":"MDQ6VXNlcjExMzg2OTk3","avatar_url":"https://avatars0.githubusercontent.com/u/11386997?v=4","gravatar_id":"","url":"https://api.github.com/users/atodorov-storpool","html_url":"https://github.com/atodorov-storpool","followers_url":"https://api.github.com/users/atodorov-storpool/followers","following_url":"https://api.github.com/users/atodorov-storpool/following{/other_user}","gists_url":"https://api.github.com/users/atodorov-storpool/gists{/gist_id}","starred_url":"https://api.github.com/users/atodorov-storpool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atodorov-storpool/subscriptions","organizations_url":"https://api.github.com/users/atodorov-storpool/orgs","repos_url":"https://api.github.com/users/atodorov-storpool/repos","events_url":"https://api.github.com/users/atodorov-storpool/events{/privacy}","received_events_url":"https://api.github.com/users/atodorov-storpool/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T08:40:54Z","updated_at":"2018-06-14T08:40:54Z","author_association":"CONTRIBUTOR","body":"https://github.com/OpenNebula/one/pull/2180"}}
{"actor":{"display_login":"atodorov-storpool"}}