Re: veb Interface Max Cache Size Restrict
As already suggested by another response, from a networker perspective, you have a huge, flat network. Can you provide some detail for your use case? On April 20, 2023 4:02:03 AM MDT, Samuel Jayden wrote: >Yeah. Thanks. It worked. > >deich...@placebonol.com , 19 Nis 2023 Çar, 17:17 >tarihinde şunu yazdı: > >> OpenBSD tries to limit the amount of knob tuning, people tend to shoot >> themselves in the foot when they start playing with knobs. >> >> However you can always compile your own kernel with the information >> provided. >> >> On April 19, 2023 2:12:00 AM MDT, Samuel Jayden < >> samueljaydan1...@gmail.com> wrote: >> >Sincerely thank you David for your answer, >> >I hope you may consider committing it to src and I kindly say that it >> would >> >be perfect if this max cache size limit value was tied to a sysctl >> >parameter. >> > >> >David Gwynne , 19 Nis 2023 Çar, 02:30 tarihinde şunu >> >yazdı: >> > >> >> On Tue, Apr 18, 2023 at 07:51:08PM +, Samuel Jayden wrote: >> >> > Hello, >> >> > I have one veb interface in OpenBSD 7.2 and 5 ethernet ports are >> paired >> >> > with this veb. As I understand from the ifconfig output, 4096 mac >> address >> >> > cache values can be kept in this veb interface . >> >> > >> >> > ifconfig veb10 >> >> > veb10: flags=8843 >> >> > index 12 llprio 3 >> >> > groups: veb >> >> > em3 flags=3 >> >> > port 4 ifpriority 0 ifcost 0 >> >> > em0 flags=3 >> >> > port 1 ifpriority 0 ifcost 0 >> >> > em1 flags=3 >> >> > port 2 ifpriority 0 ifcost 0 >> >> > ix3 flags=3 >> >> > port 8 ifpriority 0 ifcost 0 >> >> > ix2 flags=3 >> >> > port 7 ifpriority 0 ifcost 0 >> >> > Addresses (max cache: 4096, timeout: 240): >> >> > 2c:f0:5d:73:f8:c4 em1 0 flags=0<> >> >> > >> >> > >> >> > When I tried to extend this limit value with the command "ifconfig >> veb10 >> >> > maxaddr 4097", I got the following error message: >> >> > "ifconfig: veb10: Invalid argument" >> >> > The maximum value I can give without this error message is 4096. Isn't >> >> this >> >> > value a bit narrow? >> >> >> >> maybe. it seemed pretty high when i made it up. >> >> >> >> > I have tested that the mac addresses of the connected devices are not >> >> > recorded in the veb interface after exceeding the limit. >> >> > >> >> > I want to switch from Cisco device to OpenBSD in a place where there >> are >> >> > more than 8 thousand MAC addresses, but I need to exceed this max >> cache >> >> > size value. >> >> > How can I increase this max cache size value 8192 or higher value? >> >> >> >> you change 4096 to a bigger number in the code. >> >> >> >> Index: if_etherbridge.c >> >> === >> >> RCS file: /cvs/src/sys/net/if_etherbridge.c,v >> >> retrieving revision 1.7 >> >> diff -u -p -r1.7 if_etherbridge.c >> >> --- if_etherbridge.c5 Jul 2021 04:17:41 - 1.7 >> >> +++ if_etherbridge.c19 Apr 2023 02:25:54 - >> >> @@ -675,7 +676,7 @@ int >> >> etherbridge_set_max(struct etherbridge *eb, struct ifbrparam *bparam) >> >> { >> >> if (bparam->ifbrp_csize < 1 || >> >> - bparam->ifbrp_csize > 4096) /* XXX */ >> >> + bparam->ifbrp_csize > 16384) /* XXX */ >> >> return (EINVAL); >> >> >> >> /* commit */ >> >> >>
Re: veb Interface Max Cache Size Restrict
Yeah. Thanks. It worked. deich...@placebonol.com , 19 Nis 2023 Çar, 17:17 tarihinde şunu yazdı: > OpenBSD tries to limit the amount of knob tuning, people tend to shoot > themselves in the foot when they start playing with knobs. > > However you can always compile your own kernel with the information > provided. > > On April 19, 2023 2:12:00 AM MDT, Samuel Jayden < > samueljaydan1...@gmail.com> wrote: > >Sincerely thank you David for your answer, > >I hope you may consider committing it to src and I kindly say that it > would > >be perfect if this max cache size limit value was tied to a sysctl > >parameter. > > > >David Gwynne , 19 Nis 2023 Çar, 02:30 tarihinde şunu > >yazdı: > > > >> On Tue, Apr 18, 2023 at 07:51:08PM +, Samuel Jayden wrote: > >> > Hello, > >> > I have one veb interface in OpenBSD 7.2 and 5 ethernet ports are > paired > >> > with this veb. As I understand from the ifconfig output, 4096 mac > address > >> > cache values can be kept in this veb interface . > >> > > >> > ifconfig veb10 > >> > veb10: flags=8843 > >> > index 12 llprio 3 > >> > groups: veb > >> > em3 flags=3 > >> > port 4 ifpriority 0 ifcost 0 > >> > em0 flags=3 > >> > port 1 ifpriority 0 ifcost 0 > >> > em1 flags=3 > >> > port 2 ifpriority 0 ifcost 0 > >> > ix3 flags=3 > >> > port 8 ifpriority 0 ifcost 0 > >> > ix2 flags=3 > >> > port 7 ifpriority 0 ifcost 0 > >> > Addresses (max cache: 4096, timeout: 240): > >> > 2c:f0:5d:73:f8:c4 em1 0 flags=0<> > >> > > >> > > >> > When I tried to extend this limit value with the command "ifconfig > veb10 > >> > maxaddr 4097", I got the following error message: > >> > "ifconfig: veb10: Invalid argument" > >> > The maximum value I can give without this error message is 4096. Isn't > >> this > >> > value a bit narrow? > >> > >> maybe. it seemed pretty high when i made it up. > >> > >> > I have tested that the mac addresses of the connected devices are not > >> > recorded in the veb interface after exceeding the limit. > >> > > >> > I want to switch from Cisco device to OpenBSD in a place where there > are > >> > more than 8 thousand MAC addresses, but I need to exceed this max > cache > >> > size value. > >> > How can I increase this max cache size value 8192 or higher value? > >> > >> you change 4096 to a bigger number in the code. > >> > >> Index: if_etherbridge.c > >> === > >> RCS file: /cvs/src/sys/net/if_etherbridge.c,v > >> retrieving revision 1.7 > >> diff -u -p -r1.7 if_etherbridge.c > >> --- if_etherbridge.c5 Jul 2021 04:17:41 - 1.7 > >> +++ if_etherbridge.c19 Apr 2023 02:25:54 - > >> @@ -675,7 +676,7 @@ int > >> etherbridge_set_max(struct etherbridge *eb, struct ifbrparam *bparam) > >> { > >> if (bparam->ifbrp_csize < 1 || > >> - bparam->ifbrp_csize > 4096) /* XXX */ > >> + bparam->ifbrp_csize > 16384) /* XXX */ > >> return (EINVAL); > >> > >> /* commit */ > >> >
Re: veb Interface Max Cache Size Restrict
OpenBSD tries to limit the amount of knob tuning, people tend to shoot themselves in the foot when they start playing with knobs. However you can always compile your own kernel with the information provided. On April 19, 2023 2:12:00 AM MDT, Samuel Jayden wrote: >Sincerely thank you David for your answer, >I hope you may consider committing it to src and I kindly say that it would >be perfect if this max cache size limit value was tied to a sysctl >parameter. > >David Gwynne , 19 Nis 2023 Çar, 02:30 tarihinde şunu >yazdı: > >> On Tue, Apr 18, 2023 at 07:51:08PM +, Samuel Jayden wrote: >> > Hello, >> > I have one veb interface in OpenBSD 7.2 and 5 ethernet ports are paired >> > with this veb. As I understand from the ifconfig output, 4096 mac address >> > cache values can be kept in this veb interface . >> > >> > ifconfig veb10 >> > veb10: flags=8843 >> > index 12 llprio 3 >> > groups: veb >> > em3 flags=3 >> > port 4 ifpriority 0 ifcost 0 >> > em0 flags=3 >> > port 1 ifpriority 0 ifcost 0 >> > em1 flags=3 >> > port 2 ifpriority 0 ifcost 0 >> > ix3 flags=3 >> > port 8 ifpriority 0 ifcost 0 >> > ix2 flags=3 >> > port 7 ifpriority 0 ifcost 0 >> > Addresses (max cache: 4096, timeout: 240): >> > 2c:f0:5d:73:f8:c4 em1 0 flags=0<> >> > >> > >> > When I tried to extend this limit value with the command "ifconfig veb10 >> > maxaddr 4097", I got the following error message: >> > "ifconfig: veb10: Invalid argument" >> > The maximum value I can give without this error message is 4096. Isn't >> this >> > value a bit narrow? >> >> maybe. it seemed pretty high when i made it up. >> >> > I have tested that the mac addresses of the connected devices are not >> > recorded in the veb interface after exceeding the limit. >> > >> > I want to switch from Cisco device to OpenBSD in a place where there are >> > more than 8 thousand MAC addresses, but I need to exceed this max cache >> > size value. >> > How can I increase this max cache size value 8192 or higher value? >> >> you change 4096 to a bigger number in the code. >> >> Index: if_etherbridge.c >> === >> RCS file: /cvs/src/sys/net/if_etherbridge.c,v >> retrieving revision 1.7 >> diff -u -p -r1.7 if_etherbridge.c >> --- if_etherbridge.c5 Jul 2021 04:17:41 - 1.7 >> +++ if_etherbridge.c19 Apr 2023 02:25:54 - >> @@ -675,7 +676,7 @@ int >> etherbridge_set_max(struct etherbridge *eb, struct ifbrparam *bparam) >> { >> if (bparam->ifbrp_csize < 1 || >> - bparam->ifbrp_csize > 4096) /* XXX */ >> + bparam->ifbrp_csize > 16384) /* XXX */ >> return (EINVAL); >> >> /* commit */ >>
Re: veb Interface Max Cache Size Restrict
Sincerely thank you David for your answer, I hope you may consider committing it to src and I kindly say that it would be perfect if this max cache size limit value was tied to a sysctl parameter. David Gwynne , 19 Nis 2023 Çar, 02:30 tarihinde şunu yazdı: > On Tue, Apr 18, 2023 at 07:51:08PM +, Samuel Jayden wrote: > > Hello, > > I have one veb interface in OpenBSD 7.2 and 5 ethernet ports are paired > > with this veb. As I understand from the ifconfig output, 4096 mac address > > cache values can be kept in this veb interface . > > > > ifconfig veb10 > > veb10: flags=8843 > > index 12 llprio 3 > > groups: veb > > em3 flags=3 > > port 4 ifpriority 0 ifcost 0 > > em0 flags=3 > > port 1 ifpriority 0 ifcost 0 > > em1 flags=3 > > port 2 ifpriority 0 ifcost 0 > > ix3 flags=3 > > port 8 ifpriority 0 ifcost 0 > > ix2 flags=3 > > port 7 ifpriority 0 ifcost 0 > > Addresses (max cache: 4096, timeout: 240): > > 2c:f0:5d:73:f8:c4 em1 0 flags=0<> > > > > > > When I tried to extend this limit value with the command "ifconfig veb10 > > maxaddr 4097", I got the following error message: > > "ifconfig: veb10: Invalid argument" > > The maximum value I can give without this error message is 4096. Isn't > this > > value a bit narrow? > > maybe. it seemed pretty high when i made it up. > > > I have tested that the mac addresses of the connected devices are not > > recorded in the veb interface after exceeding the limit. > > > > I want to switch from Cisco device to OpenBSD in a place where there are > > more than 8 thousand MAC addresses, but I need to exceed this max cache > > size value. > > How can I increase this max cache size value 8192 or higher value? > > you change 4096 to a bigger number in the code. > > Index: if_etherbridge.c > === > RCS file: /cvs/src/sys/net/if_etherbridge.c,v > retrieving revision 1.7 > diff -u -p -r1.7 if_etherbridge.c > --- if_etherbridge.c5 Jul 2021 04:17:41 - 1.7 > +++ if_etherbridge.c19 Apr 2023 02:25:54 - > @@ -675,7 +676,7 @@ int > etherbridge_set_max(struct etherbridge *eb, struct ifbrparam *bparam) > { > if (bparam->ifbrp_csize < 1 || > - bparam->ifbrp_csize > 4096) /* XXX */ > + bparam->ifbrp_csize > 16384) /* XXX */ > return (EINVAL); > > /* commit */ >
Re: veb Interface Max Cache Size Restrict
On 2023-04-18, Samuel Jayden wrote: > > I want to switch from Cisco device to OpenBSD in a place where there are > more than 8 thousand MAC addresses, but I need to exceed this max cache > size value. I guess it depends on what exactly the traffic is, but software-bridging traffic from a network segment with >4k devices on OpenBSD seems a tad optimistic. Try with dlg's suggestion if you like, but maybe at a time when users of more than 8 thousand devices won't be too upset. Normally one would want to reduce the number of devices in the segment - realistically the broadcast or multicast traffic for address resolution will get a bit much (especially if wifi is involved) - and even ignoring that, it implies the amount of traffic is such that you'd usually want an actual switch (and a reasonably decent one at that).
Re: veb Interface Max Cache Size Restrict
On Tue, Apr 18, 2023 at 07:51:08PM +, Samuel Jayden wrote: > Hello, > I have one veb interface in OpenBSD 7.2 and 5 ethernet ports are paired > with this veb. As I understand from the ifconfig output, 4096 mac address > cache values can be kept in this veb interface . > > ifconfig veb10 > veb10: flags=8843 > index 12 llprio 3 > groups: veb > em3 flags=3 > port 4 ifpriority 0 ifcost 0 > em0 flags=3 > port 1 ifpriority 0 ifcost 0 > em1 flags=3 > port 2 ifpriority 0 ifcost 0 > ix3 flags=3 > port 8 ifpriority 0 ifcost 0 > ix2 flags=3 > port 7 ifpriority 0 ifcost 0 > Addresses (max cache: 4096, timeout: 240): > 2c:f0:5d:73:f8:c4 em1 0 flags=0<> > > > When I tried to extend this limit value with the command "ifconfig veb10 > maxaddr 4097", I got the following error message: > "ifconfig: veb10: Invalid argument" > The maximum value I can give without this error message is 4096. Isn't this > value a bit narrow? maybe. it seemed pretty high when i made it up. > I have tested that the mac addresses of the connected devices are not > recorded in the veb interface after exceeding the limit. > > I want to switch from Cisco device to OpenBSD in a place where there are > more than 8 thousand MAC addresses, but I need to exceed this max cache > size value. > How can I increase this max cache size value 8192 or higher value? you change 4096 to a bigger number in the code. Index: if_etherbridge.c === RCS file: /cvs/src/sys/net/if_etherbridge.c,v retrieving revision 1.7 diff -u -p -r1.7 if_etherbridge.c --- if_etherbridge.c5 Jul 2021 04:17:41 - 1.7 +++ if_etherbridge.c19 Apr 2023 02:25:54 - @@ -675,7 +676,7 @@ int etherbridge_set_max(struct etherbridge *eb, struct ifbrparam *bparam) { if (bparam->ifbrp_csize < 1 || - bparam->ifbrp_csize > 4096) /* XXX */ + bparam->ifbrp_csize > 16384) /* XXX */ return (EINVAL); /* commit */