{"action":"created","issue":{"url":"https://api.github.com/repos/opencontainers/runtime-tools/issues/111","repository_url":"https://api.github.com/repos/opencontainers/runtime-tools","labels_url":"https://api.github.com/repos/opencontainers/runtime-tools/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/opencontainers/runtime-tools/issues/111/comments","events_url":"https://api.github.com/repos/opencontainers/runtime-tools/issues/111/events","html_url":"https://github.com/opencontainers/runtime-tools/issues/111","id":160978124,"number":111,"title":"Configure memory swapiness for a container ","user":{"login":"washraf","id":4272790,"avatar_url":"https://avatars.githubusercontent.com/u/4272790?v=3","gravatar_id":"","url":"https://api.github.com/users/washraf","html_url":"https://github.com/washraf","followers_url":"https://api.github.com/users/washraf/followers","following_url":"https://api.github.com/users/washraf/following{/other_user}","gists_url":"https://api.github.com/users/washraf/gists{/gist_id}","starred_url":"https://api.github.com/users/washraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/washraf/subscriptions","organizations_url":"https://api.github.com/users/washraf/orgs","repos_url":"https://api.github.com/users/washraf/repos","events_url":"https://api.github.com/users/washraf/events{/privacy}","received_events_url":"https://api.github.com/users/washraf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-06-17T21:27:08Z","updated_at":"2016-10-27T07:33:43Z","closed_at":null,"body":"How to configure the cgroup memory swapiness using the ocitool or even directly in the config.json file.\r\n"},"comment":{"url":"https://api.github.com/repos/opencontainers/runtime-tools/issues/comments/256568517","html_url":"https://github.com/opencontainers/runtime-tools/issues/111#issuecomment-256568517","issue_url":"https://api.github.com/repos/opencontainers/runtime-tools/issues/111","id":256568517,"user":{"login":"kunalkushwaha","id":2758433,"avatar_url":"https://avatars.githubusercontent.com/u/2758433?v=3","gravatar_id":"","url":"https://api.github.com/users/kunalkushwaha","html_url":"https://github.com/kunalkushwaha","followers_url":"https://api.github.com/users/kunalkushwaha/followers","following_url":"https://api.github.com/users/kunalkushwaha/following{/other_user}","gists_url":"https://api.github.com/users/kunalkushwaha/gists{/gist_id}","starred_url":"https://api.github.com/users/kunalkushwaha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunalkushwaha/subscriptions","organizations_url":"https://api.github.com/users/kunalkushwaha/orgs","repos_url":"https://api.github.com/users/kunalkushwaha/repos","events_url":"https://api.github.com/users/kunalkushwaha/events{/privacy}","received_events_url":"https://api.github.com/users/kunalkushwaha/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T07:33:43Z","updated_at":"2016-10-27T07:33:43Z","body":"I guess this issue is resolved. \r\n\r\nusing ``ocitools generate --linux-mem-swappiness`` value can be set.\r\n\r\nand in config.json ``memory`` section need to be under ``resources`` tag.\r\n\r\n``` json\r\n.\r\n.\r\n\"linux\": {\r\n                 \"resources\": {\r\n                         \"devices\": [\r\n                                 {\r\n                                         \"allow\": false,\r\n                                         \"access\": \"rwm\"\r\n                                 }\r\n                         ]\r\n                         },\r\n                        \"memory\": {\r\n                                 \"swappiness\": 10\r\n                         },\r\n ...\r\n```\r\n\r\nCan this be closed?"}}
{"actor":{"display_login":"kunalkushwaha"}}