diff --git a/scripts/98-udp-buf.conf b/scripts/98-udp-buf.conf new file mode 100644 index 00000000000..5155c42eaaa --- /dev/null +++ b/scripts/98-udp-buf.conf @@ -0,0 +1,5 @@ +# This configuration file adjusts the UDP buffer sizes for optimal network performance. +# It sets the maximum receive (rmem_max) and send (wmem_max) buffer sizes for UDP sockets. +# This file is typically placed in the /etc/sysctl.d/ directory. +net.core.rmem_max=7500000 +net.core.wmem_max=7500000 diff --git a/scripts/lotus-daemon.service b/scripts/lotus-daemon.service index 3f8ea014f0f..f0839af05b7 100644 --- a/scripts/lotus-daemon.service +++ b/scripts/lotus-daemon.service @@ -10,6 +10,9 @@ ExecStart=/usr/local/bin/lotus daemon Restart=always RestartSec=10 +StartLimitIntervalSec=60s +StartLimitBurst=4 + # If running a node in a shared, memory constrained environment, enable MemoryAccounting to put # pressure on allocations. This will slow the process down but keep it approximately within the # limit specified. @@ -17,7 +20,7 @@ RestartSec=10 #MemoryHigh=64G #MemoryMax=96G -LimitNOFILE=8192:10240 +LimitNOFILE=8192:16384 [Install] WantedBy=multi-user.target