Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Aug 2024 05:02:18 GMT
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: bc29564feef6 - stable/13 - EC2: Set dhclient_arpwait="NO"
Message-ID:  <202408200502.47K52IWY072376@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=bc29564feef6667593a60503cae014096341145e

commit bc29564feef6667593a60503cae014096341145e
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2024-08-09 23:55:30 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2024-08-20 05:01:34 +0000

    EC2: Set dhclient_arpwait="NO"
    
    The DHCP server in EC2 knows exactly which system should be using
    which IP address (and in fact EC2 has source IP filtering on by
    default) so there's no point ARPing an address before using it.
    
    The preceding commits (changing the ARP wait time from 2 s to 250 ms)
    and this one (eliminating the wait entirely in EC2) reduce the time
    required for a newly launched FreeBSD/EC2 instance to launch by 2
    seconds.
    
    Discussed with: icattard
    MFC after:      10 days
    Sponsored by:   Amazon
    
    (cherry picked from commit 54a543d5ea3a58aee2f001498376127efea24bd2)
---
 release/tools/ec2.conf | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf
index 96e628f2c497..86706e21513c 100644
--- a/release/tools/ec2.conf
+++ b/release/tools/ec2.conf
@@ -64,6 +64,11 @@ vm_extra_pre_umount() {
 	# via EC2 user-data.
 	echo 'firstboot_pkgs_list="devel/py-awscli"' >> ${DESTDIR}/etc/rc.conf
 
+	# The EC2 DHCP server can be trusted to know whether an IP address is
+	# assigned to us; we don't need to ARP to check if anyone else is using
+	# the address before we start using it.
+	echo 'dhclient_arpwait="NO"' >> ${DESTDIR}/etc/rc.conf
+
 	# Enable IPv6 on all interfaces, and spawn DHCPv6 via rtsold
 	echo 'ipv6_activate_all_interfaces="YES"' >> ${DESTDIR}/etc/rc.conf
 	echo 'rtsold_enable="YES"' >> ${DESTDIR}/etc/rc.conf



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408200502.47K52IWY072376>