{"action":"created","issue":{"url":"https://api.github.com/repos/giampaolo/psutil/issues/1352","repository_url":"https://api.github.com/repos/giampaolo/psutil","labels_url":"https://api.github.com/repos/giampaolo/psutil/issues/1352/labels{/name}","comments_url":"https://api.github.com/repos/giampaolo/psutil/issues/1352/comments","events_url":"https://api.github.com/repos/giampaolo/psutil/issues/1352/events","html_url":"https://github.com/giampaolo/psutil/issues/1352","id":372215226,"node_id":"MDU6SXNzdWUzNzIyMTUyMjY=","number":1352,"title":"Get CPU frequency on FreeBSD ","user":{"login":"giampaolo","id":681260,"node_id":"MDQ6VXNlcjY4MTI2MA==","avatar_url":"https://avatars2.githubusercontent.com/u/681260?v=4","gravatar_id":"","url":"https://api.github.com/users/giampaolo","html_url":"https://github.com/giampaolo","followers_url":"https://api.github.com/users/giampaolo/followers","following_url":"https://api.github.com/users/giampaolo/following{/other_user}","gists_url":"https://api.github.com/users/giampaolo/gists{/gist_id}","starred_url":"https://api.github.com/users/giampaolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giampaolo/subscriptions","organizations_url":"https://api.github.com/users/giampaolo/orgs","repos_url":"https://api.github.com/users/giampaolo/repos","events_url":"https://api.github.com/users/giampaolo/events{/privacy}","received_events_url":"https://api.github.com/users/giampaolo/received_events","type":"User","site_admin":false},"labels":[{"id":101780110,"node_id":"MDU6TGFiZWwxMDE3ODAxMTA=","url":"https://api.github.com/repos/giampaolo/psutil/labels/OpSys-FreeBSD","name":"OpSys-FreeBSD","color":"c5def5","default":false},{"id":101777533,"node_id":"MDU6TGFiZWwxMDE3Nzc1MzM=","url":"https://api.github.com/repos/giampaolo/psutil/labels/enhancement","name":"enhancement","color":"009800","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-20T14:06:58Z","updated_at":"2018-11-03T17:51:45Z","closed_at":null,"author_association":"OWNER","body":"It appears it's possible:\r\n- https://github.com/netdata/netdata/blob/545d07eb78222a80124e9187e88921013ee403ea/collectors/freebsd.plugin/freebsd_sysctl.c#L538\r\n- https://lists.freebsd.org/pipermail/freebsd-stable/2015-March/082042.html\r\n\r\nOn my virtualized FreeBSD 11 box though it appears the frequency metrics are not available:\r\n\r\n```\r\nvagrant@freebsd11~$  sysctl dev.cpu\r\ndev.cpu.1.cx_method: C1/hlt\r\ndev.cpu.1.cx_usage_counters: 9540\r\ndev.cpu.1.cx_usage: 100.00% last 33074us\r\ndev.cpu.1.cx_lowest: C2\r\ndev.cpu.1.cx_supported: C1/1/0\r\ndev.cpu.1.%parent: acpi0\r\ndev.cpu.1.%pnpinfo: _HID=none _UID=0\r\ndev.cpu.1.%location: handle=\\_PR_.CPU1\r\ndev.cpu.1.%driver: cpu\r\ndev.cpu.1.%desc: ACPI CPU\r\ndev.cpu.0.cx_method: C1/hlt\r\ndev.cpu.0.cx_usage_counters: 17748\r\ndev.cpu.0.cx_usage: 100.00% last 17867us\r\ndev.cpu.0.cx_lowest: C2\r\ndev.cpu.0.cx_supported: C1/1/0\r\ndev.cpu.0.%parent: acpi0\r\ndev.cpu.0.%pnpinfo: _HID=none _UID=0\r\ndev.cpu.0.%location: handle=\\_PR_.CPU0\r\ndev.cpu.0.%driver: cpu\r\ndev.cpu.0.%desc: ACPI CPU\r\ndev.cpu.%parent: \r\n```\r\n\r\nNot sure if I have to enable them similarly to CPU temperatures (https://www.cyberciti.biz/faq/freebsd-determine-processor-cpu-temperature-command/). @glebius, @sunpoet, @kostikbel  any idea? I'm also CC-ing @amanusk in case you want to give this a try."},"comment":{"url":"https://api.github.com/repos/giampaolo/psutil/issues/comments/435607608","html_url":"https://github.com/giampaolo/psutil/issues/1352#issuecomment-435607608","issue_url":"https://api.github.com/repos/giampaolo/psutil/issues/1352","id":435607608,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTYwNzYwOA==","user":{"login":"giampaolo","id":681260,"node_id":"MDQ6VXNlcjY4MTI2MA==","avatar_url":"https://avatars2.githubusercontent.com/u/681260?v=4","gravatar_id":"","url":"https://api.github.com/users/giampaolo","html_url":"https://github.com/giampaolo","followers_url":"https://api.github.com/users/giampaolo/followers","following_url":"https://api.github.com/users/giampaolo/following{/other_user}","gists_url":"https://api.github.com/users/giampaolo/gists{/gist_id}","starred_url":"https://api.github.com/users/giampaolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giampaolo/subscriptions","organizations_url":"https://api.github.com/users/giampaolo/orgs","repos_url":"https://api.github.com/users/giampaolo/repos","events_url":"https://api.github.com/users/giampaolo/events{/privacy}","received_events_url":"https://api.github.com/users/giampaolo/received_events","type":"User","site_admin":false},"created_at":"2018-11-03T17:51:45Z","updated_at":"2018-11-03T17:51:45Z","author_association":"OWNER","body":"Nice. How do you enable it?"}}
{"actor":{"display_login":"giampaolo"}}