OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: ptha on May 25, 2017, 09:56:31 pm

Title: [SOLVED] Large amount of VLANs causes GUI hang
Post by: ptha on May 25, 2017, 09:56:31 pm
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
Title: Re: Large amount of VLANs causes GUI hang
Post by: weust on May 26, 2017, 08:23:57 am
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.
Title: Re: Large amount of VLANs causes GUI hang
Post by: ptha on May 26, 2017, 09:15:15 am
I'm searching a bit but didn't found it yet...
Title: Re: Large amount of VLANs causes GUI hang
Post by: AdSchellevis on May 26, 2017, 07:33:35 pm
Hi Peter,

Can you create an issue on GitHub (https://github.com/opnsense/core (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 (https://github.com/opnsense/core/commit/9bba2092eea0d7ffee7919a39e36133c979beb64) ?
using
Code: [Select]
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
Title: Re: Large amount of VLANs causes GUI hang
Post by: ptha on May 27, 2017, 01:35:18 am
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?
Title: Re: Large amount of VLANs causes GUI hang
Post by: ptha on May 27, 2017, 02:10:15 am
Tried the patch, seems to work better. But the interfaces > overview is still hanging here.
Title: Re: Large amount of VLANs causes GUI hang
Post by: AdSchellevis on May 27, 2017, 09:32:27 am
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
Title: Re: Large amount of VLANs causes GUI hang
Post by: ptha on May 27, 2017, 12:15:17 pm
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)
Title: Re: Large amount of VLANs causes GUI hang
Post by: franco on May 31, 2017, 12:24:40 pm
All better now, marking this solved.
Title: Re: [SOLVED] Large amount of VLANs causes GUI hang
Post by: ptha on August 06, 2017, 02:22:20 pm
This issue was resolved and added as a 17.7 milestone. Does this mean it already implemented in the latest update?
Title: Re: [SOLVED] Large amount of VLANs causes GUI hang
Post by: franco on August 06, 2017, 03:17:14 pm
Yes, 17.1.11 and 17.7.


Cheers,
Franco