The branch main has been updated by cperciva:

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

commit 714a6d436819d446e01d1e4741fbe1089a23fe57
Author:     Colin Percival <cperc...@freebsd.org>
AuthorDate: 2024-09-18 11:02:15 +0000
Commit:     Colin Percival <cperc...@freebsd.org>
CommitDate: 2024-09-22 07:35:48 +0000

    EC2: Set entropy_efi_seed_size to 64
    
    This dramatically improves boot speeds on Graviton 2 instances.
    
    MFC after:      1 week
    Sponsored by:   Amazon
    Differential Revision:  https://reviews.freebsd.org/D46636
---
 release/tools/ec2.conf | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf
index 34434f86a0b1..9e9471b55149 100644
--- a/release/tools/ec2.conf
+++ b/release/tools/ec2.conf
@@ -38,6 +38,10 @@ ec2_common() {
        echo 'autoboot_delay="-1"' >> ${DESTDIR}/boot/loader.conf
        echo 'beastie_disable="YES"' >> ${DESTDIR}/boot/loader.conf
 
+       # The EFI RNG on Graviton 2 is particularly slow if we ask for the
+       # default 2048 bytes of entropy; ask for 64 bytes instead.
+       echo 'entropy_efi_seed_size="64"' >> ${DESTDIR}/boot/loader.conf
+
        # Tell gptboot not to wait 3 seconds for a keypress which will
        # never arrive.
        printf -- "-n\n" > ${DESTDIR}/boot.config

Reply via email to