mirror of https://github.com/F-Stack/f-stack.git
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:
parent
b7838256ed
commit
5f7fc57d11
|
@ -161,7 +161,7 @@ gateway=192.168.1.1
|
||||||
# FreeBSD network performance tuning configurations.
|
# FreeBSD network performance tuning configurations.
|
||||||
# Most native FreeBSD configurations are supported.
|
# Most native FreeBSD configurations are supported.
|
||||||
[freebsd.boot]
|
[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
|
hz=100
|
||||||
|
|
||||||
# Block out a range of descriptors to avoid overlap
|
# Block out a range of descriptors to avoid overlap
|
||||||
|
@ -215,3 +215,7 @@ net.inet.ip.forwarding=0
|
||||||
net.inet.tcp.functions_default=freebsd
|
net.inet.tcp.functions_default=freebsd
|
||||||
# need by bbr, should enable it.
|
# need by bbr, should enable it.
|
||||||
net.inet.tcp.hpts.skip_swi=1
|
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
|
||||||
|
|
Loading…
Reference in New Issue