{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker/issues/18894","labels_url":"https://api.github.com/repos/docker/docker/issues/18894/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/18894/comments","events_url":"https://api.github.com/repos/docker/docker/issues/18894/events","html_url":"https://github.com/docker/docker/issues/18894","id":123773123,"number":18894,"title":"set memory-swap=-1,can't disable swap.","user":{"login":"woshihaoren","id":4115501,"avatar_url":"https://avatars.githubusercontent.com/u/4115501?v=3","gravatar_id":"","url":"https://api.github.com/users/woshihaoren","html_url":"https://github.com/woshihaoren","followers_url":"https://api.github.com/users/woshihaoren/followers","following_url":"https://api.github.com/users/woshihaoren/following{/other_user}","gists_url":"https://api.github.com/users/woshihaoren/gists{/gist_id}","starred_url":"https://api.github.com/users/woshihaoren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woshihaoren/subscriptions","organizations_url":"https://api.github.com/users/woshihaoren/orgs","repos_url":"https://api.github.com/users/woshihaoren/repos","events_url":"https://api.github.com/users/woshihaoren/events{/privacy}","received_events_url":"https://api.github.com/users/woshihaoren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-24T08:02:51Z","updated_at":"2015-12-24T08:02:51Z","closed_at":null,"body":"Hi:\r\n\r\nI test memory-swap=-1 to disable swap\r\n    docker run --name test1 -d  -m 500m --memory-swap=-1 tomcat\r\n\r\n# stress --vm 1 --vm-bytes 5000M --vm-hang 0\r\n# grep -i vmswap /proc/*/status\r\n/proc/1/status:VmSwap:\t     220 kB\r\n/proc/184/status:VmSwap:\t      92 kB\r\n/proc/185/status:VmSwap:\t 4669140 kB\r\n/proc/203/status:VmSwap:\t       0 kB\r\n/proc/23/status:VmSwap:\t 1332496 kB\r\n/proc/9/status:VmSwap:\t     752 kB\r\n/proc/90/status:VmSwap:\t     336 kB\r\n/proc/self/status:VmSwap:\t       0 kB\r\n/proc/thread-self/status:VmSwap:\t       0 kB"}}