-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
UniFi Gateways firmware 4.1.x incompatible with udm-iptv (UXG Lite) #361
Comments
Unifi's response: "We cannot assure stability on modified OS's, but I understand why you're adjusting the OS." |
UniFi Gateways 4.1.8 has been released, but IPTV issues persist. |
@dmutsaers which process at the UI device is consuming the CPU? Could you post an "top" screenshot when the issues is present? |
@dmutsaers ksoftirqd (packetforwarder if I recall well) is consuming the CPU you mean in the second screenshot? In the UI topic thy talk about ulog as consumer, could you elaborate? |
Strange, just by enabling or disabling "Intrusion Prevention" I can trigger or resolve the issue. |
I dont think that is strange, what I think is the multicast traffic or the inspection of this content is pushed over the CPU instead of hardware offloading. So you just "use" the CPU when you enable the inspection it? I assume in every other speedtest.net test the CPU remains very low due to the hardware offloading? |
I've never checked which process was consuming all CPU. The first time I looked at the processes with TOP was after upgrading to 4.1.8. today (at your request). I noticed the ksoftirq and ubnt-idsips-dae processes we're consuming all CPU on my UXG-Lite. |
That may be true, it never happened before in the 4.0.x branch. A speedtest does not stress the CPU. |
I monitored it for quite some time on 4.1.2 and for me it was the ULOGD process that was consuming all CPU. |
Hardware offloading is introduced in 4.1, so yes the packetforwarding did change from 4.0 to 4.1 |
Does igmpproxy make a difference, instead of the improxy? |
I've been experimenting with IGMPPROXY, IMPROXY and Intrusion Prevention. I have best results with Intrusion Prevention disabled. I could enable Intrusion Prevention with IGMPPROXY, the IPTV stream is stable, but it still stresses the CPU a lot. Enabling Intrusion Prevention with IMPROXY is not possible (without hiccups). |
Nice learnings! Thanks for posting! |
I'm using an UXG-Lite. High CPU usage is only observed with an active multicast IGMP IPTV stream and Intrusion Prevention enabled. |
Just for fun, could you enable Intrusion Prevention, and after enabling Intrusion Prevention disable Intrusion Prevention again? |
Of course my test was with IPTV (KPN) enabled/streaming ;-) Could you change the first post/title that the issue might only occurs to the UXG-LITE hardware? It's a bit misleading now for others who search via google. |
Ill include that test when i upgrade tonight. |
@dmutsaers you might want to upgrade your hardware, the UXG-LITE got a different chipset then the UXG-Max. Below UXG-Max IPS off IPS enabled |
Just checking, UXG-LITE hardware? |
Your results make me wonder there is something really wrong with the UXG-Lite. |
The forwarding chip is another one which makes it a total different device. This is not related to the CPU capacity. In my screenshots there is no CPU load for forwarding. Somehow the UXG-Max does handle this traffic differently than the UXG-Lite. More about chipsets overhere. |
OK so I have some interesting/confusing news - I re-upgraded to 4.1.8 last night, reinstalled udm-iptv and switched it in the config to igmpproxy(this is all currently with IPS off) and I am seeing completely normal CPU usage with active IPTV streams. Curiosity then got the better of me and i switched back to improxy, as igmpproxy seems to use a little more RAM. Still seeing completely normal CPU usage. here is my usage graph from UNA for last night when the IPTV would have been on, and overnight to this morning: I haven't changed anything in my config other than keeping UNA early access up to date, but I don't see how that could have an effect (happy to be corrected). I ran out of time to try it with IPS enabled, so that will be todays task, however I'm not expecting great things as the UXG Lite struggles really with it anyway. udm-iptv config: |
@latereaction A bit similar as my experiences, it all crumbles down if you enable IPS. |
Yeah previously it would have been obvious as the CPU would be pinned at 100% for long periods during IPTV streams. I think even though Ubiquiti advertise this device as IPS capable - i really think its at its limit. I ended up disabling it pretty sharp after getting the device and seeing the poor performance. I do run Ad blocker on some of my VLANS and also use country blocking, but that's it. Its a little frustrating that we don't know the root cause of this though, as until Ubiquiti fix their broken (for us) IPTV implementation we are at the behest of the performance of this add-on on all future firmwares. |
What is your ISP? (if relevant)
No response
Diagnostic Information
=== Configuration ===
WAN Interface: eth1
WAN VLAN: 4 (dev iptv)
WAN DHCP: true (options "-O staticroutes -V IPTV_RG")
WAN Ranges: 10.0.0.0/8 10.252.0.0/16 10.253.0.0/16 217.166.0.0/16
LAN Interfaces: eth0.8
IGMP Proxy quickleave disabled: false
IGMP Proxy debug: false
=== IP Link and Route ===
17: iptv@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
inet 10.252.214.207/16 scope global iptv
valid_lft forever preferred_lft forever
10.0.0.0/8 via 10.252.0.1 metric 217
10.252.0.0/16 proto kernel scope link src 10.252.214.207
=== Service Logs ===
Dec 10 10:01:49 Next-GenGatewayLite udm-iptvd[10937]: group time 208
Dec 10 10:01:49 Next-GenGatewayLite udm-iptvd[10937]: version: 2
Dec 10 10:01:49 Next-GenGatewayLite udm-iptvd[10937]: group 224.2.2.2 exclude mode
Dec 10 10:01:49 Next-GenGatewayLite udm-iptvd[10937]: group time 204
Dec 10 10:01:49 Next-GenGatewayLite udm-iptvd[10937]: version: 2
Dec 10 10:01:49 Next-GenGatewayLite udm-iptvd[10937]: interface eth0.8:192.168.8.1
Dec 10 10:01:49 Next-GenGatewayLite udm-iptvd[10937]: group 224.0.251.124 exclude mode
Dec 10 10:01:49 Next-GenGatewayLite udm-iptvd[10937]: group time 260
Dec 10 10:01:49 Next-GenGatewayLite udm-iptvd[10937]: version: 2
Dec 10 10:01:49 Next-GenGatewayLite udm-iptvd[10937]: group 224.0.251.109 exclude mode
Describe the Bug
If the latest Unifi firmware (4.1.2/4.1.3) has been installed on the UXG Lite/Max/Pro/Enterprise the CPU usage maxes out to 100% when an IPTV stream is active using udm-iptv. IPTV becomes unusable. It seems the ulogd process uses all CPU capacity.
Older firmware doesn't seem to suffer from this issue.
High CPU usage (Unifi forum)
Unifi Gateways firmware 4.1.2 + 4.1.3 incompatible with udm-iptv (UXG Lite/Max/Pro/Enterprise) #358
Expected Behavior
Installing udm-iptv shouldn't cause 100% CPU usage on UXG Lite/Max/Pro/Enterprise.
The text was updated successfully, but these errors were encountered: