{"action":"opened","number":27,"pull_request":{"url":"https://api.github.com/repos/LSTS/glued/pulls/27","id":63810568,"html_url":"https://github.com/LSTS/glued/pull/27","diff_url":"https://github.com/LSTS/glued/pull/27.diff","patch_url":"https://github.com/LSTS/glued/pull/27.patch","issue_url":"https://api.github.com/repos/LSTS/glued/issues/27","number":27,"state":"open","locked":false,"title":"Adding support for PREEMPT_RT","user":{"login":"krisklau","id":1461672,"avatar_url":"https://avatars.githubusercontent.com/u/1461672?v=3","gravatar_id":"","url":"https://api.github.com/users/krisklau","html_url":"https://github.com/krisklau","followers_url":"https://api.github.com/users/krisklau/followers","following_url":"https://api.github.com/users/krisklau/following{/other_user}","gists_url":"https://api.github.com/users/krisklau/gists{/gist_id}","starred_url":"https://api.github.com/users/krisklau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krisklau/subscriptions","organizations_url":"https://api.github.com/users/krisklau/orgs","repos_url":"https://api.github.com/users/krisklau/repos","events_url":"https://api.github.com/users/krisklau/events{/privacy}","received_events_url":"https://api.github.com/users/krisklau/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\nI wanted to test adding the RT patch to the kernel we use in glued, and run some benchmarks with cyclictest to see the difference in latencies. \r\n\r\nBy applying the rt patch to 3.14.58 on a beaglebone black, and using the following benchmark command:\r\n    `cyclictest -l1000000 -m -n -a0 -t1 -p99 -i400 -h400 -q`\r\nI got the following:\r\n\r\n![results](https://cloud.githubusercontent.com/assets/1461672/13970850/bf0df976-f08b-11e5-8673-337501a67871.png)\r\n\r\n` vanilla:  Total: 001000000 # Min Latencies: 00007 # Avg Latencies: 00009 # Max Latencies: 02934`\r\n`rt-patch:Total: 001000000 # Min Latencies: 00007 # Avg Latencies: 00009 # Max Latencies: 00041`\r\n\r\nwhich I find interesting enough to do some further tests. \r\n\r\nI open this PR to start a discussion on:\r\n 1. Using the rt patch at all, is it necessary? \r\n 2. If so, find a clever way to incorporate in the build system. \r\n\r\nAttached is a suggestion for 2. As can be seen in https://www.kernel.org/pub/linux/kernel/projects/rt/3.14/, not all releases gets a rt-patch, which gives a couple of drawbacks of the suggested method. This means that if one wants to use the newest vanilla kernel (e.g. 3.14.63), that may not have an rt patch yet, several files needs to be duplicated. (configs, linux-patches, linux-headers? etc). Ideally, I guess the original version could be tracked, and copied from the appropriate locations instead. \r\n\r\nThe file  `rules/linux/preempt_rt.bash` keeps track of the kernel version and rt version, and overrides from `default.bash`. Also, some code is duplicated to add functionality to the functions `configure()` and `post_unpack()`, which is not ideal imo. Maybe add some additional hooks in `default.bash`, like `post_configure()`, and `post_unpack_patch()`? (just in the linux-package, called by the appropriate functions in `default.bash`)\r\n\r\nThanks for all inputs, comments and suggestions!\r\n\r\nRegards,\r\nKristian","created_at":"2016-03-22T23:36:36Z","updated_at":"2016-03-22T23:36:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LSTS/glued/pulls/27/commits","review_comments_url":"https://api.github.com/repos/LSTS/glued/pulls/27/comments","review_comment_url":"https://api.github.com/repos/LSTS/glued/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LSTS/glued/issues/27/comments","statuses_url":"https://api.github.com/repos/LSTS/glued/statuses/b8f80802b144ea0cfa69cb9267138dc30ddb7630","head":{"label":"krisklau:pr/linux-rt-patch","ref":"pr/linux-rt-patch","sha":"b8f80802b144ea0cfa69cb9267138dc30ddb7630","user":{"login":"krisklau","id":1461672,"avatar_url":"https://avatars.githubusercontent.com/u/1461672?v=3","gravatar_id":"","url":"https://api.github.com/users/krisklau","html_url":"https://github.com/krisklau","followers_url":"https://api.github.com/users/krisklau/followers","following_url":"https://api.github.com/users/krisklau/following{/other_user}","gists_url":"https://api.github.com/users/krisklau/gists{/gist_id}","starred_url":"https://api.github.com/users/krisklau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krisklau/subscriptions","organizations_url":"https://api.github.com/users/krisklau/orgs","repos_url":"https://api.github.com/users/krisklau/repos","events_url":"https://api.github.com/users/krisklau/events{/privacy}","received_events_url":"https://api.github.com/users/krisklau/received_events","type":"User","site_admin":false},"repo":{"id":23701990,"name":"glued","full_name":"krisklau/glued","owner":{"login":"krisklau","id":1461672,"avatar_url":"https://avatars.githubusercontent.com/u/1461672?v=3","gravatar_id":"","url":"https://api.github.com/users/krisklau","html_url":"https://github.com/krisklau","followers_url":"https://api.github.com/users/krisklau/followers","following_url":"https://api.github.com/users/krisklau/following{/other_user}","gists_url":"https://api.github.com/users/krisklau/gists{/gist_id}","starred_url":"https://api.github.com/users/krisklau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krisklau/subscriptions","organizations_url":"https://api.github.com/users/krisklau/orgs","repos_url":"https://api.github.com/users/krisklau/repos","events_url":"https://api.github.com/users/krisklau/events{/privacy}","received_events_url":"https://api.github.com/users/krisklau/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krisklau/glued","description":"GNU/Linux Uniform Environment Distribution","fork":true,"url":"https://api.github.com/repos/krisklau/glued","forks_url":"https://api.github.com/repos/krisklau/glued/forks","keys_url":"https://api.github.com/repos/krisklau/glued/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krisklau/glued/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krisklau/glued/teams","hooks_url":"https://api.github.com/repos/krisklau/glued/hooks","issue_events_url":"https://api.github.com/repos/krisklau/glued/issues/events{/number}","events_url":"https://api.github.com/repos/krisklau/glued/events","assignees_url":"https://api.github.com/repos/krisklau/glued/assignees{/user}","branches_url":"https://api.github.com/repos/krisklau/glued/branches{/branch}","tags_url":"https://api.github.com/repos/krisklau/glued/tags","blobs_url":"https://api.github.com/repos/krisklau/glued/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krisklau/glued/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krisklau/glued/git/refs{/sha}","trees_url":"https://api.github.com/repos/krisklau/glued/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krisklau/glued/statuses/{sha}","languages_url":"https://api.github.com/repos/krisklau/glued/languages","stargazers_url":"https://api.github.com/repos/krisklau/glued/stargazers","contributors_url":"https://api.github.com/repos/krisklau/glued/contributors","subscribers_url":"https://api.github.com/repos/krisklau/glued/subscribers","subscription_url":"https://api.github.com/repos/krisklau/glued/subscription","commits_url":"https://api.github.com/repos/krisklau/glued/commits{/sha}","git_commits_url":"https://api.github.com/repos/krisklau/glued/git/commits{/sha}","comments_url":"https://api.github.com/repos/krisklau/glued/comments{/number}","issue_comment_url":"https://api.github.com/repos/krisklau/glued/issues/comments{/number}","contents_url":"https://api.github.com/repos/krisklau/glued/contents/{+path}","compare_url":"https://api.github.com/repos/krisklau/glued/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krisklau/glued/merges","archive_url":"https://api.github.com/repos/krisklau/glued/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krisklau/glued/downloads","issues_url":"https://api.github.com/repos/krisklau/glued/issues{/number}","pulls_url":"https://api.github.com/repos/krisklau/glued/pulls{/number}","milestones_url":"https://api.github.com/repos/krisklau/glued/milestones{/number}","notifications_url":"https://api.github.com/repos/krisklau/glued/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krisklau/glued/labels{/name}","releases_url":"https://api.github.com/repos/krisklau/glued/releases{/id}","deployments_url":"https://api.github.com/repos/krisklau/glued/deployments","created_at":"2014-09-05T12:20:46Z","updated_at":"2014-07-12T16:56:49Z","pushed_at":"2016-03-22T23:06:06Z","git_url":"git://github.com/krisklau/glued.git","ssh_url":"git@github.com:krisklau/glued.git","clone_url":"https://github.com/krisklau/glued.git","svn_url":"https://github.com/krisklau/glued","homepage":null,"size":1490,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"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":"master"}},"base":{"label":"LSTS:master","ref":"master","sha":"4dc98209b7b93af6af3ad744fffadd8417f29b18","user":{"login":"LSTS","id":1561949,"avatar_url":"https://avatars.githubusercontent.com/u/1561949?v=3","gravatar_id":"","url":"https://api.github.com/users/LSTS","html_url":"https://github.com/LSTS","followers_url":"https://api.github.com/users/LSTS/followers","following_url":"https://api.github.com/users/LSTS/following{/other_user}","gists_url":"https://api.github.com/users/LSTS/gists{/gist_id}","starred_url":"https://api.github.com/users/LSTS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LSTS/subscriptions","organizations_url":"https://api.github.com/users/LSTS/orgs","repos_url":"https://api.github.com/users/LSTS/repos","events_url":"https://api.github.com/users/LSTS/events{/privacy}","received_events_url":"https://api.github.com/users/LSTS/received_events","type":"Organization","site_admin":false},"repo":{"id":11390276,"name":"glued","full_name":"LSTS/glued","owner":{"login":"LSTS","id":1561949,"avatar_url":"https://avatars.githubusercontent.com/u/1561949?v=3","gravatar_id":"","url":"https://api.github.com/users/LSTS","html_url":"https://github.com/LSTS","followers_url":"https://api.github.com/users/LSTS/followers","following_url":"https://api.github.com/users/LSTS/following{/other_user}","gists_url":"https://api.github.com/users/LSTS/gists{/gist_id}","starred_url":"https://api.github.com/users/LSTS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LSTS/subscriptions","organizations_url":"https://api.github.com/users/LSTS/orgs","repos_url":"https://api.github.com/users/LSTS/repos","events_url":"https://api.github.com/users/LSTS/events{/privacy}","received_events_url":"https://api.github.com/users/LSTS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LSTS/glued","description":"GNU/Linux Uniform Environment Distribution","fork":false,"url":"https://api.github.com/repos/LSTS/glued","forks_url":"https://api.github.com/repos/LSTS/glued/forks","keys_url":"https://api.github.com/repos/LSTS/glued/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LSTS/glued/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LSTS/glued/teams","hooks_url":"https://api.github.com/repos/LSTS/glued/hooks","issue_events_url":"https://api.github.com/repos/LSTS/glued/issues/events{/number}","events_url":"https://api.github.com/repos/LSTS/glued/events","assignees_url":"https://api.github.com/repos/LSTS/glued/assignees{/user}","branches_url":"https://api.github.com/repos/LSTS/glued/branches{/branch}","tags_url":"https://api.github.com/repos/LSTS/glued/tags","blobs_url":"https://api.github.com/repos/LSTS/glued/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LSTS/glued/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LSTS/glued/git/refs{/sha}","trees_url":"https://api.github.com/repos/LSTS/glued/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LSTS/glued/statuses/{sha}","languages_url":"https://api.github.com/repos/LSTS/glued/languages","stargazers_url":"https://api.github.com/repos/LSTS/glued/stargazers","contributors_url":"https://api.github.com/repos/LSTS/glued/contributors","subscribers_url":"https://api.github.com/repos/LSTS/glued/subscribers","subscription_url":"https://api.github.com/repos/LSTS/glued/subscription","commits_url":"https://api.github.com/repos/LSTS/glued/commits{/sha}","git_commits_url":"https://api.github.com/repos/LSTS/glued/git/commits{/sha}","comments_url":"https://api.github.com/repos/LSTS/glued/comments{/number}","issue_comment_url":"https://api.github.com/repos/LSTS/glued/issues/comments{/number}","contents_url":"https://api.github.com/repos/LSTS/glued/contents/{+path}","compare_url":"https://api.github.com/repos/LSTS/glued/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LSTS/glued/merges","archive_url":"https://api.github.com/repos/LSTS/glued/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LSTS/glued/downloads","issues_url":"https://api.github.com/repos/LSTS/glued/issues{/number}","pulls_url":"https://api.github.com/repos/LSTS/glued/pulls{/number}","milestones_url":"https://api.github.com/repos/LSTS/glued/milestones{/number}","notifications_url":"https://api.github.com/repos/LSTS/glued/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LSTS/glued/labels{/name}","releases_url":"https://api.github.com/repos/LSTS/glued/releases{/id}","deployments_url":"https://api.github.com/repos/LSTS/glued/deployments","created_at":"2013-07-13T15:53:41Z","updated_at":"2016-01-12T13:36:35Z","pushed_at":"2016-03-22T22:45:15Z","git_url":"git://github.com/LSTS/glued.git","ssh_url":"git@github.com:LSTS/glued.git","clone_url":"https://github.com/LSTS/glued.git","svn_url":"https://github.com/LSTS/glued","homepage":null,"size":1543,"stargazers_count":9,"watchers_count":9,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":4,"forks":5,"open_issues":4,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LSTS/glued/pulls/27"},"html":{"href":"https://github.com/LSTS/glued/pull/27"},"issue":{"href":"https://api.github.com/repos/LSTS/glued/issues/27"},"comments":{"href":"https://api.github.com/repos/LSTS/glued/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/LSTS/glued/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/LSTS/glued/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LSTS/glued/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/LSTS/glued/statuses/b8f80802b144ea0cfa69cb9267138dc30ddb7630"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":6,"additions":2954,"deletions":1,"changed_files":7}}