From 1dfefe75e7899711c91a78f3184c3251c2d4ab46 Mon Sep 17 00:00:00 2001 From: lemmi Date: Thu, 23 Jan 2020 04:44:00 +0100 Subject: [PATCH] Readme: correct receive buffer section --- Readme.md | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index 0695bf4..6753717 100644 --- a/Readme.md +++ b/Readme.md @@ -21,10 +21,36 @@ http://localhost:8080/ ## Note -`babeld` can spew out massive amounts of route changes that can fill the netlink socket. +`babeld` can spew out massive amounts of route changes that can fill the +netlink socket. `rmon` tries to allocate a 16MB receive buffer, which seems to +be enough for the moment. For this to work check `/proc/sys/net/core/rmem_max` +to be more than 16MB (16777216). + +### Set receive buffer size temporarily + +Do one of the following: + +```shell +# echo 16777216 > /proc/sys/net/core/rmem_max +``` + +```shell +# sysctl -w net.core.rmem_max=16777216 +``` + +### Set receive buffer pemanently + +Add the following line to `/etc/sysctl.conf`: + +``` +net.core.rmem_max = 16777216 +``` + +and run + +```shell +# sysctl -p +``` -Check your values: -1. `/proc/sys/net/core/rmem_default` >= 1048576 (1MB) -2. `/proc/sys/net/core/rmem_max` higher than the value above