-
-
Notifications
You must be signed in to change notification settings - Fork 34
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 utilization close to 100% (single core) #63
Comments
That's quite unfortunate! Does debug log reveal anything useful, such as which detector is seemingly running crazy? (most likely gpg one...). Did you notice if it started since a particular update? |
I can't consistently reproduce it... I enabled the
I started using it not so long ago, maybe a few weeks or two months tops, and this has been happening to me since the beginning, but it was also really inconsistent. This time it happened after I changed some things in my configuration and rebuilt NixOS, so it could be something system-specific. |
OK let me know if you have any findings! For reference I also use it on NixOS using that same module :) |
I just booted my laptop up and my fans weren't spinning down. The logs sadly don't say much...
|
Hmm 🤔 And so if you restart it, then it won't be resource-hungry anymore? It's a bit slow to debug if you can only reproduce it once a month 😅 Interesting that you are not using Would you be interested in running a locally built version, with some extra logs, to try to narrow it down further? For yubikey-touch-detector/detector/hmac.go Line 25 in c90818b
and whether it's not looping here by receiving an infinite amount of events: yubikey-touch-detector/detector/hmac.go Line 37 in c90818b
For yubikey-touch-detector/detector/u2f.go Line 141 in c90818b
|
I will try to make a small systemd service that checks if any process is at 100% for a long time and report it to me with some logs. And keep notice what I have done to reproduce it. I know that it doesn't have to be a yubikey, since I haven't used it once today... I have also enabled u2f to login into gnome using my yubikey, but I never use it for the initial login (because of keyring lock).
Not a big
Sure thing, I can just copy the package definition from nixpkgs and provide a custom package to the service!
I have never programmed go. Maybe I can use the opportunity to get myself into it a bit, but can't promise to have good/valid code 😂 And this isn't really time critical! Thanks for responding so fast! |
Thanks! And don't worry about quality of code, this is all just temporary for debugging anyway, just to understand what's going on. I pushed something on the It might be spammy, but that's okay, the goal is to catch when the app uses 100% cpu, and then to see if it's silent, or if it constantly logs some identical message non-stop, that would be a very good signal for us. |
Thanks a lot for the branch! services = {
yubikey-touch-detector = {
enable = lib.mkDefault true;
verbose = true;
package = pkgs.unstable.yubikey-touch-detector.overrideAttrs (
final: prev: {
src = pkgs.fetchFromGitHub {
owner = "maximbaz";
repo = "yubikey-touch-detector";
rev = "34fff8ba94f6c355f768b2e6ad5e61ac46ebe3a3";
hash = "sha256-3b94Y5WQ7YyyuR/V4/ZR11/4Dv0kTY7wmCRcDR7P0Pc=";
};
vendorHash = "sha256-x8Fmhsk6MtgAtLxgH/V3KusM0BXAOaSU+2HULR5boJQ=";
}
);
};
}; |
I recently noticed my framework laptop started kicking the fan on. I was wondering why that is, and it seems like that the touch detector is a bit resource hungry from time to time. It doesn't happen all the time, but sometimes I get the following utilization:
I am curious on why this is happening? Am I the only one experiencing this?
This is happening while using NixOS, and the service is started according to this configuration.
The text was updated successfully, but these errors were encountered: