{"action":"opened","number":1275,"pull_request":{"url":"https://api.github.com/repos/sonyxperiadev/kernel/pulls/1275","id":118355087,"html_url":"https://github.com/sonyxperiadev/kernel/pull/1275","diff_url":"https://github.com/sonyxperiadev/kernel/pull/1275.diff","patch_url":"https://github.com/sonyxperiadev/kernel/pull/1275.patch","issue_url":"https://api.github.com/repos/sonyxperiadev/kernel/issues/1275","number":1275,"state":"open","locked":false,"title":"[1.3.3] sched/loadavg: Fix loadavg artifacts on fully idle and on fully loade…","user":{"login":"RyTekk","id":7169029,"avatar_url":"https://avatars2.githubusercontent.com/u/7169029?v=3","gravatar_id":"","url":"https://api.github.com/users/RyTekk","html_url":"https://github.com/RyTekk","followers_url":"https://api.github.com/users/RyTekk/followers","following_url":"https://api.github.com/users/RyTekk/following{/other_user}","gists_url":"https://api.github.com/users/RyTekk/gists{/gist_id}","starred_url":"https://api.github.com/users/RyTekk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyTekk/subscriptions","organizations_url":"https://api.github.com/users/RyTekk/orgs","repos_url":"https://api.github.com/users/RyTekk/repos","events_url":"https://api.github.com/users/RyTekk/events{/privacy}","received_events_url":"https://api.github.com/users/RyTekk/received_events","type":"User","site_admin":false},"body":"…d systems\r\n\r\nSystems show a minimal load average of 0.00, 0.01, 0.05 even when they\r\nhave no load at all.\r\n\r\nUptime and /proc/loadavg on all systems with kernels released during the\r\nlast five years up until kernel version 4.6-rc5, show a 5- and 15-minute\r\nminimum loadavg of 0.01 and 0.05 respectively. This should be 0.00 on\r\nidle systems, but the way the kernel calculates this value prevents it\r\nfrom getting lower than the mentioned values.\r\n\r\nLikewise but not as obviously noticeable, a fully loaded system with no\r\nprocesses waiting, shows a maximum 1/5/15 loadavg of 1.00, 0.99, 0.95\r\n(multiplied by number of cores).\r\n\r\nOnce the (old) load becomes 93 or higher, it mathematically can never\r\nget lower than 93, even when the active (load) remains 0 forever.\r\nThis results in the strange 0.00, 0.01, 0.05 uptime values on idle\r\nsystems.  Note: 93/2048 = 0.0454..., which rounds up to 0.05.\r\n\r\nIt is not correct to add a 0.5 rounding (=1024/2048) here, since the\r\nresult from this function is fed back into the next iteration again,\r\nso the result of that +0.5 rounding value then gets multiplied by\r\n(2048-2037), and then rounded again, so there is a virtual \"ghost\"\r\nload created, next to the old and active load terms.\r\n\r\nBy changing the way the internally kept value is rounded, that internal\r\nvalue equivalent now can reach 0.00 on idle, and 1.00 on full load. Upon\r\nincreasing load, the internally kept load value is rounded up, when the\r\nload is decreasing, the load value is rounded down.\r\n\r\nThe modified code was tested on nohz=off and nohz kernels. It was tested\r\non vanilla kernel 4.6-rc5 and on centos 7.1 kernel 3.10.0-327. It was\r\ntested on single, dual, and octal cores system. It was tested on virtual\r\nhosts and bare hardware. No unwanted effects have been observed, and the\r\nproblems that the patch intended to fix were indeed gone.\r\n\r\nTested-by: Damien Wyart <damien.wyart@free.fr>\r\nSigned-off-by: Vik Heyndrickx <vik.heyndrickx@veribox.net>\r\nSigned-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>\r\nCc: <stable@vger.kernel.org>\r\nCc: Doug Smythies <dsmythies@telus.net>\r\nCc: Linus Torvalds <torvalds@linux-foundation.org>\r\nCc: Mike Galbraith <efault@gmx.de>\r\nCc: Peter Zijlstra <peterz@infradead.org>\r\nCc: Thomas Gleixner <tglx@linutronix.de>\r\nFixes: 0f004f5a696a (\"sched: Cure more NO_HZ load average woes\")\r\nLink: http://lkml.kernel.org/r/e8d32bff-d544-7748-72b5-3c86cc71f09f@veribox.net\r\nSigned-off-by: Ingo Molnar <mingo@kernel.org>","created_at":"2017-05-01T07:49:34Z","updated_at":"2017-05-01T07:49:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sonyxperiadev/kernel/pulls/1275/commits","review_comments_url":"https://api.github.com/repos/sonyxperiadev/kernel/pulls/1275/comments","review_comment_url":"https://api.github.com/repos/sonyxperiadev/kernel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sonyxperiadev/kernel/issues/1275/comments","statuses_url":"https://api.github.com/repos/sonyxperiadev/kernel/statuses/4be665b33fa7947928feb056ec6764c3818747ab","head":{"label":"RyTekk:1.3.3_sched","ref":"1.3.3_sched","sha":"4be665b33fa7947928feb056ec6764c3818747ab","user":{"login":"RyTekk","id":7169029,"avatar_url":"https://avatars2.githubusercontent.com/u/7169029?v=3","gravatar_id":"","url":"https://api.github.com/users/RyTekk","html_url":"https://github.com/RyTekk","followers_url":"https://api.github.com/users/RyTekk/followers","following_url":"https://api.github.com/users/RyTekk/following{/other_user}","gists_url":"https://api.github.com/users/RyTekk/gists{/gist_id}","starred_url":"https://api.github.com/users/RyTekk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyTekk/subscriptions","organizations_url":"https://api.github.com/users/RyTekk/orgs","repos_url":"https://api.github.com/users/RyTekk/repos","events_url":"https://api.github.com/users/RyTekk/events{/privacy}","received_events_url":"https://api.github.com/users/RyTekk/received_events","type":"User","site_admin":false},"repo":{"id":79547608,"name":"kernel","full_name":"RyTekk/kernel","owner":{"login":"RyTekk","id":7169029,"avatar_url":"https://avatars2.githubusercontent.com/u/7169029?v=3","gravatar_id":"","url":"https://api.github.com/users/RyTekk","html_url":"https://github.com/RyTekk","followers_url":"https://api.github.com/users/RyTekk/followers","following_url":"https://api.github.com/users/RyTekk/following{/other_user}","gists_url":"https://api.github.com/users/RyTekk/gists{/gist_id}","starred_url":"https://api.github.com/users/RyTekk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyTekk/subscriptions","organizations_url":"https://api.github.com/users/RyTekk/orgs","repos_url":"https://api.github.com/users/RyTekk/repos","events_url":"https://api.github.com/users/RyTekk/events{/privacy}","received_events_url":"https://api.github.com/users/RyTekk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RyTekk/kernel","description":null,"fork":true,"url":"https://api.github.com/repos/RyTekk/kernel","forks_url":"https://api.github.com/repos/RyTekk/kernel/forks","keys_url":"https://api.github.com/repos/RyTekk/kernel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RyTekk/kernel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RyTekk/kernel/teams","hooks_url":"https://api.github.com/repos/RyTekk/kernel/hooks","issue_events_url":"https://api.github.com/repos/RyTekk/kernel/issues/events{/number}","events_url":"https://api.github.com/repos/RyTekk/kernel/events","assignees_url":"https://api.github.com/repos/RyTekk/kernel/assignees{/user}","branches_url":"https://api.github.com/repos/RyTekk/kernel/branches{/branch}","tags_url":"https://api.github.com/repos/RyTekk/kernel/tags","blobs_url":"https://api.github.com/repos/RyTekk/kernel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RyTekk/kernel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RyTekk/kernel/git/refs{/sha}","trees_url":"https://api.github.com/repos/RyTekk/kernel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RyTekk/kernel/statuses/{sha}","languages_url":"https://api.github.com/repos/RyTekk/kernel/languages","stargazers_url":"https://api.github.com/repos/RyTekk/kernel/stargazers","contributors_url":"https://api.github.com/repos/RyTekk/kernel/contributors","subscribers_url":"https://api.github.com/repos/RyTekk/kernel/subscribers","subscription_url":"https://api.github.com/repos/RyTekk/kernel/subscription","commits_url":"https://api.github.com/repos/RyTekk/kernel/commits{/sha}","git_commits_url":"https://api.github.com/repos/RyTekk/kernel/git/commits{/sha}","comments_url":"https://api.github.com/repos/RyTekk/kernel/comments{/number}","issue_comment_url":"https://api.github.com/repos/RyTekk/kernel/issues/comments{/number}","contents_url":"https://api.github.com/repos/RyTekk/kernel/contents/{+path}","compare_url":"https://api.github.com/repos/RyTekk/kernel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RyTekk/kernel/merges","archive_url":"https://api.github.com/repos/RyTekk/kernel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RyTekk/kernel/downloads","issues_url":"https://api.github.com/repos/RyTekk/kernel/issues{/number}","pulls_url":"https://api.github.com/repos/RyTekk/kernel/pulls{/number}","milestones_url":"https://api.github.com/repos/RyTekk/kernel/milestones{/number}","notifications_url":"https://api.github.com/repos/RyTekk/kernel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RyTekk/kernel/labels{/name}","releases_url":"https://api.github.com/repos/RyTekk/kernel/releases{/id}","deployments_url":"https://api.github.com/repos/RyTekk/kernel/deployments","created_at":"2017-01-20T09:57:47Z","updated_at":"2017-01-20T10:02:02Z","pushed_at":"2017-05-01T07:48:38Z","git_url":"git://github.com/RyTekk/kernel.git","ssh_url":"git@github.com:RyTekk/kernel.git","clone_url":"https://github.com/RyTekk/kernel.git","svn_url":"https://github.com/RyTekk/kernel","homepage":null,"size":1160821,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"aosp/LA.BR.1.3.3_rb2.14"}},"base":{"label":"sonyxperiadev:aosp/LA.BR.1.3.3_rb2.14","ref":"aosp/LA.BR.1.3.3_rb2.14","sha":"fbbccafc58c9ee2fa7ee2c3b9ac2f7c07718b7fb","user":{"login":"sonyxperiadev","id":487469,"avatar_url":"https://avatars0.githubusercontent.com/u/487469?v=3","gravatar_id":"","url":"https://api.github.com/users/sonyxperiadev","html_url":"https://github.com/sonyxperiadev","followers_url":"https://api.github.com/users/sonyxperiadev/followers","following_url":"https://api.github.com/users/sonyxperiadev/following{/other_user}","gists_url":"https://api.github.com/users/sonyxperiadev/gists{/gist_id}","starred_url":"https://api.github.com/users/sonyxperiadev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonyxperiadev/subscriptions","organizations_url":"https://api.github.com/users/sonyxperiadev/orgs","repos_url":"https://api.github.com/users/sonyxperiadev/repos","events_url":"https://api.github.com/users/sonyxperiadev/events{/privacy}","received_events_url":"https://api.github.com/users/sonyxperiadev/received_events","type":"User","site_admin":false},"repo":{"id":9492125,"name":"kernel","full_name":"sonyxperiadev/kernel","owner":{"login":"sonyxperiadev","id":487469,"avatar_url":"https://avatars0.githubusercontent.com/u/487469?v=3","gravatar_id":"","url":"https://api.github.com/users/sonyxperiadev","html_url":"https://github.com/sonyxperiadev","followers_url":"https://api.github.com/users/sonyxperiadev/followers","following_url":"https://api.github.com/users/sonyxperiadev/following{/other_user}","gists_url":"https://api.github.com/users/sonyxperiadev/gists{/gist_id}","starred_url":"https://api.github.com/users/sonyxperiadev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonyxperiadev/subscriptions","organizations_url":"https://api.github.com/users/sonyxperiadev/orgs","repos_url":"https://api.github.com/users/sonyxperiadev/repos","events_url":"https://api.github.com/users/sonyxperiadev/events{/privacy}","received_events_url":"https://api.github.com/users/sonyxperiadev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sonyxperiadev/kernel","description":null,"fork":false,"url":"https://api.github.com/repos/sonyxperiadev/kernel","forks_url":"https://api.github.com/repos/sonyxperiadev/kernel/forks","keys_url":"https://api.github.com/repos/sonyxperiadev/kernel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sonyxperiadev/kernel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sonyxperiadev/kernel/teams","hooks_url":"https://api.github.com/repos/sonyxperiadev/kernel/hooks","issue_events_url":"https://api.github.com/repos/sonyxperiadev/kernel/issues/events{/number}","events_url":"https://api.github.com/repos/sonyxperiadev/kernel/events","assignees_url":"https://api.github.com/repos/sonyxperiadev/kernel/assignees{/user}","branches_url":"https://api.github.com/repos/sonyxperiadev/kernel/branches{/branch}","tags_url":"https://api.github.com/repos/sonyxperiadev/kernel/tags","blobs_url":"https://api.github.com/repos/sonyxperiadev/kernel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sonyxperiadev/kernel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sonyxperiadev/kernel/git/refs{/sha}","trees_url":"https://api.github.com/repos/sonyxperiadev/kernel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sonyxperiadev/kernel/statuses/{sha}","languages_url":"https://api.github.com/repos/sonyxperiadev/kernel/languages","stargazers_url":"https://api.github.com/repos/sonyxperiadev/kernel/stargazers","contributors_url":"https://api.github.com/repos/sonyxperiadev/kernel/contributors","subscribers_url":"https://api.github.com/repos/sonyxperiadev/kernel/subscribers","subscription_url":"https://api.github.com/repos/sonyxperiadev/kernel/subscription","commits_url":"https://api.github.com/repos/sonyxperiadev/kernel/commits{/sha}","git_commits_url":"https://api.github.com/repos/sonyxperiadev/kernel/git/commits{/sha}","comments_url":"https://api.github.com/repos/sonyxperiadev/kernel/comments{/number}","issue_comment_url":"https://api.github.com/repos/sonyxperiadev/kernel/issues/comments{/number}","contents_url":"https://api.github.com/repos/sonyxperiadev/kernel/contents/{+path}","compare_url":"https://api.github.com/repos/sonyxperiadev/kernel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sonyxperiadev/kernel/merges","archive_url":"https://api.github.com/repos/sonyxperiadev/kernel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sonyxperiadev/kernel/downloads","issues_url":"https://api.github.com/repos/sonyxperiadev/kernel/issues{/number}","pulls_url":"https://api.github.com/repos/sonyxperiadev/kernel/pulls{/number}","milestones_url":"https://api.github.com/repos/sonyxperiadev/kernel/milestones{/number}","notifications_url":"https://api.github.com/repos/sonyxperiadev/kernel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sonyxperiadev/kernel/labels{/name}","releases_url":"https://api.github.com/repos/sonyxperiadev/kernel/releases{/id}","deployments_url":"https://api.github.com/repos/sonyxperiadev/kernel/deployments","created_at":"2013-04-17T07:47:42Z","updated_at":"2017-04-27T06:42:01Z","pushed_at":"2017-04-27T16:56:48Z","git_url":"git://github.com/sonyxperiadev/kernel.git","ssh_url":"git@github.com:sonyxperiadev/kernel.git","clone_url":"https://github.com/sonyxperiadev/kernel.git","svn_url":"https://github.com/sonyxperiadev/kernel","homepage":null,"size":1231989,"stargazers_count":129,"watchers_count":129,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":201,"mirror_url":null,"open_issues_count":32,"forks":201,"open_issues":32,"watchers":129,"default_branch":"aosp/LA.BR.1.3.3_rb2.14"}},"_links":{"self":{"href":"https://api.github.com/repos/sonyxperiadev/kernel/pulls/1275"},"html":{"href":"https://github.com/sonyxperiadev/kernel/pull/1275"},"issue":{"href":"https://api.github.com/repos/sonyxperiadev/kernel/issues/1275"},"comments":{"href":"https://api.github.com/repos/sonyxperiadev/kernel/issues/1275/comments"},"review_comments":{"href":"https://api.github.com/repos/sonyxperiadev/kernel/pulls/1275/comments"},"review_comment":{"href":"https://api.github.com/repos/sonyxperiadev/kernel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sonyxperiadev/kernel/pulls/1275/commits"},"statuses":{"href":"https://api.github.com/repos/sonyxperiadev/kernel/statuses/4be665b33fa7947928feb056ec6764c3818747ab"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":7,"deletions":4,"changed_files":1}}
{"actor":{"display_login":"RyTekk"}}