net/art: disable the IPv6 100k routes benchmark.

At the current unoptimized memory utilization of the various data structures,
100k IPv6 routes consumes in the ballpark of 3-4GiB, which risks OOMing our
386 test machine.

Until we have the optimizations to (drastically) reduce that consumption,
skip the test that bloats too much for 32-bit machines.

Signed-off-by: David Anderson <danderson@tailscale.com>
pull/7865/head
David Anderson 2 years ago committed by Dave Anderson
parent a7c910e361
commit a5fd51ebdc

@ -205,7 +205,15 @@ func TestDeleteShuffled(t *testing.T) {
} }
} }
var benchRouteCount = []int{10, 100, 1000, 10_000, 100_000} // 100k routes for IPv6, at the current size of strideTable and strideEntry, is
// in the ballpark of 4GiB if you assume worst-case prefix distribution. Future
// optimizations will knock down the memory consumption by over an order of
// magnitude, so for now just skip the 100k benchmarks to stay well away of
// OOMs.
//
// TODO(go/bug/7781): reenable larger table tests once memory utilization is
// optimized.
var benchRouteCount = []int{10, 100, 1000, 10_000} //, 100_000}
// forFamilyAndCount runs the benchmark fn with different sets of // forFamilyAndCount runs the benchmark fn with different sets of
// routes. // routes.

Loading…
Cancel
Save