~comcloudway/builds.sr.ht

93564892bcaa4d560dd659a9415368176795516e — Dave Cottlehuber 5 years ago 7c4a938
genimg: trim some fat from FreeBSD images

Drew mentioned that FreeBSD is slow to start up, I suspect the DNS
change below is the only one that will result in measurable changes but
less processes is always better. Personally, I'd disable syslogd here
too but that might be overzealous. Thoughts?

I can't test the timing myself yet sorry, would love to get some reports
back, especially vs linux.

Depending on what people report as "slow" there may be other options,
disabling TCP checksums on the virtio nic, or other sysctl tweaks.

A+
Dave
1 files changed, 10 insertions(+), 0 deletions(-)

M images/freebsd/genimg
M images/freebsd/genimg => images/freebsd/genimg +10 -0
@@ 43,11 43,20 @@ echo 'autoboot_delay="-1"' >>/mnt/boot/loader.conf

cat >>/mnt/etc/rc.conf <<EOF
ntpd_enable=YES
ntpd_sync_on_start=YES
sshd_enable=YES
growfs_enable=YES
hostname="build"
ifconfig_DEFAULT="inet 10.0.2.15 netmask 255.255.255.0"
defaultrouter="10.0.2.2"
powerd_enable=NO
sendmail_enable=NONE
sendmail_submit_enable=NO
sendmail_outbound_enable=NO
sendmail_msp_queue_enable=NO
cron_enable=NO
# syslogd_enable=NO
syslogd_flags="-ss"
EOF
echo "nameserver 1.1.1.1" >/mnt/etc/resolv.conf
tzsetup -s -C /mnt UTC


@@ 57,6 66,7 @@ PermitRootLogin yes
PasswordAuthentication yes
PermitEmptyPasswords yes
UsePAM no
UseDNS no
EOF

mkdir -p /mnt/usr/local/etc/pkg/repos/