mihomo: [Bug] CPU usage is high at irregular intervals (heap and profile information has been collected)
Verify steps
- I have read the documentation and understand the meaning of all configuration items I have written, avoiding a large number of seemingly useful options or default values.
- I have not reviewed the documentation and resolve this issue.
- I have not searched the Issue Tracker for the problem I am going to raise.
- I have tested with the latest Alpha branch version, and the issue still persists.
- I have provided server and client configuration files and processes that can reproduce the issue locally, rather than a desensitized complex client configuration file.
- I have provided the simplest configuration that can reproduce the error I reported, rather than relying on remote servers, TUN, graphical client interfaces, or other closed-source software.
- I have provided complete configuration files and logs, rather than providing only parts that I believe are useful due to confidence in my own intelligence.
Operating System
Linux
System Version
immortalWrt 23.05-SNAPSHOT r27694-e540dc745a / LuCI openwrt-23.05 branch git-24.092.44091-d24c2e3
Mihomo Version
Mihomo Meta alpha-fe88f0e linux amd64 with go1.22.2 Wed May 15 07:40:07 UTC 2024 Use tags: with_gvisor
profile.zip heap.zip config.yaml.zip
Configuration File
Please see [config.yaml.zip](https://github.com/MetaCubeX/mihomo/files/15360383/config.yaml.zip)
Description
The issue I’m facing is that mihomo consistently consumes 50% of the processing power of my dual-core, dual-thread (2C/2T) CPU, resulting in an average load of 1.00 across all cores.
Upon restarting mihomo (not killing it, just by API), the CPU usage normalizes to a consistent average load of 0.01 on each core.
Reproduction Steps
Unfortunately, this high CPU utilization problem recurs irregularly over time. Due to its sporadic nature, I regret that I cannot provide specific steps to reproduce it; however, I have activated debug mode and gathered heap and profile data during instances of elevated CPU usage.
Logs
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17
不会搞,我试了多个版本的 mihomo 都有这个问题,发现之前用网线没问题,wifi 就有这个问题,协议是 Hysteria2