sys: Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Add fib lookup testing module.This module intended to measure performance of routing lookups.Uses a list of IP addresses specified by sysctl one-by-one.Performance testing is triggered by changi
Add fib lookup testing module.This module intended to measure performance of routing lookups.Uses a list of IP addresses specified by sysctl one-by-one.Performance testing is triggered by changing sysctl OID with a number of lookups to execute.Lookups are done by the chunks of 10K routes, entering/exiting epoch on chunk granularity to amortise cost.Example:make -C sys/modules/test/fib_lookup unload loadfor i in `cat ~/ip4.txt`; do sysctl net.route.test.add_inet_addr=$i; donefor i in `cat ~/ip6.txt`; do sysctl net.route.test.add_inet6_addr=$i; donesysctl net.route.test.run_inet=10000000dmesg | tailDec 13 23:24:05 current kernel: 10000000 packets in 417240173 nanoseconds, 23967011 ppsDec 13 23:24:06 current kernel: run: 10000000 packets vnet 0xfffff80003073f00Dec 13 23:24:07 current kernel: 10000000 packets in 423086254 nanoseconds, 23635842 ppsDifferential Revision: https://reviews.freebsd.org/D27604
show more ...