0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-03 07:31:54 +00:00
bird/proto/bgp
Ondrej Zajicek 0e39ed0004 Nest: Parametric network hashes
Currently, all fib hash tables use the same hashing function. This leads
to a situation where feeding routes through a pipe from one table to
another causes significant number of collisions, as routes are fed in the
order of increasing hash values, but dst tables are sized based on the
number of stored routes.

The patch makes fib hashing function parametric and chooses random
parameter for each table. Also generally improves quality of hashing
functions.

Unfortunately, while this patch fixes the issue with initial collisions,
having different hashing functions leads to 2x slowdown of pipe feeding,
presumably due to worse cache behavior in dst tables. Also, the original
issue significantly affects just the initial part of feed, when the dst
table is small, so even ideal fix would not improve that much.

Therefore, no merge for this patch.
2022-06-14 18:15:30 +02:00
..
attrs.c Nest: Parametric network hashes 2022-06-14 18:15:30 +02:00
bgp.c BGP: Display neighbor port on show protocol 2022-05-21 16:21:34 +02:00
bgp.h Nest: Parametric network hashes 2022-06-14 18:15:30 +02:00
config.Y Merge branch 'oz-trie-table' 2022-02-06 23:42:10 +01:00
Doc Doc: Rename code documentation files back to Doc 2018-12-14 02:03:42 +01:00
Makefile Unit Testing for BIRD 2016-11-09 16:36:34 +01:00
packets.c Merge branch 'oz-trie-table' 2022-02-06 23:42:10 +01:00