While use bbr, the `hz` should be set to 1000000, match the bintime and timer of F-Stack. Ref #701 #702.

This commit is contained in:
fengbojiang 2023-02-14 17:01:34 +08:00
parent 74c19adff2
commit e592cbbfec
1 changed files with 5 additions and 1 deletions

View File

@ -161,7 +161,7 @@ gateway=192.168.1.1
# FreeBSD network performance tuning configurations.
# Most native FreeBSD configurations are supported.
[freebsd.boot]
# If use rack/bbr which depend HPTS, you should set a greater value of hz, such as 100000 means a tick is 10us.
# If use rack/bbr which depend HPTS, you should set a greater value of hz, such as 1000000 means a tick is 1us.
hz=100
# Block out a range of descriptors to avoid overlap
@ -215,3 +215,7 @@ net.inet.ip.forwarding=0
net.inet.tcp.functions_default=freebsd
# need by bbr, should enable it.
net.inet.tcp.hpts.skip_swi=1
# Interval between calls to hpts_timeout_dir. default min 250us, max 256-512ms, default 512ms.
net.inet.tcp.hpts.minsleep=250
# [25600-51200]
net.inet.tcp.hpts.maxsleep=51200