Date: Wed, 22 Aug 2007 16:30:32 +0100 From: "Bruce M. Simpson" <bms@FreeBSD.org> To: Ivo Vachkov <ivo.vachkov@gmail.com> Cc: freebsd-net <freebsd-net@freebsd.org> Subject: Re: Route caching ? Message-ID: <46CC5698.7090200@FreeBSD.org> In-Reply-To: <f85d6aa70708220737p28fb6260h699754544ccd249a@mail.gmail.com> References: <f85d6aa70708220003le893770uca9ceea467d85618@mail.gmail.com> <46CC475F.8030505@FreeBSD.org> <f85d6aa70708220737p28fb6260h699754544ccd249a@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Ivo Vachkov wrote: > Actually there is: > > struct route_in6 ip6_forward_rt; > > that "caches" the last route used (thanks blue !!!) but i think this > technique is pointless in a multiflow traffic. > Yes, this is why OpenBSD got rid of this form of 'route caching'. > Is it reasonable to believe that route caches can improve networking > performance or we should leave it up to the routing table itself ? > I believe that if one goes beyond a single radix trie, as is needed for multi-pathing with multicast and source policy routing, route caching is *required* to achieve good performance. Also, if FreeBSD moves ARP and NDP out of the radix trie, a route cache would be highly preferable as it amortizes the lock acquisition which would other be required for ARP/NDP/other layer 2 next-hop resolution. BMS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46CC5698.7090200>