Skip to content

Commit 2e170ae

Browse files
authored
Patch wireguard-go for low memory pods
Patch wireguard-go to workaround ongoing issue related to pods with low memory limits OOMing due to wireguard-go buffer/gc issues. Related to WireGuard#69 Signed-off-by: Anton Kiselev <[email protected]>
1 parent 1abd24b commit 2e170ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

device/queueconstants_default.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ const (
1515
QueueInboundSize = 1024
1616
QueueHandshakeSize = 1024
1717
MaxSegmentSize = (1 << 16) - 1 // largest possible UDP datagram
18-
PreallocatedBuffersPerPool = 0 // Disable and allow for infinite memory growth
18+
PreallocatedBuffersPerPool = 4096
1919
)

0 commit comments

Comments
 (0)