AdguardForMac icon indicating copy to clipboard operation
AdguardForMac copied to clipboard

netbiosd (process) starts using a lot of CPU when pausing AdGuard

Open dave-holland opened this issue 4 years ago • 8 comments

Steps to reproduce

  1. Pause AdGuard

Expected behavior

netbiosd should not start to consume a lot of CPU.

Actual behavior

netbiosd starts to consume a lot of CPU.

Screenshot:

(https://user-images.githubusercontent.com/90854657/133640511-29916f36-a2c7-4187-b56c-cd385a9c1b6f.mov)

(https://user-images.githubusercontent.com/90854657/133640564-d9ec05ec-e394-4f0c-96a4-a6341e63851c.mov)

You can see from the screen recording that the % CPU of netbiosd was about 0 before I pause AdGuard. Then exactly when AdGuard is paused, the % CPU jumps up. Enabling AdGuard again doesn't make it go down. Killing the netbiosd process doesn't work.

Customer ID

The Support Request ticket number is 537027.

Your environment

  • Environment name and version:
    • macOS 12 beta 6 (Build 21A5506j)
    • AdGuard for Mac 2.6.0.1022 nightly (CL-1.8.183, DNS-1.6.36)

dave-holland avatar Sep 16 '21 15:09 dave-holland

Hello!

At the first glance, this is the same issue as AdguardTeam/CoreLibs#1436

Chinaski1 avatar Sep 16 '21 16:09 Chinaski1

Yeah, that's (almost) definitely it. We should probably rename that original issue in CL since this is a MacOS bug.

ameshkov avatar Sep 16 '21 16:09 ameshkov

This case is different - netbiosd consumes CPU while AG protection is not running.

And that task is about consuming CPU while network extension in running, and apps immediately stops consuming CPU after network-extension is stopped.

sfionov avatar Sep 16 '21 16:09 sfionov

Ah yeah, you're right, that one is indeed different. Can we reproduce it on our side?

Also, could it be that when the network extension is unloaded the sockets are also closed incorrectly, just like how they're closed when it's loaded?

ameshkov avatar Sep 16 '21 16:09 ameshkov

The issue seems to have been resolved in macOS 12 beta 7 (Build 21A5522h)

dave-holland avatar Sep 21 '21 18:09 dave-holland

Hey guys, the issue seems to be back. As far as I can tell, it is the same exact problem. Version of AdGuard - v2.9.0.1166 beta.

cryptopatik22 avatar Sep 15 '22 16:09 cryptopatik22

Do I have to create a new issue?

cryptopatik22 avatar Sep 15 '22 16:09 cryptopatik22

@cryptopatik22 No, reopened this one.

sfionov avatar Sep 26 '22 06:09 sfionov

I have the same issues. AdGuard - 2.11.0.1292 release. macOS - 13.2.1 (22D68)

antonreshetov avatar Jul 13 '23 06:07 antonreshetov

@antonreshetov I wonder why Apple did not fix it yet, since they agree with presence of this bug even of their forums. As a workaround, if you doesn't need it, you may run killall -STOP netbiosd in the Terminal.

sfionov avatar Jul 13 '23 10:07 sfionov

@sfionov Thanks, I'll try

antonreshetov avatar Jul 14 '23 05:07 antonreshetov

@sfionov killall -STOP netbiosd did not help, the process is restarting again.

antonreshetov avatar Aug 14 '23 11:08 antonreshetov

The following MacRumors thread which links to the following Apple Support instructions should help disable netbiosd so you can get on with your life when you want to pause AdGuard. This bug had bitten me in the past, and my workaround then was to unpause AdGuard. Now, my workaround is to disable netbiosd since I don't need it running on my Mac (running Monterey 12.6.5)

--

MacRumors thread: https://forums.macrumors.com/threads/netbiosd-high-cpu-usage-on-m1-monterey.2335812/

Apple support reconfiguration instructions: https://support.apple.com/en-gb/102050

--

FYI...for the super-technical curious types, this StackExchange post has some good info about what the repercussions are for disabling netbiosd and what some of the workarounds are if you really want to use netbiosd supported file sharing services with other devices on your network: https://apple.stackexchange.com/questions/81751/should-i-block-incoming-connections-from-netbiosd

eSavior avatar Nov 06 '23 13:11 eSavior