Skip to content
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

LocalServiceNoNetworkFirewall high CPU Usage on Windows 8 and later #54

Open
Mukou-Aoi opened this issue Dec 27, 2021 · 2 comments
Open

Comments

@Mukou-Aoi
Copy link

When using udp2raw + udpspeeder on Windows 10 the CPU usage is almost always 100% with LocalServiceNoNetworkFirewall consuming a huge trunk (about 25%) of it. If I disable Windows Defender Firewall I get similar CPU usage comparing to Windows 7 (~50%). Firewall rules added are the same across both OS.

I've tried to use different Windows 10 version (LTSC2021/LTSC2019), both with or without updates, switch between winpcap/npcap (PS: Win10Pcap produce BAD MEMORY message in udp2raw log), same behavior.

The issue doesn't occur if I remove udp2raw and use only udpspeeder. Removing udpspeeder and use udp2raw only causes overall CPU usage to drop, but LocalServiceNoNetworkFirewall (Base Filtering Engine & Windows Defender Firewall) still consumes a huge amount of CPU. Both service consumes about 0% CPU most of the time on Windows 7 while consuming >10% on Windows 10. The CPU usage for the two services are 0% when there's no traffic going through udp2raw.

@Mukou-Aoi Mukou-Aoi changed the title LocalServiceNoNetworkFirewall high CPU Usage on Windows 10 LocalServiceNoNetworkFirewall high CPU Usage on Windows 8 and later Dec 27, 2021
@Mukou-Aoi
Copy link
Author

This doesn't seem to be Windows 10 specific, I can reproduce this behavior with Windows 8.1 with Update within VMware as well, and I've confirmed this doesn't happen with a fresh Windows 7 SP1 installation (kb4474419 is necessary to support newer version npcap driver).

If you have a high performance PC, you can reproduce this behavior with a low spec VM. I've managed to reproduce this in Windows 8.1 with Update / Windows 10 LTSC 2019 / Windows 10 LTSC 2021 within VMware.

@wangyu-
Copy link
Owner

wangyu- commented Feb 26, 2023

Sorry for the late reply. I couldn't reproduce this problem on the lastest windows 10 (22H2).

I guess this problem was from that windows service itself (there are alot of complaints of LocalServiceNoNetworkFirewall on google), which seems to have already been fixed in new windows versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants