Re: [vpp-dev] #vpp-dev : How does the ping works from vppctl when we have 2 entries for the same Dest Addr with different sw_if_index
Hi Sastry, What is the gARP bug and fix you mention? /neale From: vpp-dev@lists.fd.io on behalf of Sastry Sista via lists.fd.io Date: Tuesday, 29 June 2021 at 12:13 To: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] #vpp-dev : How does the ping works from vppctl when we have 2 entries for the same Dest Addr with different sw_if_index Hi, Show ip fib gives may be giving interface and we do search based on interface on ip neighbor table? When we have 2 entries in ip neighbor table, how does it work. This is infact a bug which got fixed with gratuitous ARP. Could you please let me know the code where exactly looking neighbor table. like ip_neighbor_table()? With Regards Sastry -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19650): https://lists.fd.io/g/vpp-dev/message/19650 Mute This Topic: https://lists.fd.io/mt/83818702/21656 Mute #vpp-dev:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp-dev Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] Reminder: VPP release 21.06 tagging is 12:00 UTC tomorrow Wednesday 30 June 2021
Hi all, Just a kind reminder - at noon UTC tomorrow I will put in the 21.06-release tag on stable/2106 branch and begin the release ceremonies. --a // your friendly 21.06 release manager -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19649): https://lists.fd.io/g/vpp-dev/message/19649 Mute This Topic: https://lists.fd.io/mt/83869797/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] heap sizes
Hi Pim, The defaults we use are 96M for stat segment and 1G for main heap (default main heap size). I know these need to scale up as the numbers of routes and/or threads increase. These values can accommodate a million routes or so when running single threaded, but allocations on the stat segment fail if 2 worker threads are enabled with 1M routes. Allocations on the main heap fail if the number of routes gets too far above 1M. What I'm trying to figure out is this: do I need to try and determine a formula for the sizes that should be used for main heap and stat segment based on X number of routes and Y number of worker threads? Or is there a downside to just setting the main heap size to 32G (which seems like a number that is unlikely to ever be exhausted sans memory leaks)? -Matt On Mon, Jun 28, 2021 at 5:20 PM Pim van Pelt wrote: > Hoi Matt, > > Out of curiosity how large is your heap and stats segment? I ask because > running VPP with a large FIB I needed 2G heap size (and I used page size of > 2M), and 96M of statsseg: > > memory { > main-heap-size 3G > main-heap-page-size 2M > } > > statseg { > socket-name /run/vpp/stats.sock > size 96M > per-node-counters off > } > > On Mon, Jun 28, 2021 at 11:53 PM Matthew Smith via lists.fd.io netgate@lists.fd.io> wrote: > >> Hi all, >> >> It's my understanding that when you set the size of the main heap or the >> stat segment in startup.conf, the size you specify is used to set up >> virtual address space and the system does not actually allocate that full >> amount of memory to VPP. I think when VPP tries to read/write addresses >> within the address space, then memory is requested from the system to back >> the chunk of address space containing the address being accessed. Is my >> understanding correct(ish)? >> >> When I add a large number of routes to the FIB (>1M), I have seen VPP >> crash when the main heap or stats segment run out of space. I am wondering >> if it makes sense to just set the heap sizes to some huge value that I am >> confident will not be exceeded. If memory is not allocated unless it's >> needed, it seems like that would be ok to do. >> >> Thanks, >> -Matt >> >> >> >> >> >> > > -- > Pim van Pelt > PBVP1-RIPE - http://www.ipng.nl/ > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19648): https://lists.fd.io/g/vpp-dev/message/19648 Mute This Topic: https://lists.fd.io/mt/83856384/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] #vpp-dev : How does the ping works from vppctl when we have 2 entries for the same Dest Addr with different sw_if_index
Hi Sastry, As Alex alluded to, the ping code: https://github.com/FDio/vpp/blob/ff2e4138cc020dea4ab0f21f1b172b28f5ed3565/src/plugins/ping/ping.c#L877 uses the FIB to perform the lookup on the destination, it does not consult the neighbour table. The entries in the neighbour table may have contributed to the results that you see in the FIB, depending on whether or not the interface’s subnet matches the ARP entry. /neale From: vpp-dev@lists.fd.io on behalf of Sastry Sista via lists.fd.io Date: Tuesday, 29 June 2021 at 12:13 To: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] #vpp-dev : How does the ping works from vppctl when we have 2 entries for the same Dest Addr with different sw_if_index Hi, Show ip fib gives may be giving interface and we do search based on interface on ip neighbor table? When we have 2 entries in ip neighbor table, how does it work. This is infact a bug which got fixed with gratuitous ARP. Could you please let me know the code where exactly looking neighbor table. like ip_neighbor_table()? With Regards Sastry -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19647): https://lists.fd.io/g/vpp-dev/message/19647 Mute This Topic: https://lists.fd.io/mt/83818702/21656 Mute #vpp-dev:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp-dev Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] #vpp-dev : How does the ping works from vppctl when we have 2 entries for the same Dest Addr with different sw_if_index
Hi, Show ip fib gives may be giving interface and we do search based on interface on ip neighbor table? When we have 2 entries in ip neighbor table, how does it work. This is infact a bug which got fixed with gratuitous ARP. Could you please let me know the code where exactly looking neighbor table. like ip_neighbor_table()? With Regards Sastry -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19646): https://lists.fd.io/g/vpp-dev/message/19646 Mute This Topic: https://lists.fd.io/mt/83818702/21656 Mute #vpp-dev:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp-dev Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] Calico/VPP 0.15.0 for Calico 3.19.1 was released
Hello, This group may be interested in knowing that Calico/VPP 0.15.0 for Calico 3.19.1 was released last Friday. Here is the changelog: https://github.com/projectcalico/vpp-dataplane/wiki/Release-Notes. It leverages a significant number of VPP features including: CNAT, IPv4/IPv6 routing, IPSec, wireguard, native drivers for numerous interfaces, adaptive/interrupt mode, ACLs, … Regards, Jerome -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19645): https://lists.fd.io/g/vpp-dev/message/19645 Mute This Topic: https://lists.fd.io/mt/83864486/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-