Skip to content

Commit f699326

Browse files
committed
Modify net.inet.ip.portrange.randomtime from 45 to 0.
So it always do random while connect to remote server. In some scenarios of F-Stack application, the performance can be improved to a certain extent, ablout 5%.
1 parent ce75d5c commit f699326

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,10 @@ net.inet.tcp.rfc1323=1
303303
net.inet.udp.blackhole=1
304304
net.inet.ip.redirect=0
305305
net.inet.ip.forwarding=0
306+
net.inet.ip.portrange.randomized=1
307+
# Always do random while connect to remote server.
308+
# In some scenarios of F-Stack application, the performance can be improved to a certain extent, ablout 5%.
309+
net.inet.ip.portrange.randomtime=0
306310

307311
net.inet6.ip6.auto_linklocal=1
308312
net.inet6.ip6.accept_rtadv=2

0 commit comments

Comments
 (0)