{"action":"opened","number":843,"pull_request":{"url":"https://api.github.com/repos/hishamhm/htop/pulls/843","id":221569708,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxNTY5NzA4","html_url":"https://github.com/hishamhm/htop/pull/843","diff_url":"https://github.com/hishamhm/htop/pull/843.diff","patch_url":"https://github.com/hishamhm/htop/pull/843.patch","issue_url":"https://api.github.com/repos/hishamhm/htop/issues/843","number":843,"state":"open","locked":false,"title":"Add PSS (proportional set size), Swap and SwapPSS calculation on Linux","user":{"login":"alexander255","id":246386,"node_id":"MDQ6VXNlcjI0NjM4Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/246386?v=4","gravatar_id":"","url":"https://api.github.com/users/alexander255","html_url":"https://github.com/alexander255","followers_url":"https://api.github.com/users/alexander255/followers","following_url":"https://api.github.com/users/alexander255/following{/other_user}","gists_url":"https://api.github.com/users/alexander255/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander255/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander255/subscriptions","organizations_url":"https://api.github.com/users/alexander255/orgs","repos_url":"https://api.github.com/users/alexander255/repos","events_url":"https://api.github.com/users/alexander255/events{/privacy}","received_events_url":"https://api.github.com/users/alexander255/received_events","type":"User","site_admin":false},"body":"I did not write this code and took a patch for this from https://github.com/linvinus/htop-mod. Please tell me about any improvements required.\r\n\r\nWhile I can attest PSS to be a big improvement over RSS, there are some pain points about this:\r\n\r\n  * `/proc/<pid>/smaps` is only readable by the (effective?) user of the given user. Since PSS calculation requires all memory mapping tables to be available for accurate calculation, this makes the PSS value somewhat useless `htop` runs as root. :slightly_frowning_face: \r\n  * Crunching the `smaps` data noticeably slows down `htop` – far from unusable, but slower\r\n\r\nOriginal code was written by *Craig M. Brandenburg* for htop 1.0.2\r\nMany performance improvements by GitHub user *linvinus*, ported to htop 2.0.2","created_at":"2018-10-09T20:10:36Z","updated_at":"2018-10-09T20:10:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hishamhm/htop/pulls/843/commits","review_comments_url":"https://api.github.com/repos/hishamhm/htop/pulls/843/comments","review_comment_url":"https://api.github.com/repos/hishamhm/htop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hishamhm/htop/issues/843/comments","statuses_url":"https://api.github.com/repos/hishamhm/htop/statuses/793c4e40fc5e7bbefbe4fa1dc728045173b8a999","head":{"label":"alexander255:master","ref":"master","sha":"793c4e40fc5e7bbefbe4fa1dc728045173b8a999","user":{"login":"alexander255","id":246386,"node_id":"MDQ6VXNlcjI0NjM4Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/246386?v=4","gravatar_id":"","url":"https://api.github.com/users/alexander255","html_url":"https://github.com/alexander255","followers_url":"https://api.github.com/users/alexander255/followers","following_url":"https://api.github.com/users/alexander255/following{/other_user}","gists_url":"https://api.github.com/users/alexander255/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander255/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander255/subscriptions","organizations_url":"https://api.github.com/users/alexander255/orgs","repos_url":"https://api.github.com/users/alexander255/repos","events_url":"https://api.github.com/users/alexander255/events{/privacy}","received_events_url":"https://api.github.com/users/alexander255/received_events","type":"User","site_admin":false},"repo":{"id":152311425,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzMTE0MjU=","name":"htop","full_name":"alexander255/htop","private":false,"owner":{"login":"alexander255","id":246386,"node_id":"MDQ6VXNlcjI0NjM4Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/246386?v=4","gravatar_id":"","url":"https://api.github.com/users/alexander255","html_url":"https://github.com/alexander255","followers_url":"https://api.github.com/users/alexander255/followers","following_url":"https://api.github.com/users/alexander255/following{/other_user}","gists_url":"https://api.github.com/users/alexander255/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander255/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander255/subscriptions","organizations_url":"https://api.github.com/users/alexander255/orgs","repos_url":"https://api.github.com/users/alexander255/repos","events_url":"https://api.github.com/users/alexander255/events{/privacy}","received_events_url":"https://api.github.com/users/alexander255/received_events","type":"User","site_admin":false},"html_url":"https://github.com/alexander255/htop","description":"htop is an interactive text-mode process viewer for Unix systems. It aims to be a better 'top'.","fork":true,"url":"https://api.github.com/repos/alexander255/htop","forks_url":"https://api.github.com/repos/alexander255/htop/forks","keys_url":"https://api.github.com/repos/alexander255/htop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexander255/htop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexander255/htop/teams","hooks_url":"https://api.github.com/repos/alexander255/htop/hooks","issue_events_url":"https://api.github.com/repos/alexander255/htop/issues/events{/number}","events_url":"https://api.github.com/repos/alexander255/htop/events","assignees_url":"https://api.github.com/repos/alexander255/htop/assignees{/user}","branches_url":"https://api.github.com/repos/alexander255/htop/branches{/branch}","tags_url":"https://api.github.com/repos/alexander255/htop/tags","blobs_url":"https://api.github.com/repos/alexander255/htop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexander255/htop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexander255/htop/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexander255/htop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexander255/htop/statuses/{sha}","languages_url":"https://api.github.com/repos/alexander255/htop/languages","stargazers_url":"https://api.github.com/repos/alexander255/htop/stargazers","contributors_url":"https://api.github.com/repos/alexander255/htop/contributors","subscribers_url":"https://api.github.com/repos/alexander255/htop/subscribers","subscription_url":"https://api.github.com/repos/alexander255/htop/subscription","commits_url":"https://api.github.com/repos/alexander255/htop/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexander255/htop/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexander255/htop/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexander255/htop/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexander255/htop/contents/{+path}","compare_url":"https://api.github.com/repos/alexander255/htop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexander255/htop/merges","archive_url":"https://api.github.com/repos/alexander255/htop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexander255/htop/downloads","issues_url":"https://api.github.com/repos/alexander255/htop/issues{/number}","pulls_url":"https://api.github.com/repos/alexander255/htop/pulls{/number}","milestones_url":"https://api.github.com/repos/alexander255/htop/milestones{/number}","notifications_url":"https://api.github.com/repos/alexander255/htop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexander255/htop/labels{/name}","releases_url":"https://api.github.com/repos/alexander255/htop/releases{/id}","deployments_url":"https://api.github.com/repos/alexander255/htop/deployments","created_at":"2018-10-09T19:46:25Z","updated_at":"2018-10-09T19:56:43Z","pushed_at":"2018-10-09T19:56:41Z","git_url":"git://github.com/alexander255/htop.git","ssh_url":"git@github.com:alexander255/htop.git","clone_url":"https://github.com/alexander255/htop.git","svn_url":"https://github.com/alexander255/htop","homepage":"","size":2624,"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,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hishamhm:master","ref":"master","sha":"67e368914a1b03cbf18c4c7b678f424f5e18ad2e","user":{"login":"hishamhm","id":245621,"node_id":"MDQ6VXNlcjI0NTYyMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/245621?v=4","gravatar_id":"","url":"https://api.github.com/users/hishamhm","html_url":"https://github.com/hishamhm","followers_url":"https://api.github.com/users/hishamhm/followers","following_url":"https://api.github.com/users/hishamhm/following{/other_user}","gists_url":"https://api.github.com/users/hishamhm/gists{/gist_id}","starred_url":"https://api.github.com/users/hishamhm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hishamhm/subscriptions","organizations_url":"https://api.github.com/users/hishamhm/orgs","repos_url":"https://api.github.com/users/hishamhm/repos","events_url":"https://api.github.com/users/hishamhm/events{/privacy}","received_events_url":"https://api.github.com/users/hishamhm/received_events","type":"User","site_admin":false},"repo":{"id":15884926,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg4NDkyNg==","name":"htop","full_name":"hishamhm/htop","private":false,"owner":{"login":"hishamhm","id":245621,"node_id":"MDQ6VXNlcjI0NTYyMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/245621?v=4","gravatar_id":"","url":"https://api.github.com/users/hishamhm","html_url":"https://github.com/hishamhm","followers_url":"https://api.github.com/users/hishamhm/followers","following_url":"https://api.github.com/users/hishamhm/following{/other_user}","gists_url":"https://api.github.com/users/hishamhm/gists{/gist_id}","starred_url":"https://api.github.com/users/hishamhm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hishamhm/subscriptions","organizations_url":"https://api.github.com/users/hishamhm/orgs","repos_url":"https://api.github.com/users/hishamhm/repos","events_url":"https://api.github.com/users/hishamhm/events{/privacy}","received_events_url":"https://api.github.com/users/hishamhm/received_events","type":"User","site_admin":false},"html_url":"https://github.com/hishamhm/htop","description":"htop is an interactive text-mode process viewer for Unix systems. It aims to be a better 'top'.","fork":false,"url":"https://api.github.com/repos/hishamhm/htop","forks_url":"https://api.github.com/repos/hishamhm/htop/forks","keys_url":"https://api.github.com/repos/hishamhm/htop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hishamhm/htop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hishamhm/htop/teams","hooks_url":"https://api.github.com/repos/hishamhm/htop/hooks","issue_events_url":"https://api.github.com/repos/hishamhm/htop/issues/events{/number}","events_url":"https://api.github.com/repos/hishamhm/htop/events","assignees_url":"https://api.github.com/repos/hishamhm/htop/assignees{/user}","branches_url":"https://api.github.com/repos/hishamhm/htop/branches{/branch}","tags_url":"https://api.github.com/repos/hishamhm/htop/tags","blobs_url":"https://api.github.com/repos/hishamhm/htop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hishamhm/htop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hishamhm/htop/git/refs{/sha}","trees_url":"https://api.github.com/repos/hishamhm/htop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hishamhm/htop/statuses/{sha}","languages_url":"https://api.github.com/repos/hishamhm/htop/languages","stargazers_url":"https://api.github.com/repos/hishamhm/htop/stargazers","contributors_url":"https://api.github.com/repos/hishamhm/htop/contributors","subscribers_url":"https://api.github.com/repos/hishamhm/htop/subscribers","subscription_url":"https://api.github.com/repos/hishamhm/htop/subscription","commits_url":"https://api.github.com/repos/hishamhm/htop/commits{/sha}","git_commits_url":"https://api.github.com/repos/hishamhm/htop/git/commits{/sha}","comments_url":"https://api.github.com/repos/hishamhm/htop/comments{/number}","issue_comment_url":"https://api.github.com/repos/hishamhm/htop/issues/comments{/number}","contents_url":"https://api.github.com/repos/hishamhm/htop/contents/{+path}","compare_url":"https://api.github.com/repos/hishamhm/htop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hishamhm/htop/merges","archive_url":"https://api.github.com/repos/hishamhm/htop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hishamhm/htop/downloads","issues_url":"https://api.github.com/repos/hishamhm/htop/issues{/number}","pulls_url":"https://api.github.com/repos/hishamhm/htop/pulls{/number}","milestones_url":"https://api.github.com/repos/hishamhm/htop/milestones{/number}","notifications_url":"https://api.github.com/repos/hishamhm/htop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hishamhm/htop/labels{/name}","releases_url":"https://api.github.com/repos/hishamhm/htop/releases{/id}","deployments_url":"https://api.github.com/repos/hishamhm/htop/deployments","created_at":"2014-01-13T22:58:20Z","updated_at":"2018-10-09T18:25:49Z","pushed_at":"2018-10-07T09:20:17Z","git_url":"git://github.com/hishamhm/htop.git","ssh_url":"git@github.com:hishamhm/htop.git","clone_url":"https://github.com/hishamhm/htop.git","svn_url":"https://github.com/hishamhm/htop","homepage":"","size":2624,"stargazers_count":3526,"watchers_count":3526,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":399,"mirror_url":null,"archived":false,"open_issues_count":175,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":399,"open_issues":175,"watchers":3526,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hishamhm/htop/pulls/843"},"html":{"href":"https://github.com/hishamhm/htop/pull/843"},"issue":{"href":"https://api.github.com/repos/hishamhm/htop/issues/843"},"comments":{"href":"https://api.github.com/repos/hishamhm/htop/issues/843/comments"},"review_comments":{"href":"https://api.github.com/repos/hishamhm/htop/pulls/843/comments"},"review_comment":{"href":"https://api.github.com/repos/hishamhm/htop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hishamhm/htop/pulls/843/commits"},"statuses":{"href":"https://api.github.com/repos/hishamhm/htop/statuses/793c4e40fc5e7bbefbe4fa1dc728045173b8a999"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":93,"deletions":3,"changed_files":4}}
{"actor":{"display_login":"alexander255"}}