diff options
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() { |
