-
-
Notifications
You must be signed in to change notification settings - Fork 316
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
Portmaster uses too much cpu #1362
Comments
Greetings and welcome to our community! As this is the first issue you opened here, we wanted to share some useful infos with you:
|
Pleas provide additional CPU usage information https://wiki.safing.io/en/Portmaster/Troubleshoot#high-cpu-usage Note: |
Hey @Cris70, thank you for raising this issue with us. After a first review we noticed that we will require the Debug Info for further investigation. However, you haven't supplied any Debug Info in your report. Please collect Debug Info from Portmaster while the reported issue is present. |
Here it comes. |
Here it is (BTW, it was already present in my first post): Version 1.5.1
Platform: opensuse-tumbleweed
No Module ErrorUnexpected Logs
Status: Trusted
SPN: disabled (module disabled)
Resolvers: 4/4
Config: 4
Updates: stable (13/27)
Compatibility: IPTables Chains (41)
Goroutine Stack
|
The CPU load comes from lots of UDP connections. Please update your systemd service file and be sure Portmaster can execute eBPF modules (https://en.wikipedia.org/wiki/EBPF). You should not have these logs lines:
|
Thank you @dhaavi, I will change the service file and I'll monitor the behavior of Portmaster, then I will report back. BTW, I believe the service file (as it was previously) was created by your installer... if you later changed the service file, you should have updated the service file in my installation too, don't you think? p.s. One more thing: I am monitoring my UDP connections... I see about 15/20 udp connections at every time, 90% of them connecting to addresses of the 1e100.net domain (which is Google), coming from Wavebox (which is based on Chrome/Chromium). Is this the kind of numbers you're referring to when you say "lots of UDP connections"? Just curious. |
Great! Yes, the installer places our service file, but Portmaster will also upgrade it when it detects a previous version of our file. Did you maybe change it? (We compare with checksums.) 15/20 UDP connections is very little, so this is weird. Is this from Portmaster or somewhere else? PS: I often only read issue updates in the emails, so I usually won't see any edits. |
Not that I know of (at least not before you suggested to change it).
No, I checked it with netstat ( One thing that I noticed makes Portmaster use really a lot of CPU is using nmap to probe open ports of a remote server. Hope this helps |
portmaster-cpu-profile_v1.6.2.zip |
Fixed by deleting the cached database file and restarting portmaster services. |
This issue has been automatically marked as inactive because it has not had activity in the past two months. If no further activity occurs, this issue will be automatically closed in one week in order to increase our focus on active topics. |
This issue has been automatically closed because it has not had recent activity. Thank you for your contributions. If the issue has not been resolved, you can find more information in our Wiki or continue the conversation on our Discord. |
What happened:
Portmaster is using too much CPU
What did you expect to happen?:
Portmaster usage should be mostly unnoticeable from the point of view of cpu consumption
How did you reproduce it?:
I often have to stop portmaster due to another bug (compatibility issue with Wireguard). When it stop, it reports CPU usage, which is always way too high. See figures below... 35 minutes of cpu usage in an uptime of 1 hour and 35 minutes is really too much.
Debug Information:
Version 1.5.1
Platform: opensuse-tumbleweed
No Module Error
Unexpected Logs
Status: Trusted
SPN: disabled (module disabled)
Resolvers: 4/6
Config: 3
Updates: stable (13/27)
Compatibility: IPTables Chains (41)
Goroutine Stack
The text was updated successfully, but these errors were encountered: