{"action":"created","comment":{"url":"https://api.github.com/repos/docker/docker/pulls/comments/29205454","id":29205454,"diff_hunk":"@@ -45,8 +46,13 @@ func New(quiet bool) *SysInfo {\n \t\t\tlogrus.Warnf(\"%v\", err)\n \t\t}\n \t} else {\n-\t\t_, err1 := ioutil.ReadFile(path.Join(cgroupCpuMountpoint, \"cpu.cfs_quota_us\"))\n-\t\tsysInfo.CpuCfsQuota = err1 == nil\n+\t\t_, err := ioutil.ReadFile(path.Join(cgroupCpuMountpoint, \"cpu.cfs_period_us\"))\n+\t\tsysInfo.CpuCfsPeriod = err == nil\n+\t\tif !sysInfo.CpuCfsPeriod && !quiet {\n+\t\t\tlogrus.Warnf(\"WARING: Your kernel does not support cgroup cfs period\")","path":"pkg/sysinfo/sysinfo.go","position":17,"original_position":17,"commit_id":"86dad1d9a6a31544eb59a77db9222ad5b9c5f78c","original_commit_id":"86dad1d9a6a31544eb59a77db9222ad5b9c5f78c","user":{"login":"Mashimiao","id":4852224,"avatar_url":"https://avatars.githubusercontent.com/u/4852224?v=3","gravatar_id":"","url":"https://api.github.com/users/Mashimiao","html_url":"https://github.com/Mashimiao","followers_url":"https://api.github.com/users/Mashimiao/followers","following_url":"https://api.github.com/users/Mashimiao/following{/other_user}","gists_url":"https://api.github.com/users/Mashimiao/gists{/gist_id}","starred_url":"https://api.github.com/users/Mashimiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mashimiao/subscriptions","organizations_url":"https://api.github.com/users/Mashimiao/orgs","repos_url":"https://api.github.com/users/Mashimiao/repos","events_url":"https://api.github.com/users/Mashimiao/events{/privacy}","received_events_url":"https://api.github.com/users/Mashimiao/received_events","type":"User","site_admin":false},"body":"redundant?","created_at":"2015-04-28T00:27:26Z","updated_at":"2015-04-28T00:27:26Z","html_url":"https://github.com/docker/docker/pull/12180#discussion_r29205454","pull_request_url":"https://api.github.com/repos/docker/docker/pulls/12180","_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/comments/29205454"},"html":{"href":"https://github.com/docker/docker/pull/12180#discussion_r29205454"},"pull_request":{"href":"https://api.github.com/repos/docker/docker/pulls/12180"}}},"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/12180","id":32842212,"html_url":"https://github.com/docker/docker/pull/12180","diff_url":"https://github.com/docker/docker/pull/12180.diff","patch_url":"https://github.com/docker/docker/pull/12180.patch","issue_url":"https://api.github.com/repos/docker/docker/issues/12180","number":12180,"state":"open","locked":false,"title":"add cpu.cfs_period_us  support","user":{"login":"Mashimiao","id":4852224,"avatar_url":"https://avatars.githubusercontent.com/u/4852224?v=3","gravatar_id":"","url":"https://api.github.com/users/Mashimiao","html_url":"https://github.com/Mashimiao","followers_url":"https://api.github.com/users/Mashimiao/followers","following_url":"https://api.github.com/users/Mashimiao/following{/other_user}","gists_url":"https://api.github.com/users/Mashimiao/gists{/gist_id}","starred_url":"https://api.github.com/users/Mashimiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mashimiao/subscriptions","organizations_url":"https://api.github.com/users/Mashimiao/orgs","repos_url":"https://api.github.com/users/Mashimiao/repos","events_url":"https://api.github.com/users/Mashimiao/events{/privacy}","received_events_url":"https://api.github.com/users/Mashimiao/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>\r\n\r\nWe can use this to control cpu period and quota of a container.","created_at":"2015-04-08T09:27:50Z","updated_at":"2015-04-28T00:27:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"950afbda06ca405e556b1410fba69f1773eb164f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/docker/pulls/12180/commits","review_comments_url":"https://api.github.com/repos/docker/docker/pulls/12180/comments","review_comment_url":"https://api.github.com/repos/docker/docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/docker/issues/12180/comments","statuses_url":"https://api.github.com/repos/docker/docker/statuses/86dad1d9a6a31544eb59a77db9222ad5b9c5f78c","head":{"label":"Mashimiao:add-cpuperiod-and-cpuquota-support","ref":"add-cpuperiod-and-cpuquota-support","sha":"86dad1d9a6a31544eb59a77db9222ad5b9c5f78c","user":{"login":"Mashimiao","id":4852224,"avatar_url":"https://avatars.githubusercontent.com/u/4852224?v=3","gravatar_id":"","url":"https://api.github.com/users/Mashimiao","html_url":"https://github.com/Mashimiao","followers_url":"https://api.github.com/users/Mashimiao/followers","following_url":"https://api.github.com/users/Mashimiao/following{/other_user}","gists_url":"https://api.github.com/users/Mashimiao/gists{/gist_id}","starred_url":"https://api.github.com/users/Mashimiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mashimiao/subscriptions","organizations_url":"https://api.github.com/users/Mashimiao/orgs","repos_url":"https://api.github.com/users/Mashimiao/repos","events_url":"https://api.github.com/users/Mashimiao/events{/privacy}","received_events_url":"https://api.github.com/users/Mashimiao/received_events","type":"User","site_admin":false},"repo":{"id":29891455,"name":"docker","full_name":"Mashimiao/docker","owner":{"login":"Mashimiao","id":4852224,"avatar_url":"https://avatars.githubusercontent.com/u/4852224?v=3","gravatar_id":"","url":"https://api.github.com/users/Mashimiao","html_url":"https://github.com/Mashimiao","followers_url":"https://api.github.com/users/Mashimiao/followers","following_url":"https://api.github.com/users/Mashimiao/following{/other_user}","gists_url":"https://api.github.com/users/Mashimiao/gists{/gist_id}","starred_url":"https://api.github.com/users/Mashimiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mashimiao/subscriptions","organizations_url":"https://api.github.com/users/Mashimiao/orgs","repos_url":"https://api.github.com/users/Mashimiao/repos","events_url":"https://api.github.com/users/Mashimiao/events{/privacy}","received_events_url":"https://api.github.com/users/Mashimiao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Mashimiao/docker","description":"Docker - the open-source application container engine","fork":true,"url":"https://api.github.com/repos/Mashimiao/docker","forks_url":"https://api.github.com/repos/Mashimiao/docker/forks","keys_url":"https://api.github.com/repos/Mashimiao/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mashimiao/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mashimiao/docker/teams","hooks_url":"https://api.github.com/repos/Mashimiao/docker/hooks","issue_events_url":"https://api.github.com/repos/Mashimiao/docker/issues/events{/number}","events_url":"https://api.github.com/repos/Mashimiao/docker/events","assignees_url":"https://api.github.com/repos/Mashimiao/docker/assignees{/user}","branches_url":"https://api.github.com/repos/Mashimiao/docker/branches{/branch}","tags_url":"https://api.github.com/repos/Mashimiao/docker/tags","blobs_url":"https://api.github.com/repos/Mashimiao/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mashimiao/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mashimiao/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mashimiao/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mashimiao/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/Mashimiao/docker/languages","stargazers_url":"https://api.github.com/repos/Mashimiao/docker/stargazers","contributors_url":"https://api.github.com/repos/Mashimiao/docker/contributors","subscribers_url":"https://api.github.com/repos/Mashimiao/docker/subscribers","subscription_url":"https://api.github.com/repos/Mashimiao/docker/subscription","commits_url":"https://api.github.com/repos/Mashimiao/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mashimiao/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mashimiao/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mashimiao/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mashimiao/docker/contents/{+path}","compare_url":"https://api.github.com/repos/Mashimiao/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mashimiao/docker/merges","archive_url":"https://api.github.com/repos/Mashimiao/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mashimiao/docker/downloads","issues_url":"https://api.github.com/repos/Mashimiao/docker/issues{/number}","pulls_url":"https://api.github.com/repos/Mashimiao/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/Mashimiao/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/Mashimiao/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mashimiao/docker/labels{/name}","releases_url":"https://api.github.com/repos/Mashimiao/docker/releases{/id}","created_at":"2015-01-27T01:32:55Z","updated_at":"2015-03-25T15:12:01Z","pushed_at":"2015-04-24T12:16:17Z","git_url":"git://github.com/Mashimiao/docker.git","ssh_url":"git@github.com:Mashimiao/docker.git","clone_url":"https://github.com/Mashimiao/docker.git","svn_url":"https://github.com/Mashimiao/docker","homepage":"http://www.docker.com","size":50491,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"016a2d6d9d215f26f2b2b11ddac4e36c6c93e1c9","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":7691631,"name":"docker","full_name":"docker/docker","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/docker","description":"Docker - the open-source application container engine","fork":false,"url":"https://api.github.com/repos/docker/docker","forks_url":"https://api.github.com/repos/docker/docker/forks","keys_url":"https://api.github.com/repos/docker/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/docker/teams","hooks_url":"https://api.github.com/repos/docker/docker/hooks","issue_events_url":"https://api.github.com/repos/docker/docker/issues/events{/number}","events_url":"https://api.github.com/repos/docker/docker/events","assignees_url":"https://api.github.com/repos/docker/docker/assignees{/user}","branches_url":"https://api.github.com/repos/docker/docker/branches{/branch}","tags_url":"https://api.github.com/repos/docker/docker/tags","blobs_url":"https://api.github.com/repos/docker/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/docker/languages","stargazers_url":"https://api.github.com/repos/docker/docker/stargazers","contributors_url":"https://api.github.com/repos/docker/docker/contributors","subscribers_url":"https://api.github.com/repos/docker/docker/subscribers","subscription_url":"https://api.github.com/repos/docker/docker/subscription","commits_url":"https://api.github.com/repos/docker/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/docker/contents/{+path}","compare_url":"https://api.github.com/repos/docker/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/docker/merges","archive_url":"https://api.github.com/repos/docker/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/docker/downloads","issues_url":"https://api.github.com/repos/docker/docker/issues{/number}","pulls_url":"https://api.github.com/repos/docker/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/docker/labels{/name}","releases_url":"https://api.github.com/repos/docker/docker/releases{/id}","created_at":"2013-01-18T18:10:57Z","updated_at":"2015-04-28T00:08:59Z","pushed_at":"2015-04-28T00:24:56Z","git_url":"git://github.com/docker/docker.git","ssh_url":"git@github.com:docker/docker.git","clone_url":"https://github.com/docker/docker.git","svn_url":"https://github.com/docker/docker","homepage":"http://www.docker.com","size":189958,"stargazers_count":21196,"watchers_count":21196,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4912,"mirror_url":null,"open_issues_count":949,"forks":4912,"open_issues":949,"watchers":21196,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/12180"},"html":{"href":"https://github.com/docker/docker/pull/12180"},"issue":{"href":"https://api.github.com/repos/docker/docker/issues/12180"},"comments":{"href":"https://api.github.com/repos/docker/docker/issues/12180/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/docker/pulls/12180/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/docker/pulls/12180/commits"},"statuses":{"href":"https://api.github.com/repos/docker/docker/statuses/86dad1d9a6a31544eb59a77db9222ad5b9c5f78c"}}}}