{"action":"created","issue":{"url":"https://api.github.com/repos/zfsonlinux/spl/issues/460","labels_url":"https://api.github.com/repos/zfsonlinux/spl/issues/460/labels{/name}","comments_url":"https://api.github.com/repos/zfsonlinux/spl/issues/460/comments","events_url":"https://api.github.com/repos/zfsonlinux/spl/issues/460/events","html_url":"https://github.com/zfsonlinux/spl/pull/460","id":92425283,"number":460,"title":"Add a script to display SPL slab cache statistics","user":{"login":"bprotopopov","id":2488505,"avatar_url":"https://avatars.githubusercontent.com/u/2488505?v=3","gravatar_id":"","url":"https://api.github.com/users/bprotopopov","html_url":"https://github.com/bprotopopov","followers_url":"https://api.github.com/users/bprotopopov/followers","following_url":"https://api.github.com/users/bprotopopov/following{/other_user}","gists_url":"https://api.github.com/users/bprotopopov/gists{/gist_id}","starred_url":"https://api.github.com/users/bprotopopov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bprotopopov/subscriptions","organizations_url":"https://api.github.com/users/bprotopopov/orgs","repos_url":"https://api.github.com/users/bprotopopov/repos","events_url":"https://api.github.com/users/bprotopopov/events{/privacy}","received_events_url":"https://api.github.com/users/bprotopopov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-01T16:19:50Z","updated_at":"2015-12-02T22:13:34Z","closed_at":"2015-12-02T22:13:31Z","pull_request":{"url":"https://api.github.com/repos/zfsonlinux/spl/pulls/460","html_url":"https://github.com/zfsonlinux/spl/pull/460","diff_url":"https://github.com/zfsonlinux/spl/pull/460.diff","patch_url":"https://github.com/zfsonlinux/spl/pull/460.patch"},"body":"I thought this might be useful when looking for the info on ZFS/SPL related memory consumption in Linux. The sources I have consulted included:\r\n- /proc/meminfo (there is a number of commands that interpret and display this info already)\r\n- /proc/slabinfo (there is a nice slabtop command to display this)\r\n- /proc/spl/kmem/slab (I did not know of a way to show this into in a convenient way)\r\n\r\nI was thinking of using python curses to present the output in a way slabtop does it, but did not have time as of yet. Also, I am currently showing a subset of the info from the /proc/spl/kmem/slab. Room for improvement :)\r\n"},"comment":{"url":"https://api.github.com/repos/zfsonlinux/spl/issues/comments/161450728","html_url":"https://github.com/zfsonlinux/spl/pull/460#issuecomment-161450728","issue_url":"https://api.github.com/repos/zfsonlinux/spl/issues/460","id":161450728,"user":{"login":"behlendorf","id":148917,"avatar_url":"https://avatars.githubusercontent.com/u/148917?v=3","gravatar_id":"","url":"https://api.github.com/users/behlendorf","html_url":"https://github.com/behlendorf","followers_url":"https://api.github.com/users/behlendorf/followers","following_url":"https://api.github.com/users/behlendorf/following{/other_user}","gists_url":"https://api.github.com/users/behlendorf/gists{/gist_id}","starred_url":"https://api.github.com/users/behlendorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behlendorf/subscriptions","organizations_url":"https://api.github.com/users/behlendorf/orgs","repos_url":"https://api.github.com/users/behlendorf/repos","events_url":"https://api.github.com/users/behlendorf/events{/privacy}","received_events_url":"https://api.github.com/users/behlendorf/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T22:13:34Z","updated_at":"2015-12-02T22:13:34Z","body":"Definitely useful and something we can build on, thanks for opening the pull request.  I didn't run in to any problems when testing the script so I've merged it.  Thanks for remembering to add it to the packaging!\r\n\r\n5578f58 Add a script to display SPL slab cache statistics\r\n"}}