atareao / wireguard-indicator

An Indicator for WireGuard
MIT License
172 stars 23 forks source link

Micro freezes/stutters at every check time with large amount of tunnels #34

Open TSLETSGO opened 2 years ago

TSLETSGO commented 2 years ago

I have 20 wireguard tunnels through nmcli that I can enable/disable at will.

I have observed that everytime the "check time" (default 5 seconds) triggers, it micro-freezes gnome (hangs for like 0.1 seconds) which is very annoying when check time is set to 5 seconds.

Increasing "check time" to max value makes it less of a problem/annoyance (note: this changes how often the plugin checks for tunnels being activated outside of the plugin itself, not ideal but if the plugin is the only thing you use for starting/stopping the tunnels, then it shouldn't too much of a problem).

Thought I should just mention it here in case anyone else stumbles upon the same issue.

gadicc commented 2 years ago

I noticed this with just 2 tunnels, but the issue only occurs after going into the wireguard-indicator settings. Even if I disable the extension afterwards, the phenomenon continues... until I restart GNOME. When I tried to change the check time, my system froze entirely. Will investigate further when I have a chance but also thought I should mention it...

loadedvegangoat commented 2 years ago

I've noticed the same thing as well. Came to the issues section to see if anyone else was experiencing this. I've import my wireguard configs through nmcli and have 15 connections. Noticed right away that everything stutters with the checks.