{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxcfs/issues/13","repository_url":"https://api.github.com/repos/lxc/lxcfs","labels_url":"https://api.github.com/repos/lxc/lxcfs/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxcfs/issues/13/comments","events_url":"https://api.github.com/repos/lxc/lxcfs/issues/13/events","html_url":"https://github.com/lxc/lxcfs/issues/13","id":58388325,"node_id":"MDU6SXNzdWU1ODM4ODMyNQ==","number":13,"title":"loadavg and swap","user":{"login":"devonblzx","id":8078969,"node_id":"MDQ6VXNlcjgwNzg5Njk=","avatar_url":"https://avatars1.githubusercontent.com/u/8078969?v=4","gravatar_id":"","url":"https://api.github.com/users/devonblzx","html_url":"https://github.com/devonblzx","followers_url":"https://api.github.com/users/devonblzx/followers","following_url":"https://api.github.com/users/devonblzx/following{/other_user}","gists_url":"https://api.github.com/users/devonblzx/gists{/gist_id}","starred_url":"https://api.github.com/users/devonblzx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devonblzx/subscriptions","organizations_url":"https://api.github.com/users/devonblzx/orgs","repos_url":"https://api.github.com/users/devonblzx/repos","events_url":"https://api.github.com/users/devonblzx/events{/privacy}","received_events_url":"https://api.github.com/users/devonblzx/received_events","type":"User","site_admin":false},"labels":[{"id":156837723,"node_id":"MDU6TGFiZWwxNTY4Mzc3MjM=","url":"https://api.github.com/repos/lxc/lxcfs/labels/Feature","name":"Feature","color":"84b6eb","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":55,"created_at":"2015-02-20T18:01:25Z","updated_at":"2018-09-30T20:58:25Z","closed_at":"2018-06-11T10:39:45Z","author_association":"NONE","body":"Two additional files that should be considered for lxcfs:\n\n/proc/loadavg\n/proc/swaps\n\nBoth should be relatively easy to generate using cgroups and the existing information in lxcfs.\n# cat /proc/loadavg\n\n0.00 0.01 0.05 1/273 16306\n\nloadavg consists of 1 minute average, 5 minute average, 10 minute average, running processes / total processes, last PID running\n\nMy idea was to poll the system every second and keep a database of the last 600 polls (10 minutes) consisting of the number of running processes.  This would allow you to generate averages as needed.\n# cat /proc/swaps\n\nFilename                                Type            Size    Used    Priority\n/dev/sdb1                               partition       12582908        49188   -1\n\nI'd assume you can generate a fake partition entry with integer values from cgroup/memory.\n\nThe size would be:\n(memory.memsw.limit_in_bytes - memory.limit_in_bytes) / 1024\n\nThe usage can be derived from the 'swap' row in memory.stat divided by 1024 (since /proc/swaps reports in KB)\n\nI'm not a C programmer so I can't assist with the code, but I'd be happy to help in ways that I can.\n"},"comment":{"url":"https://api.github.com/repos/lxc/lxcfs/issues/comments/425751557","html_url":"https://github.com/lxc/lxcfs/issues/13#issuecomment-425751557","issue_url":"https://api.github.com/repos/lxc/lxcfs/issues/13","id":425751557,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTc1MTU1Nw==","user":{"login":"zerkms","id":302295,"node_id":"MDQ6VXNlcjMwMjI5NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/302295?v=4","gravatar_id":"","url":"https://api.github.com/users/zerkms","html_url":"https://github.com/zerkms","followers_url":"https://api.github.com/users/zerkms/followers","following_url":"https://api.github.com/users/zerkms/following{/other_user}","gists_url":"https://api.github.com/users/zerkms/gists{/gist_id}","starred_url":"https://api.github.com/users/zerkms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerkms/subscriptions","organizations_url":"https://api.github.com/users/zerkms/orgs","repos_url":"https://api.github.com/users/zerkms/repos","events_url":"https://api.github.com/users/zerkms/events{/privacy}","received_events_url":"https://api.github.com/users/zerkms/received_events","type":"User","site_admin":false},"created_at":"2018-09-30T20:58:25Z","updated_at":"2018-09-30T20:58:25Z","author_association":"NONE","body":"> Perhaps I'm mistaken that it should work automatically.\r\n\r\nThat phrase means lxc supports systemd-based containers starting v1.1"}}
{"actor":{"display_login":"zerkms"}}