Skip to content

Commit e592cbb

Browse files
committed
While use bbr, the hz should be set to 1000000, match the bintime and timer of F-Stack. Ref #701 #702.
1 parent 74c19ad commit e592cbb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

config.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ gateway=192.168.1.1
161161
# FreeBSD network performance tuning configurations.
162162
# Most native FreeBSD configurations are supported.
163163
[freebsd.boot]
164-
# If use rack/bbr which depend HPTS, you should set a greater value of hz, such as 100000 means a tick is 10us.
164+
# If use rack/bbr which depend HPTS, you should set a greater value of hz, such as 1000000 means a tick is 1us.
165165
hz=100
166166

167167
# Block out a range of descriptors to avoid overlap
@@ -215,3 +215,7 @@ net.inet.ip.forwarding=0
215215
net.inet.tcp.functions_default=freebsd
216216
# need by bbr, should enable it.
217217
net.inet.tcp.hpts.skip_swi=1
218+
# Interval between calls to hpts_timeout_dir. default min 250us, max 256-512ms, default 512ms.
219+
net.inet.tcp.hpts.minsleep=250
220+
# [25600-51200]
221+
net.inet.tcp.hpts.maxsleep=51200

0 commit comments

Comments
 (0)