{"action":"opened","issue":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/7883","repository_url":"https://api.github.com/repos/zfsonlinux/zfs","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/7883/labels{/name}","comments_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/7883/comments","events_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/7883/events","html_url":"https://github.com/zfsonlinux/zfs/issues/7883","id":359018399,"node_id":"MDU6SXNzdWUzNTkwMTgzOTk=","number":7883,"title":"ZFS ARC not accounted in Cached field in /proc/meminfo","user":{"login":"ryao","id":1386373,"node_id":"MDQ6VXNlcjEzODYzNzM=","avatar_url":"https://avatars2.githubusercontent.com/u/1386373?v=4","gravatar_id":"","url":"https://api.github.com/users/ryao","html_url":"https://github.com/ryao","followers_url":"https://api.github.com/users/ryao/followers","following_url":"https://api.github.com/users/ryao/following{/other_user}","gists_url":"https://api.github.com/users/ryao/gists{/gist_id}","starred_url":"https://api.github.com/users/ryao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryao/subscriptions","organizations_url":"https://api.github.com/users/ryao/orgs","repos_url":"https://api.github.com/users/ryao/repos","events_url":"https://api.github.com/users/ryao/events{/privacy}","received_events_url":"https://api.github.com/users/ryao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-11T12:12:23Z","updated_at":"2018-09-11T12:12:23Z","closed_at":null,"author_association":"MEMBER","body":"There is probably an existing issue for this, but I cannot find it (and don't have time for an exhaustive search), so I am opening a new one.\r\n\r\nI noticed today that `vm_node_stat` is exported. This is read in the following stack to set the cached's field in /proc/meminfo:\r\n\r\natomic_long_read\r\nglobal_node_page_state\r\nmeminfo_proc_show\r\n\r\nIf we do atomic updates to vm_node_stat[NR_FILE_PAGES], we should be able to account for ARC in the Cached field in /proc/meminfo. I noticed this on Linux 4.18.0-rc8. I haven't looked at earlier kernels to see the situation there. I don't have time to do anything with this right now, but I wanted to post this here for either my future self or someone else to try using.\r\n\r\nOne more note. We should batch atomic updates to vm_node_stat[NR_FILE_PAGES] so that we don't serialize every single ABD allocation/deallocation with every thing else that touches that."}}
{"actor":{"display_login":"ryao"}}