{"action":"created","issue":{"url":"https://api.github.com/repos/kata-containers/runtime/issues/1822","repository_url":"https://api.github.com/repos/kata-containers/runtime","labels_url":"https://api.github.com/repos/kata-containers/runtime/issues/1822/labels{/name}","comments_url":"https://api.github.com/repos/kata-containers/runtime/issues/1822/comments","events_url":"https://api.github.com/repos/kata-containers/runtime/issues/1822/events","html_url":"https://github.com/kata-containers/runtime/issues/1822","id":459433382,"node_id":"MDU6SXNzdWU0NTk0MzMzODI=","number":1822,"title":"Memory usage doesn't match memory limit in container spec","user":{"login":"liwei","id":9113,"node_id":"MDQ6VXNlcjkxMTM=","avatar_url":"https://avatars3.githubusercontent.com/u/9113?v=4","gravatar_id":"","url":"https://api.github.com/users/liwei","html_url":"https://github.com/liwei","followers_url":"https://api.github.com/users/liwei/followers","following_url":"https://api.github.com/users/liwei/following{/other_user}","gists_url":"https://api.github.com/users/liwei/gists{/gist_id}","starred_url":"https://api.github.com/users/liwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liwei/subscriptions","organizations_url":"https://api.github.com/users/liwei/orgs","repos_url":"https://api.github.com/users/liwei/repos","events_url":"https://api.github.com/users/liwei/events{/privacy}","received_events_url":"https://api.github.com/users/liwei/received_events","type":"User","site_admin":false},"labels":[{"id":748862369,"node_id":"MDU6TGFiZWw3NDg4NjIzNjk=","url":"https://api.github.com/repos/kata-containers/runtime/labels/bug","name":"bug","color":"ff0000","default":true,"description":"Incorrect behaviour"},{"id":1390173683,"node_id":"MDU6TGFiZWwxMzkwMTczNjgz","url":"https://api.github.com/repos/kata-containers/runtime/labels/needs-review","name":"needs-review","color":"00ff00","default":false,"description":"Needs to be assessed by the team."}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-06-22T04:13:19Z","updated_at":"2019-12-18T16:01:09Z","closed_at":null,"author_association":"MEMBER","body":"# Description of problem\r\n\r\nRunning a container with memory limit == 4gb specified, but got much larger memory size when checking memory info in the container.\r\n\r\n# Expected result\r\n\r\n```\r\n$ docker run -ti --rm --runtime=kata -m 4g alpine\r\n/ # free -m\r\n             total       used       free     shared    buffers     cached\r\nMem:          4g        108       4g          8          2          9\r\n-/+ buffers/cache:         97       4g\r\n```\r\n\r\n# Actual result\r\n\r\n```\r\n$ docker run -ti --rm --runtime=kata -m 4g alpine\r\n/ # free -m\r\n             total       used       free     shared    buffers     cached\r\nMem:          6090        108       5982          8          2          9\r\n-/+ buffers/cache:         97       5993\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/kata-containers/runtime/issues/comments/567095481","html_url":"https://github.com/kata-containers/runtime/issues/1822#issuecomment-567095481","issue_url":"https://api.github.com/repos/kata-containers/runtime/issues/1822","id":567095481,"node_id":"MDEyOklzc3VlQ29tbWVudDU2NzA5NTQ4MQ==","user":{"login":"devimc","id":13009432,"node_id":"MDQ6VXNlcjEzMDA5NDMy","avatar_url":"https://avatars0.githubusercontent.com/u/13009432?v=4","gravatar_id":"","url":"https://api.github.com/users/devimc","html_url":"https://github.com/devimc","followers_url":"https://api.github.com/users/devimc/followers","following_url":"https://api.github.com/users/devimc/following{/other_user}","gists_url":"https://api.github.com/users/devimc/gists{/gist_id}","starred_url":"https://api.github.com/users/devimc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devimc/subscriptions","organizations_url":"https://api.github.com/users/devimc/orgs","repos_url":"https://api.github.com/users/devimc/repos","events_url":"https://api.github.com/users/devimc/events{/privacy}","received_events_url":"https://api.github.com/users/devimc/received_events","type":"User","site_admin":false},"created_at":"2019-12-18T16:01:08Z","updated_at":"2019-12-18T16:01:08Z","author_association":"CONTRIBUTOR","body":"@ekifox VM was started with 1G [1] and 8G were hot plugged (-m 8G), the container in the VM has a memory constraint of 8G, the rest is used for overhead (guest kernel, kata-agent, systemd). If you want to honour the amount of memory then set it using [1] and don't use `-m` option.\r\n\r\n[1] - https://github.com/kata-containers/runtime/blob/master/cli/config/configuration-qemu.toml.in#L78"}}
{"actor":{"display_login":"devimc"}}