[SOLVED] Large amount of VLANs causes GUI hang

Started by ptha, May 25, 2017, 09:56:31 PM

Previous topic - Next topic
May 25, 2017, 09:56:31 PM Last Edit: May 31, 2017, 12:24:49 PM by franco
I setup'ed 150 vlans total of 152 interfaces. This causes the GUI interface to stop responding.

When I put off the interface listing on the dashboard I can at least login, but still everything is super slowly responding...

I know it is a bit rough to say, but PFsense had the same thing going until they fixed it somewhat half a year ago. I would massively prefer Opnsense over PFsense so would it be possible to fix this matter?

I would supply gladly more details and such.

Cheers,

Peter

It's a known thing, and there is another topic here about that.
Also, it's been discussed in the IRC channel.

Don't know the details anymore, since I don't use it.
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

I'm searching a bit but didn't found it yet...

May 26, 2017, 07:33:35 PM #3 Last Edit: May 26, 2017, 08:04:13 PM by AdSchellevis
Hi Peter,

Can you create an issue on GitHub (https://github.com/opnsense/core) for traceability?
I just tried to add 150 vlan's on my virtual machine and experience similar issues, which seem to point to some old logic for searching local addresses.
I'm preparing a fix, as soon as I have one I will let you know.

**EDIT**
can you try https://github.com/opnsense/core/commit/9bba2092eea0d7ffee7919a39e36133c979beb64 ?
using opnsense-patch 9bba2092

Looking at it further, we probably should get rid of get_possible_listen_ips() too, it's doing way too much calls too.

Best regards,

Ad

More than thanks for the great and quick response!

I'll try it tomorrow morning. Also should I still make issue of it at GitHub?

May 27, 2017, 02:10:15 AM #5 Last Edit: May 27, 2017, 02:18:08 AM by ptha
Tried the patch, seems to work better. But the interfaces > overview is still hanging here.

Hi Peter,

Thanks for reporting back.

If you can still make an issue on GitHub that would be nice, I do expect there are some other glitches as well (like pages using get_possible_listen_ips() ), so maybe we can smoothen them out a bit too.

Best regards,

Ad

May 27, 2017, 12:15:17 PM #7 Last Edit: May 27, 2017, 01:12:05 PM by ptha
Added the issue on Github.

Looks like now the slow response is only present in:

- dashboard > interfaces widget
- interfaces > overview
- interfaces > wireless > status (I don't have any wifi hardware or setup)


This issue was resolved and added as a 17.7 milestone. Does this mean it already implemented in the latest update?