website logo
Create accountLogin
Home
DCS
Node
Resources
Help center
Navigate through spaces
Home
DCS
Node
Resources
Help center
⌘K
Storj Node Operator
Get Started
Quickstart Node Setup
Step 1. Understand Prerequisites
Step 2. Get an Authorization Token
Step 3. Setup Port Forwarding
Step 4. Configure QUIC
Step 5. Create an Identity
Step 6. Install Node Software
Guides
Concepts
Payout
FAQs
Moved Pages
Docs powered by archbee 
3min

macOS/FreeBSD Configuration for UDP

If you are running your node on macOS/FreeBSD (Darwin/BSD), you might see warnings about the receive buffer size. UDP transfers on high-bandwidth connections can be limited by the size of the UDP receive buffer. This buffer holds packets that have been received by the kernel, but not yet read by the application. Once this buffer fills up, the kernel will drop any new incoming packet. Our software attempts to increase the UDP receive buffer size. However, on macOS/FreeBSD, an application is only allowed to increase the buffer size up to a maximum value set in the kernel, and the default maximum value is too small for high-bandwidth UDP transfers.

We recommend increasing the maximum buffer size by running the following to increase it to ~2.5MB. Accordingly article of Cameron Sparr, on BSD/Darwin systems you need to add about a 15% padding to the kernel limit socket buffer, i.e. 2.5MB * 1.15 = 2.875MB.

You may check the current UDP/IP buffer limit by typing the following command:

Terminal
|

If the value is less than 2875000 bytes you should add the following lines to the /etc/sysctl.conf file (execute as root):

Terminal
|

Changes to /etc/sysctl.conf do not take effect until reboot. To update the values immediately, type the following commands as root:

Terminal
|
Updated 11 Dec 2022
Did this page help you?
Yes
No
UP NEXT
Step 5. Create an Identity
Docs powered by archbee