LS 4.1 too much CPU in the background

General discussions about Little Snitch
Hindemith
Posts: 5
Joined: Mon Jan 26, 2009 5:58 pm

LS 4.1 too much CPU in the background

Post by Hindemith » Sat Jun 16, 2018 2:44 pm

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

LLCoolJ94
Posts: 7
Joined: Thu Mar 29, 2018 10:53 pm

Re: LS 4.1 too much CPU in the background

Post by LLCoolJ94 » Sat Jun 16, 2018 11:10 pm

What is the function of Little Snitch Netzwekmonitor?

krystof
Posts: 2
Joined: Sun Jun 17, 2018 10:48 am

Re: LS 4.1 too much CPU in the background

Post by krystof » Sun Jun 17, 2018 10:58 am

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

amfractal
Posts: 1
Joined: Tue Jun 19, 2018 7:45 am

Re: LS 4.1 too much CPU in the background

Post by amfractal » Tue Jun 19, 2018 7:47 am

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.

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Re: LS 4.1 too much CPU in the background

Post by christian » Tue Jun 19, 2018 10:53 am

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...

swaroop
Posts: 2
Joined: Tue Jun 19, 2018 9:49 pm

Re: LS 4.1 too much CPU in the background

Post by swaroop » Tue Jun 19, 2018 9:52 pm

I am facing this since a week on 10.12.6. A reboot fixes it but it keeps happening.

Image

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Re: LS 4.1 too much CPU in the background

Post by christian » Tue Jun 19, 2018 10:19 pm

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.

swaroop
Posts: 2
Joined: Tue Jun 19, 2018 9:49 pm

Re: LS 4.1 too much CPU in the background

Post by swaroop » Wed Jun 20, 2018 4:40 am

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!

jony
Posts: 5
Joined: Wed Jun 20, 2018 1:51 pm

Re: LS 4.1 too much CPU in the background

Post by jony » Wed Jun 20, 2018 2:16 pm

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

jony
Posts: 5
Joined: Wed Jun 20, 2018 1:51 pm

Re: LS 4.1 too much CPU in the background

Post by jony » Thu Jun 21, 2018 9:42 am

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.

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Re: LS 4.1 too much CPU in the background

Post by christian » Thu Jun 21, 2018 10:06 am

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.

Tibb
Posts: 2
Joined: Fri Jun 22, 2018 2:19 am

Re: LS 4.1 too much CPU in the background

Post by Tibb » Sat Jun 23, 2018 4:20 am

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)

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Re: LS 4.1 too much CPU in the background

Post by christian » Sat Jun 23, 2018 11:31 am

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.

Kelson
Posts: 1
Joined: Sat Jun 16, 2018 1:45 pm

Re: LS 4.1 too much CPU in the background

Post by Kelson » Sat Jun 23, 2018 5:27 pm

Hi Christian, so I guess we should wait for the new version and see if this is fixed, right?

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Re: LS 4.1 too much CPU in the background

Post by christian » Sat Jun 23, 2018 6:20 pm

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.

Post Reply