Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion device/queueconstants_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ const (
QueueInboundSize = 1024
QueueHandshakeSize = 1024
MaxSegmentSize = (1 << 16) - 1 // largest possible UDP datagram
PreallocatedBuffersPerPool = 0 // Disable and allow for infinite memory growth
)

// Infinite memory growth quickly oom-kills processes on small devices
// Allow fine tuning on such systems.
var PreallocatedBuffersPerPool uint32 = 0 // Disable and allow for infinite memory growth