Page MenuHomeFreeBSD

Add route lookup tester.
ClosedPublic

Authored by melifaro on Dec 13 2020, 11:21 PM.
Tags
None
Referenced Files
F106161851: D27604.id81949.diff
Thu, Dec 26, 10:02 AM
F106130752: D27604.diff
Wed, Dec 25, 10:06 PM
Unknown Object (File)
Mon, Dec 2, 4:34 AM
Unknown Object (File)
Fri, Nov 29, 8:34 PM
Unknown Object (File)
Nov 25 2024, 12:18 AM
Unknown Object (File)
Nov 24 2024, 3:12 AM
Unknown Object (File)
Nov 24 2024, 1:10 AM
Unknown Object (File)
Nov 23 2024, 12:14 AM
Subscribers

Details

Reviewers
None
Group Reviewers
network
Commits
rG0433870efefc: Add fib lookup testing module.
Summary

Kernel 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.

Test Plan
make -C sys/modules/test_lookup unload load
for i in `cat ~/ip4.txt`; do sudo sysctl net.route.test.add_inet_addr=$i; done
for i in `cat ~/ip6.txt`; do sudo sysctl net.route.test.add_inet6_addr=$i; done

# run 10M lookups
sysctl net.route.test.run_inet6=10000000
Dec 13 23:24:05 current kernel: 10000000 packets in 417240173 nanoseconds, 23967011 pps
Dec 13 23:24:06 current kernel: run: 10000000 packets vnet 0xfffff80003073f00
Dec 13 23:24:07 current kernel: 10000000 packets in 423086254 nanoseconds, 23635842 pps

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 35391
Build 32308: arc lint + arc unit

Event Timeline

melifaro edited the test plan for this revision. (Show Details)
melifaro added a reviewer: network.

Add support for fib verification by rtable scan/random looups.
Move to sys/tests/.
Rebase on the latest framework patch.

This revision was not accepted when it landed; it landed in state Needs Review.Jan 9 2021, 1:21 PM
This revision was automatically updated to reflect the committed changes.