diff options
| author | diogo464 <[email protected]> | 2025-08-07 15:27:29 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-08-07 15:27:29 +0100 |
| commit | fda85a9ebb6d7af932b5b980d77433462d3c1425 (patch) | |
| tree | e95337cfcf00f8bde1416643a69237f3317efc67 /src/main.rs | |
| parent | e25dff870fe1da79dc9455f3e7b7cd01d4b1110b (diff) | |
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.
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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<()> { | |||
| 878 | 878 | ||
| 879 | fn machine_configuration_script(config: &MachineConfig) -> String { | 879 | fn machine_configuration_script(config: &MachineConfig) -> String { |
| 880 | let mut script = String::default(); | 880 | let mut script = String::default(); |
| 881 | // arp cache limit increase | ||
| 882 | script.push_str("echo 8192 > /proc/sys/net/ipv4/neigh/default/gc_thresh1\n"); | ||
| 883 | script.push_str("echo 16384 > /proc/sys/net/ipv4/neigh/default/gc_thresh2\n"); | ||
| 884 | script.push_str("echo 32768 > /proc/sys/net/ipv4/neigh/default/gc_thresh3\n"); | ||
| 885 | |||
| 881 | // ip configuration | 886 | // ip configuration |
| 882 | script.push_str("cat << EOF | ip -b -\n"); | 887 | script.push_str("cat << EOF | ip -b -\n"); |
| 883 | for command in config.ip_commands.iter() { | 888 | for command in config.ip_commands.iter() { |
