-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPU usage seems to be not working on OpenBSD 7.0-CURRENT #1239
Comments
CC: @tklauser since you worked on some of this code (relatively) recently |
I don't think the
I will keep digging. |
The problem is in the SMT detection. Either the My money is on the SMT detection algorithm. I'll dig in further. |
With #1244 merged, can we close this? |
Describe the bug
I'm using this library via telegraf, running on OpenBSD. Telegraf is unable to get CPU usage stats from my OpenBSD system. Telegraf calls the library here and the library produces this error here
Digging further, I ran a ktrace(1) and I'm seeing what appears to be syscalls traversing the CPUs and failing on one of them:
I wish I knew more about OpenBSD syscalls to help with this one.
To Reproduce
On an OpenBSD system:
% doas pkg_add telegraf
Then, edit
/etc/telegraf/telegraf.conf
and enable the CPU input plugin:Then start telegraf:
% rcctl start telegraf
and watch
/var/log/daemon
Expected behavior
Accurate CPU stats gathered.
Environment (please complete the following information):
ver
]/etc/os-release
and the result ofuname -a
]sw_vers
anduname -a
freebsd-version -k -r -u
anduname -a
]Additional context
This machine a 4-core Intel system.
[Cross-compiling? Paste the command you are using to cross-compile and the result of the corresponding
go env
]The text was updated successfully, but these errors were encountered: