From fda85a9ebb6d7af932b5b980d77433462d3c1425 Mon Sep 17 00:00:00 2001 From: diogo464 Date: Thu, 7 Aug 2025 15:27:29 +0100 Subject: fix: increase arp cache table size dmesg was showing this messages: [Thu Aug 7 14:05:26 2025] net_ratelimit: 4328 callbacks suppressed [Thu Aug 7 14:05:26 2025] neighbour: arp_cache: neighbor table overflow! [Thu Aug 7 14:05:26 2025] neighbour: arp_cache: neighbor table overflow! [Thu Aug 7 14:05:26 2025] neighbour: arp_cache: neighbor table overflow! [Thu Aug 7 14:05:26 2025] neighbour: arp_cache: neighbor table overflow! and the machines were becoming inaccessible. increase the arp cache size fixes this. --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 310477c..726fd62 100644 --- a/src/main.rs +++ b/src/main.rs @@ -878,6 +878,11 @@ async fn machine_clean(ctx: &Context, machine: Machine) -> Result<()> { fn machine_configuration_script(config: &MachineConfig) -> String { let mut script = String::default(); + // arp cache limit increase + script.push_str("echo 8192 > /proc/sys/net/ipv4/neigh/default/gc_thresh1\n"); + script.push_str("echo 16384 > /proc/sys/net/ipv4/neigh/default/gc_thresh2\n"); + script.push_str("echo 32768 > /proc/sys/net/ipv4/neigh/default/gc_thresh3\n"); + // ip configuration script.push_str("cat << EOF | ip -b -\n"); for command in config.ip_commands.iter() { -- cgit