Page 1 of 2

LS 4.1 too much CPU in the background

Posted: Sat Jun 16, 2018 2:44 pm
by Hindemith
I love LS – one of the Must-have apps for Mac Pros in my opinion. I bought it years ago and always upgraded it.

I have one major issue with the recent version 4.1: "Little Snitch Netzwerkmonitor" uses too much CPU in the background (2,5-3,5%) continuously without the LS monitor map, any other window or app open! How can we lower that back to under 1% ?

MacBookPro 2017, High Sierra

Re: LS 4.1 too much CPU in the background

Posted: Sat Jun 16, 2018 11:10 pm
by LLCoolJ94
What is the function of Little Snitch Netzwekmonitor?

Re: LS 4.1 too much CPU in the background

Posted: Sun Jun 17, 2018 10:58 am
by krystof
Hello, I have exactly the same issue with version 4.1 (5167) ... On 15" 2013 MBP Little Snitch Network Monitor uses 6-10% of CPU time constantly. In 4 days of uptime it consumed more than 3 hours of CPU time (see screenshot of Activity Monitor below). Maybe it is related to these issue threads? viewtopic.php?t=10731 and viewtopic.php?f=1&t=11063

Image

Re: LS 4.1 too much CPU in the background

Posted: Tue Jun 19, 2018 7:47 am
by amfractal
I have a similar issue after upgrade to 4.1 on High Sierra. I constantly get 5-6% cpu usage where as before it was never noticeable.

Re: LS 4.1 too much CPU in the background

Posted: Tue Jun 19, 2018 10:53 am
by christian
ACK, I can reproduce this. Strange, though, because we did not change anything in the code responsible for this. A spindump reveals nothing unusual, so we'll have to dig deeper...

Re: LS 4.1 too much CPU in the background

Posted: Tue Jun 19, 2018 9:52 pm
by swaroop
I am facing this since a week on 10.12.6. A reboot fixes it but it keeps happening.

Image

Re: LS 4.1 too much CPU in the background

Posted: Tue Jun 19, 2018 10:19 pm
by christian
This is a different issue. You are primarily seeing a high CPU load on Little Snitch Daemon, probably due to a high rate of DNS lookups. Optimizing this part of the code is on our to-do list.

Re: LS 4.1 too much CPU in the background

Posted: Wed Jun 20, 2018 4:40 am
by swaroop
christian wrote:This is a different issue. You are primarily seeing a high CPU load on Little Snitch Daemon, probably due to a high rate of DNS lookups. Optimizing this part of the code is on our to-do list.


My bad, I did see it with network monitor first (manual quit fixes it) but I guess the screenshot was of the daemon :roll:

On that note, I think I may have found out a custom work script that was causing the DNS lookups and that seems to have calmed the daemon!

Re: LS 4.1 too much CPU in the background

Posted: Wed Jun 20, 2018 2:16 pm
by jony
Hi,

I have the same experience, CPU for 'Little Snitch Network Monitor' is higher than before, seems to be there since 4.1.
iStat Menu's displays the CPU load in the menu bar. Before little snitch was generally below 1%, now pretty much continuously between 10-14%.

MacBook (Retina, 12-inch, Early 2015)
MacOS 10.13.5

Would be great if this is solved in the next release.

Jony

Re: LS 4.1 too much CPU in the background

Posted: Thu Jun 21, 2018 9:42 am
by jony
I've installed version 4.1.1 nightly (5169) and CPU load of 'Little Snitch Network Monitor' is down from 10-14% to 1-8% It dropped quite a bit but pretty sure it's still higher than the version prior to 4.1.

What surprises me is when I stop filtering, the 'Little Snitch Network Monitor' process pretty much keeps the same CPU load.

Re: LS 4.1 too much CPU in the background

Posted: Thu Jun 21, 2018 10:06 am
by christian
The 4.1.1 nightly does not address this issue. We have not found out what causes the increased CPU load since the code involved was not changed since 4.0.6. It must be a side-effect of an other change.

Network Monitor receives notifications about all connections regardless of the filter state. Even if the filter is off, Network Monitor presents a live view of all connections. There's just no filtering.

Re: LS 4.1 too much CPU in the background

Posted: Sat Jun 23, 2018 4:20 am
by Tibb
christian wrote:The 4.1.1 nightly does not address this issue. We have not found out what causes the increased CPU load since the code involved was not changed since 4.0.6. It must be a side-effect of an other change.

Network Monitor receives notifications about all connections regardless of the filter state. Even if the filter is off, Network Monitor presents a live view of all connections. There's just no filtering.


How about making the previous version available to download? That would work. I had to remove the whole app from my mac because that's the only way to disable it.

I should be pretty easy to find out what's causing it (Xcode / Profile / CPU)

Re: LS 4.1 too much CPU in the background

Posted: Sat Jun 23, 2018 11:31 am
by christian
If you contact us in support, we can make 4.0.6 available for you. We want to have everybody on the latest version because each release fixes bugs, some of them are vulnerabilities. E.g. 4.1 fixes CVE-2018-10470.

Xcode / Profile / CPU does not help in this case as the time is spent in the kernel module. I can debug it with `spindump`, but all the code showing up there has not been changed for years and is completely reasonable. It must be a weird side effect of an other change. And THAT's hard to track down.

Re: LS 4.1 too much CPU in the background

Posted: Sat Jun 23, 2018 5:27 pm
by Kelson
Hi Christian, so I guess we should wait for the new version and see if this is fixed, right?

Re: LS 4.1 too much CPU in the background

Posted: Sat Jun 23, 2018 6:20 pm
by christian
We are talking about an increase of CPU load from below 1% (as far as I remember and people reported) to 3 to 5% on one CPU (out of 4). I have not noticed this on my machine until somebody pointed us to it. If you want to wait, OK, but I think it's not such a big deal.

If it's more than the 3 to 5% (when all windows are closed), there is a different problem which we should investigate separately.